@font-face {
    font-family: 'Google Sans Flex';
    src: url('../fonts/google-sans-flex/gsf-10.woff2') format('woff2');
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Google Sans Flex';
    src: url('../fonts/google-sans-flex/gsf-9.woff2') format('woff2');
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Suivi de positions */
.position-tracking-heading { margin-bottom: 24px; }
.position-tracking-heading h1 { margin: 0 0 12px; font-size: clamp(1.55rem, 3vw, 2rem); }
.position-tracking-intro,
.position-tracking-card,
.position-tracking-empty {
    margin-bottom: 20px;
    padding: 24px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
}
.position-tracking-intro h2,
.position-tracking-card h2 { margin: 0 0 10px; font-size: 1rem; }
.position-tracking-intro p,
.position-tracking-card-heading p { margin: 7px 0 0; color: var(--app-muted); font-size: .86rem; line-height: 1.6; }
.position-tracking-empty { display: grid; justify-items: center; gap: 10px; text-align: center; }
.position-tracking-empty > svg { width: 30px; height: 30px; color: var(--app-muted); }
.position-tracking-empty h2,
.position-tracking-empty p { margin: 0; }
.position-tracking-empty p { color: var(--app-muted); }
.position-tracking-empty.is-inside { margin: 18px 0 0; padding: 32px 18px; background: var(--app-surface-soft); border-style: dashed; }
.position-tracking-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.position-tracking-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.position-tracking-tabs a,
.position-tracking-current-table {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 13px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}
.position-tracking-tabs a.is-active { color: var(--couleur-principale); border-color: var(--couleur-principale); box-shadow: 0 0 0 3px rgba(207, 34, 40, .08); }
.position-tracking-current-table { margin: 16px 0; }
.position-tracking-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 12px; }
.position-tracking-search { position: relative; display: block; width: min(100%, 310px); }
.position-tracking-search svg { position: absolute; top: 50%; left: 12px; width: 16px; height: 16px; color: var(--app-muted); transform: translateY(-50%); pointer-events: none; }
.position-tracking-search input {
    min-height: 40px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font: inherit;
    font-size: .82rem;
}
.position-tracking-search input { width: 100%; padding: 8px 12px 8px 38px; }
.position-tracking-trend-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.position-tracking-trend-filters > span { margin-right: 2px; color: var(--app-muted); font-size: .78rem; font-weight: 700; }
.position-trend-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 10px; color: var(--app-muted); background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 8px; font: inherit; font-size: .75rem; font-weight: 750; cursor: pointer; }
.position-trend-filter svg { width: 14px; height: 14px; }
.position-trend-filter:hover,
.position-trend-filter:focus-visible { border-color: currentColor; outline: none; }
.position-trend-filter.is-up[aria-pressed="true"] { color: #16834a; background: #e7f8ee; border-color: #b7e7ca; }
.position-trend-filter.is-down[aria-pressed="true"] { color: #c62f36; background: #ffebec; border-color: #f3c4c7; }
.position-tracking-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.position-tracking-legend button { border: 1px solid transparent; font-family: inherit; cursor: pointer; }
.position-tracking-legend [data-position-toggle][aria-pressed="false"] { opacity: .5; text-decoration: line-through; border-color: currentColor; }
.position-tracking-legend button:focus-visible { outline: 2px solid var(--couleur-principale); outline-offset: 3px; }
.position-result-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; min-height: 23px; padding: 4px 8px; border-radius: 7px; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.position-result-badge.is-natural { color: #176fc1; background: #e0f1ff; }
.position-result-badge.is-images { color: #a86e00; background: #fff0c7; }
.position-result-badge.is-maps { color: #c43737; background: #ffe5e5; }
.position-result-badge.is-zero { color: #13834c; background: #dcf7e8; }
.position-result-badge.is-ai-overview { color: #6847c7; background: #eee8ff; }
.position-result-badge.is-videos { color: #007a78; background: #d9f6f3; }
.position-result-badge.is-news { color: #b32f72; background: #ffe3f1; }
.position-result-badge.is-shopping { color: #a64b16; background: #ffeadc; }
.position-result-badge.is-other { color: #6847c7; background: #eee8ff; }
.position-result-badge.is-best,
.position-best-filter { color: #11663c; background: #dcf7e8; }
.position-result-badge.is-best { box-shadow: inset 0 0 0 1px #8dceaa; }
.position-best-filter[aria-pressed="true"] { border-color: #11663c; }
.position-tracking-table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--app-border-soft); border-radius: 10px; }
.position-tracking-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .8rem; }
.position-tracking-table th,
.position-tracking-table td { padding: 11px 10px; border-bottom: 1px solid var(--app-border-soft); text-align: center; vertical-align: middle; }
.position-tracking-table thead th { color: var(--app-muted); background: var(--app-surface-soft); font-size: .72rem; text-transform: uppercase; }
.position-tracking-table thead th.position-url-heading { text-align: left; }
.position-tracking-table thead tr:nth-child(2) th { padding: 5px 10px; }
.position-tracking-table thead svg { width: 14px; height: 14px; }
.position-tracking-table tbody th { min-width: 180px; text-align: left; }
.position-tracking-table tbody + tbody { border-top: 2px solid var(--app-border); }
.position-tracking-table .position-date-group.is-separated,
.position-tracking-table .position-date-start { border-left: 1px solid var(--app-border); }
.position-tracking-table [hidden] { display: none !important; }
.position-result-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; min-width: 52px; }
.position-result-empty { color: var(--app-muted); }
.position-result-evolution { font-size: .68rem; font-weight: 800; white-space: nowrap; }
.position-result-evolution.is-up { color: #16834a; }
.position-result-evolution.is-down { color: #d23239; }
.position-result-evolution.is-stable { color: #111827; }
.position-tracking-urls { display: grid; gap: 4px; min-width: 230px; text-align: left; }
.position-tracking-urls a { overflow: hidden; color: #1875d1; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.position-tracking-count,
.position-tracking-no-result { margin: 14px 0 0; color: var(--app-muted); font-size: .78rem; }

.admin-position-tracking { display: grid; gap: 18px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--app-border); }
.admin-position-tracking .admin-action-button { width: 220px; max-width: 100%; height: 42px; min-height: 42px; gap: 9px; padding: 9px 14px; white-space: nowrap; }
.admin-position-tracking button:disabled { opacity: .5; cursor: not-allowed; }
.admin-position-tracking button:focus-visible { outline: 2px solid var(--couleur-principale); outline-offset: 3px; }
.admin-position-notice { display: flex; align-items: center; gap: 9px; padding: 12px 14px; color: #8b5b00; background: #fff3cf; border: 1px solid #f1d889; border-radius: 9px; font-size: .82rem; }
.admin-position-notice svg { flex: 0 0 auto; width: 17px; height: 17px; }
.admin-position-create-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; }
.admin-position-location-form { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; margin-top: 14px; }
.admin-position-location-help { grid-column: 1 / -1; margin: 0; color: var(--app-muted); font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }
.admin-position-table-card > .admin-position-location-help { margin-top: 14px; }
.admin-position-create-table label { min-width: 0; }
.admin-position-create-table label,
.admin-position-keywords-add label { display: grid; gap: 7px; }
.admin-position-create-table label > span,
.admin-position-keywords-add label > span { font-size: .78rem; font-weight: 750; }
.admin-position-create-table input,
.admin-position-create-table select,
.admin-position-keywords-add select,
.admin-position-keywords-add textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 9px;
    font: inherit;
    font-size: .82rem;
}
.admin-position-create-table input:disabled { opacity: .5; cursor: not-allowed; }
.admin-position-keywords-add { display: grid; grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr); gap: 14px; padding: 16px; background: var(--app-surface-soft); border: 1px solid var(--app-border); border-radius: 10px; }
.admin-position-keywords-add .is-wide { grid-column: 2; grid-row: span 2; }
.admin-position-keywords-add textarea { min-height: 154px; resize: vertical; }
.admin-position-keywords-add small { color: var(--app-muted); }
.admin-position-keywords-add .admin-form-actions { align-self: end; justify-content: flex-start; }
.admin-position-tables { display: grid; gap: 14px; }
.admin-position-table-card { padding: 16px; border: 1px solid var(--app-border); border-radius: 10px; }
.admin-position-table-card > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-position-table-card h3,
.admin-position-table-card p { margin: 0; }
.admin-position-table-card h3 { font-size: .93rem; }
.admin-position-table-card header p { margin-top: 4px; color: var(--app-muted); font-size: .75rem; }
.admin-position-table-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.admin-position-table-actions form,
.admin-position-keyword-list form { display: flex; flex: 0 0 auto; margin: 0; }
.admin-position-delete,
.admin-position-keyword-list button { display: grid; place-items: center; width: 42px; height: 42px; min-height: 42px; padding: 0; color: var(--couleur-principale); background: transparent; border: 1px solid rgba(207, 34, 40, .25); border-radius: 7px; cursor: pointer; }
.admin-position-delete svg,
.admin-position-keyword-list button svg { width: 16px; height: 16px; }
.admin-position-keyword-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.admin-position-keyword-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--app-surface-soft); border: 1px solid var(--app-border-soft); border-radius: 8px; }
.admin-position-keyword-list span { display: grid; gap: 3px; min-width: 0; }
.admin-position-keyword-list strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-position-keyword-list small,
.admin-position-table-empty { color: var(--app-muted); font-size: .72rem; }
.admin-position-table-empty { margin-top: 14px !important; }

@media (max-width: 760px) {
    .position-tracking-tools,
    .admin-position-table-card > header { align-items: stretch; flex-direction: column; }
    .position-tracking-search { width: 100%; }
    .admin-position-create-table,
    .admin-position-keywords-add,
    .admin-position-keyword-list { grid-template-columns: 1fr; }
    .admin-position-keywords-add .is-wide { grid-column: auto; grid-row: auto; }
    .admin-position-table-actions { justify-content: flex-start; }
}

/* Rapports SEA */
.admin-sea-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sea-sidebar,
.admin-sea-editor,
.admin-sea-section,
.admin-sea-csv {
    border: 1px solid var(--border, #dedee5);
    border-radius: 12px;
    background: var(--surface, #fff);
}

.admin-sea-sidebar,
.admin-sea-editor {
    min-width: 0;
    padding: 20px;
}

.admin-sea-create {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 100px;
    margin: 18px 0;
}

.admin-sea-create label,
.admin-sea-fields label,
.admin-sea-illustration,
.admin-sea-hours label {
    display: grid;
    gap: 6px;
}

.admin-sea-create label span,
.admin-sea-fields label span,
.admin-sea-illustration > span,
.admin-sea-hours label span {
    font-size: .82rem;
    font-weight: 700;
}

.admin-sea-create input,
.admin-sea-create select,
.admin-sea-global-fields input,
.admin-sea-fields input,
.admin-sea-fields select,
.admin-sea-fields textarea,
.admin-sea-conversion input,
.admin-sea-hours input,
.admin-sea-device-row input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    color: var(--app-text, #111214);
    background: var(--app-surface, #fff);
    border: 1px solid var(--app-border, #dedfe3);
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 13px;
}

.admin-sea-create input:focus,
.admin-sea-create select:focus,
.admin-sea-global-fields input:focus,
.admin-sea-fields input:focus,
.admin-sea-fields select:focus,
.admin-sea-fields textarea:focus,
.admin-sea-conversion input:focus,
.admin-sea-hours input:focus,
.admin-sea-device-row input:focus {
    border-color: var(--couleur-principale, #cf2228);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .1);
}

.admin-sea-create select,
.admin-sea-fields select {
    cursor: pointer;
}

.admin-sea-create .button-primary {
    grid-column: 1 / -1;
    justify-content: center;
}

.admin-sea-report-list {
    display: grid;
    gap: 7px;
}

.admin-sea-report-list a {
    align-items: center;
    border: 1px solid var(--border, #e0e0e7);
    border-radius: 9px;
    color: inherit;
    display: grid;
    gap: 10px;
    grid-template-columns: 20px 1fr 16px;
    padding: 11px;
    text-decoration: none;
}

.admin-sea-report-list a.is-active {
    background: #fff1f1;
    border-color: #cf2228;
    color: #bd171d;
}

.admin-sea-report-list svg { height: 17px; width: 17px; }
.admin-sea-report-list span { display: grid; gap: 2px; }
.admin-sea-report-list small { color: #8b8b9a; font-size: .72rem; }
.admin-sea-list-empty { color: #858594; font-size: .85rem; }
.admin-sea-empty { min-height: 300px; }

.admin-sea-editor-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.admin-sea-editor-heading > div {
    min-width: 0;
}

.admin-sea-editor-heading form {
    flex: 0 0 auto;
}

.admin-sea-csv {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(260px, 1fr) minmax(190px, 240px) auto;
    margin: 18px 0;
    padding: 14px;
}

.admin-sea-csv-drop {
    align-items: center;
    border: 1px dashed #c9c9d4;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    min-height: 64px;
    overflow: hidden;
    padding: 10px 14px;
    position: relative;
}

.admin-sea-csv-drop:focus-within,
.admin-sea-csv-drop:hover {
    border-color: #2caf65;
    box-shadow: 0 0 0 3px rgba(44, 175, 101, .1);
}
.admin-sea-csv-drop input {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 2;
}
.admin-sea-csv-drop svg { color: #2caf65; height: 25px; width: 25px; }
.admin-sea-csv-drop span { display: grid; gap: 3px; }
.admin-sea-csv-drop small,
.admin-sea-csv > p { color: #777789; font-size: .77rem; }
.admin-sea-csv > p { grid-column: 1 / -1; margin: 0; }
.admin-sea-csv > .admin-sea-feedback { grid-column: 1 / -1; }
.admin-sea-csv-target { display: grid; gap: 6px; }
.admin-sea-csv-target > span { color: var(--app-muted, #667085); font-size: .72rem; font-weight: 700; }
.admin-sea-csv-target select {
    width: 100%;
    min-height: 42px;
    padding: 8px 30px 8px 10px;
    color: var(--app-text, #111827);
    background: var(--app-surface, #fff);
    border: 1px solid var(--app-border, #dedfe3);
    border-radius: 8px;
    font: inherit;
    font-size: .8rem;
}
.admin-sea-csv > .button-secondary { align-self: end; gap: 9px; min-height: 42px; }
.admin-sea-csv > .button-secondary svg { height: 17px; width: 17px; }

.admin-sea-form { display: grid; gap: 18px; }
.admin-sea-section { padding: 18px; }
.admin-sea-section h3 { margin: 0; }
.admin-sea-campaigns { display: grid; gap: 14px; margin: 15px 0; }
.admin-sea-campaign { border: 1px solid #e0e0e7; border-radius: 10px; overflow: hidden; }
.admin-sea-campaign-head { align-items: center; background: #f8f8fa; display: flex; justify-content: space-between; padding: 10px 14px; }
.admin-sea-campaign-head button,
.admin-sea-conversion button { background: transparent; border: 0; color: #cf2228; cursor: pointer; padding: 5px; }
.admin-sea-campaign-head svg,
.admin-sea-conversion svg { height: 17px; width: 17px; }
.admin-sea-fields { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(120px, 1fr)); padding: 14px; }
.admin-sea-fields .is-wide { grid-column: span 2; }
.admin-sea-fields .is-full { grid-column: 1 / -1; }
.admin-sea-fields small { color: #777789; }
.admin-sea-fields textarea { min-height: 92px; resize: vertical; }
.admin-sea-split { display: grid; gap: 24px; grid-template-columns: 1fr 1.35fr; }
.admin-sea-conversion { display: grid; gap: 8px; grid-template-columns: 1fr 110px 32px; margin: 8px 0; }
.admin-sea-hours { display: grid; gap: 8px; grid-template-columns: repeat(6, 1fr); }
.admin-sea-hours label span { text-align: center; }
.admin-sea-hours input { min-width: 0; text-align: center; }
.admin-sea-device-table { border: 1px solid #e4e4e9; border-radius: 9px; overflow: hidden; }
.admin-sea-device-row { align-items: center; display: grid; gap: 10px; grid-template-columns: 1.2fr repeat(3, 1fr); padding: 9px 12px; }
.admin-sea-device-row + .admin-sea-device-row { border-top: 1px solid #ececf0; }
.admin-sea-device-row.is-head { background: #f8f8fa; color: #9393a3; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.admin-sea-global-fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 240px)); margin-top: 16px; }
.admin-sea-global-fields label,
.admin-sea-demographic-metric,
.admin-sea-demographic-table label { display: grid; gap: 6px; }
.admin-sea-global-fields label > span,
.admin-sea-demographic-metric > span,
.admin-sea-demographic-table label > span { font-size: .78rem; font-weight: 700; }
.admin-sea-daily { border: 1px solid var(--app-border, #dedfe3); border-radius: 9px; margin-top: 16px; overflow: hidden; }
.admin-sea-daily summary { background: var(--app-surface-soft, #f8f8fa); cursor: pointer; font-size: .82rem; font-weight: 750; padding: 12px 14px; }
.admin-sea-daily-table { max-height: 420px; overflow-y: auto; }
.admin-sea-daily-row { align-items: center; display: grid; gap: 10px; grid-template-columns: minmax(110px, 1fr) repeat(2, minmax(110px, 1fr)) 34px; padding: 8px 12px; }
.admin-sea-daily-row + .admin-sea-daily-row { border-top: 1px solid var(--app-border, #ececf0); }
.admin-sea-daily-row.is-head { background: var(--app-surface, #fff); color: var(--app-muted, #8b8b99); font-size: .7rem; font-weight: 800; position: sticky; text-transform: uppercase; top: 0; z-index: 1; }
.admin-sea-daily-row strong { font-size: .78rem; }
.admin-sea-daily-row > button { align-items: center; background: transparent; border: 0; border-radius: 6px; color: var(--couleur-principale, #cf2228); cursor: pointer; display: inline-flex; height: 32px; justify-content: center; padding: 0; width: 32px; }
.admin-sea-daily-row > button:hover { background: rgba(207, 34, 40, .08); }
.admin-sea-daily-row > button:disabled { cursor: default; opacity: .25; }
.admin-sea-daily-row > button svg { height: 16px; width: 16px; }
.admin-sea-daily-row.is-cleared { background: var(--app-surface-soft, #fafafa); }
.admin-sea-daily-row input,
.admin-sea-demographic-table input,
.admin-sea-demographic-metric select {
    width: 100%; min-width: 0; min-height: 38px; padding: 7px 10px; color: var(--app-text, #111214); background: var(--app-surface, #fff); border: 1px solid var(--app-border, #dedfe3); border-radius: 7px; font: inherit; font-size: .78rem;
}
.admin-sea-demographic-metric { margin-top: 16px; max-width: 260px; }
.admin-sea-demographics { align-items: start; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.admin-sea-demographic-table { align-content: start; border: 1px solid var(--app-border, #dedfe3); border-radius: 9px; display: grid; gap: 8px; padding: 14px; }
.admin-sea-demographic-table > strong { font-size: .88rem; margin-bottom: 2px; }
.admin-sea-demographic-table label { align-items: center; background: var(--app-surface-soft, #f8f8fa); border-radius: 7px; grid-template-columns: minmax(100px, 1fr) minmax(90px, 130px); padding: 8px 10px; }
.admin-sea-demographic-table.is-age { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.admin-sea-demographic-table.is-age > strong { grid-column: 1 / -1; }
.admin-sea-illustration { margin-top: 18px; max-width: 500px; }
.admin-sea-illustration-drop {
    align-items: center;
    background: var(--app-surface-soft, #f8f8fa);
    border: 1px dashed var(--app-border, #d9dce2);
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    min-height: 70px;
    overflow: hidden;
    padding: 12px 14px;
    position: relative;
}
.admin-sea-illustration-drop:hover,
.admin-sea-illustration-drop:focus-within {
    border-color: var(--couleur-principale, #cf2228);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .08);
}
.admin-sea-illustration-drop > input {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 2;
}
.admin-sea-illustration-drop > svg {
    color: var(--couleur-principale, #cf2228);
    height: 24px;
    width: 24px;
}
.admin-sea-illustration-drop > span { display: grid; gap: 3px; }
.admin-sea-illustration-drop strong { font-size: .82rem; }
.admin-sea-illustration-drop small { color: var(--app-muted, #777789); font-size: .75rem; font-weight: 450; }
.admin-sea-current-image { border-radius: 10px; display: block; margin-top: 14px; max-height: 240px; max-width: 100%; object-fit: cover; }
.admin-sea-feedback { border-radius: 8px; padding: 10px 12px; }
.admin-sea-feedback.is-success { background: #eaf9f0; color: #128445; }
.admin-sea-feedback.is-error { background: #fff0f0; color: #c81e24; }

.content-page-heading.sea-page-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 26px; }
.content-page-heading + .sea-report-library { margin-top: 26px; }
.sea-page-heading h1 { margin: 0; }
.sea-period-nav { align-items: center; display: flex; gap: 9px; }
.sea-period-nav a,
.sea-period-nav > span { align-items: center; border: 1px solid #dedee5; border-radius: 8px; display: inline-flex; height: 34px; justify-content: center; width: 34px; }
.sea-period-nav > span { opacity: .4; }
.sea-period-nav strong { background: #cf2228; border-radius: 8px; color: #fff; padding: 9px 17px; }
.sea-period-nav svg { height: 16px; width: 16px; }

.sea-report-library,
.sea-report { background: #fff; border: 1px solid #dedee5; border-radius: 13px; padding: 24px; }
.sea-library-heading { align-items: center; display: flex; justify-content: space-between; }
.sea-library-heading h2 { margin: 0 0 5px; }
.sea-library-heading p { color: #747486; margin: 0; }
.sea-library-heading > span { background: #fff0f0; border-radius: 999px; color: #cf2228; font-size: .8rem; font-weight: 700; padding: 6px 10px; }
.sea-report-list { display: grid; gap: 10px; margin-top: 22px; }
.sea-report-list article { align-items: center; border: 1px solid #e2e2e8; border-radius: 11px; display: grid; gap: 14px; grid-template-columns: 45px 1fr auto; padding: 14px; }
.sea-report-list article > div { display: grid; gap: 4px; }
.sea-report-list small { color: #818193; }
.sea-report-list .button-primary { align-items: center; display: inline-flex; gap: 8px; text-decoration: none; }
.sea-report-list .button-primary svg { height: 16px; width: 16px; }
.sea-report-list .report-list-row { grid-template-columns: 40px minmax(130px, 1fr) minmax(400px, 600px) auto; }
.report-list-period { min-width: 0; overflow-wrap: anywhere; }
.report-mini-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; min-width: 0; }
.report-mini-kpi { background: var(--app-surface-soft, #f7f8fa); border: 1px solid var(--app-border, #e2e2e8); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.report-mini-kpi dt { color: var(--app-muted, #777e91); font-size: 11px; line-height: 1.4; }
.report-mini-kpi dd { color: var(--app-text, #101828); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.4; margin: 4px 0 0; overflow-wrap: anywhere; }
@media (max-width: 1200px) {
    .sea-report-list .report-list-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
    .report-list-row .report-mini-kpis { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
    .sea-report-list .report-list-row { grid-template-columns: 36px minmax(0, 1fr); }
    .report-list-row .report-mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sea-report-list .report-list-row .button-primary { grid-column: 1 / -1; grid-row: 3; justify-content: center; }
}
.sea-report-icon { align-items: center; background: #f0edff; border-radius: 10px; color: #735fff; display: flex; height: 42px; justify-content: center; width: 42px; }
.sea-report-icon svg { height: 21px; width: 21px; }
.sea-empty { align-items: center; color: #777789; display: flex; flex-direction: column; justify-content: center; min-height: 300px; text-align: center; }
.sea-empty svg { color: #cf2228; height: 38px; width: 38px; }

.sea-tabs { border-bottom: 1px solid #dfdfe6; display: flex; gap: 28px; overflow-x: auto; }
.sea-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: #646474; cursor: pointer; font: inherit; padding: 0 1px 13px; white-space: nowrap; }
.sea-tabs button.is-active { border-color: #cf2228; color: #cf2228; font-weight: 700; }
.sea-report [data-sea-panel] { padding-top: 24px; }

/* Bilans SEO mensuels : modèles éditoriaux, tableaux et graphiques SVG. */
.seo-monthly-report [data-seo-panel] { padding-top: 24px; }
.seo-monthly-report [hidden] { display: none !important; }
.seo-monthly-report table, .seo-report-admin table { border-collapse: collapse; font-size: 13px; width: 100%; }
.seo-monthly-report th, .seo-monthly-report td, .seo-report-admin td, .seo-report-admin th { border-bottom: 1px solid #e5e7eb; padding: 12px; text-align: left; }
.seo-monthly-report thead, .seo-report-admin thead { background: #f7f8fa; }
.seo-table-scroll { overflow-x: auto; max-width: 100%; }
.seo-table-scroll a { overflow-wrap: anywhere; }
.seo-report-admin, .seo-report-admin > *, .seo-editor, .seo-edit-follow { min-width: 0; }
.seo-model-choice { grid-column: 1 / -1; }
.seo-report-admin label { display: grid; gap: 6px; font-size: 13px; }
.seo-report-admin input:not([type=checkbox]), .seo-report-admin select, .seo-report-admin textarea, .seo-report-search input { border: 1px solid #dedee5; background: #fff; border-radius: 7px; padding: 9px; font: inherit; width: 100%; min-width: 0; box-sizing: border-box; }
.seo-report-admin button { display: inline-flex; align-items: center; gap: 10px; }
.seo-report-admin button svg { width: 17px; height: 17px; }
.seo-editor section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 24px; }
.seo-editor h3 { margin: 12px 0 0; }
.seo-edit-follow { border: 1px solid #dedee5; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.seo-edit-follow > * + * { margin-top: 16px; }
.seo-edit-follow summary, .seo-score-editor summary { cursor: pointer; font-weight: 600; }
.seo-editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.seo-edit-positions { min-width: 950px; }
.seo-edit-positions label, [data-seo-links] label { font-size: 11px; color: #6b7280; }
.seo-edit-positions td:first-child { min-width: 200px; }
.seo-edit-positions td:nth-child(2) { min-width: 210px; }
.seo-edit-positions input[type=number] { min-width: 85px; }
.seo-score-inputs { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seo-score-inputs fieldset { border: 1px solid #dedee5; border-radius: 7px; min-width: 0; padding: 10px; }
.seo-help { color: #777e91; font-size: 12px; line-height: 1.6; }
.seo-save-bar, .seo-report-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.seo-save-bar label { display: flex; align-items: center; }
.seo-report-scores { margin-bottom: 22px; }
.seo-report-scores [hidden] { display: none !important; }
.seo-report-scores .sea-kpis small { font-size: 13px; font-weight: 400; color: #81889a; }
.seo-result-actions { white-space: nowrap; }.seo-result-actions button + button { margin-left: 6px; }
.seo-report-search { display: grid; gap: 8px; font-size: 13px; max-width: 300px; margin: 18px 0; }
.seo-position-table { min-width: 900px; table-layout: fixed; }
.seo-position-table .seo-keyword-col { width: 28%; }.seo-position-table .seo-number-col { width: 12%; }
.seo-monthly-report .seo-position-table thead th, .seo-monthly-report .seo-position-table td { text-align: center; vertical-align: middle; font-variant-numeric: tabular-nums; }
.seo-monthly-report .seo-position-table th[scope=rowgroup] { text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.seo-position-table tbody + tbody { border-top: 2px solid var(--app-border, #e5e7eb); }
.seo-position-table tbody tr:not(:last-child) td { border-bottom-style: dashed; }
.seo-position-table [data-seo-keyword-evolution] { font-weight: 700; }
.seo-position-value { display: inline-block; border-radius: 5px; padding: 4px 7px; min-width: 32px; box-sizing: border-box; background: #e3f3ff; color: #0067a3; }
.seo-position-value.is-current { font-weight: 700; }
.seo-position-value.is-images { background: #fff0b5; color: #815e00; }
.seo-position-value.is-sitelink { background: #ddf5ed; color: #147653; }
.seo-position-value.is-position-zero { background: #efe6ff; color: #7439a9; }
.seo-position-value.is-paa { background: #fde3f8; color: #9b3689; }
.seo-position-value.is-maps { background: #ffe6d6; color: #a54a12; }
.seo-position-value.is-ai-overview { background: #eee8ff; color: #6847c7; }
.seo-position-value.is-absente { background: transparent; color: #7b8190; }
.seo-position-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; list-style: none; padding: 0; margin: 18px 0 0; font-size: 12px; }
.seo-position-legend li { display: inline-flex; align-items: center; gap: 7px; }
.seo-position-legend i { width: 13px; height: 13px; min-width: 0; padding: 0; border: 1px solid currentColor; }
.seo-indexation-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; }
.seo-indexation-columns > * { min-width: 0; overflow-wrap: anywhere; }
/* Annuler le plafond de lecture SEA sur cette carte, y compris sur écran large. */
.seo-indexation-columns > .sea-summary-copy { max-width: none; width: 100%; box-sizing: border-box; }
.seo-indexation-columns .seo-pie-layout { gap: 14px; }
.seo-indexation-columns .seo-pie-layout svg { flex-basis: 170px; width: min(170px, 100%); }
.seo-positive { color: #198754; }.seo-negative { color: #cf2228; }.seo-muted { color: #7b8190; }.seo-purple { color: #7c68ff; }
.seo-pie-layout { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.seo-pie-layout svg { width: min(210px, 100%); flex: 0 1 210px; }
.seo-pie-legend { list-style: none; padding: 0; flex: 0 1 auto; font-size: 13px; max-width: 100%; }
.seo-pie-legend li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 12px 0; }
.seo-pie-legend strong { white-space: nowrap; }.seo-pie-legend small { color: #777e91; font-weight: 400; }
.seo-pie-legend i { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.seo-color-0 { background: #4db7ef; }.seo-color-1 { background: #7c68ff; }.seo-color-2 { background: #f6c845; }.seo-color-3 { background: #a2a2b2; }
.seo-score-chart { display: block; width: 100%; height: auto; min-height: 210px; }
.seo-score-plot { position: relative; }
.seo-score-tooltip { position: absolute; z-index: 5; pointer-events: none; padding: 10px 12px; border: 1px solid var(--app-border, #dedee5); border-radius: 8px; background: var(--app-surface, #fff); color: var(--app-text, #172033); box-shadow: 0 6px 20px #0002; font-size: 12px; line-height: 1.7; white-space: nowrap; }
.seo-score-tooltip strong, .seo-score-tooltip span { display: block; }
.seo-score-guide { stroke: #a2a2b2; stroke-width: 1; stroke-dasharray: 4 3; pointer-events: none; }
.seo-quality-tag { display: inline-block; border-radius: 5px; padding: 5px 9px; font-size: 12px; font-weight: 600; background: #eef0f4; color: #555f70; }
.seo-quality-tag.is-verte { background: #def5e8; color: #147442; }.seo-quality-tag.is-orange { background: #fff0d4; color: #915600; }.seo-quality-tag.is-rouge { background: #ffe3e3; color: #b22329; }
.seo-score-chart text { fill: #81889a; font: 12px sans-serif; }.seo-grid-line { stroke: #e5e7eb; stroke-width: 1; }
.seo-chart-legend { display: flex; justify-content: flex-end; gap: 20px; font-size: 12px; }
.seo-monthly-report .sea-chart-card { margin-bottom: 20px; }.seo-report-comment { line-height: 1.7; }
.seo-monthly-report h2 { font-size: 18px; }.seo-monthly-report h3 { font-size: 16px; }
[data-seo-feedback] { font-size: 13px; overflow-wrap: anywhere; }
.page-app.is-dark .seo-monthly-report, .page-app.is-dark .seo-report-admin input:not([type=checkbox]), .page-app.is-dark .seo-report-admin select, .page-app.is-dark .seo-report-admin textarea, .page-app.is-dark .seo-report-search input { background: var(--app-surface); color: var(--app-text); border-color: var(--app-border); }
.page-app.is-dark .seo-monthly-report thead, .page-app.is-dark .seo-report-admin thead { background: var(--app-surface-soft); color: var(--app-text); }
@media (max-width: 1000px) { .seo-score-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .seo-indexation-columns { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .seo-editor-fields { grid-template-columns: 1fr; }.seo-save-bar { align-items: stretch; flex-direction: column; } }
.sea-kpis { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.sea-kpis article { border: 1px solid #dedee5; border-radius: 11px; display: grid; grid-template-columns: minmax(0, 1fr) 42px; min-height: 78px; padding: 17px; }
.sea-kpis strong { font-size: 1.72rem; line-height: 1.1; }
.sea-kpis span { font-size: .84rem; font-weight: 700; line-height: 1.35; }
.sea-kpis article.is-red span { color: #ef4036; }
.sea-kpis article.is-blue span { color: #56b8ff; }
.sea-kpis article.is-purple span { color: #7965ff; }
.sea-kpis article.is-green span { color: #26bf68; }
.sea-kpis article.is-yellow span { color: #e8af1b; }
.sea-kpis svg { border-radius: 9px; box-sizing: content-box; color: #fff; grid-column: 2; grid-row: 1 / span 2; height: 20px; padding: 10px; width: 20px; }
.sea-kpis article.is-red svg { background: #ef4036; }
.sea-kpis article.is-blue svg { background: #59b8f8; }
.sea-kpis article.is-purple svg { background: #7965ff; }
.sea-kpis article.is-green svg { background: #32c675; }
.sea-kpis article.is-yellow svg { background: #f6c845; }

.sea-chart-card,
.sea-table-card,
.sea-summary { border: 1px solid #dedee5; border-radius: 11px; padding: 20px; }
.sea-chart-card { position: relative; }
.sea-chart-card h3,
.sea-table-card h3,
.sea-summary h2 { font-size: 1rem; margin: 0 0 18px; }
.sea-main-chart { margin-top: 18px; }
.sea-card-title { align-items: center; display: flex; gap: 18px; }
.sea-card-title h3 { margin-right: auto; }
.sea-card-title span { align-items: center; color: #777789; display: flex; font-size: .78rem; gap: 6px; }
.sea-dot { border-radius: 3px; display: inline-block; height: 9px; width: 9px; }
.sea-dot.is-purple { background: #7c68ff; }
.sea-dot.is-green { background: #33c673; }
.sea-performance-chart { display: block; height: 330px; margin-top: 8px; max-width: 100%; width: 100%; cursor: crosshair; }
.sea-lines { background: repeating-linear-gradient(to bottom, transparent 0, transparent 32%, #e9e9ee 33%, transparent 34%); display: block; height: 330px; margin-top: 10px; overflow: visible; width: 100%; }
.sea-lines polyline { fill: none; vector-effect: non-scaling-stroke; }
.sea-lines .sea-line-fill { fill: url(#seaFill, rgba(124,104,255,.12)); stroke: none; }
.sea-lines .sea-line-purple { stroke: #7c68ff; stroke-width: 3; }
.sea-lines .sea-line-green { stroke: #33c673; stroke-width: 3; }
.sea-no-data { align-items: center; color: #868696; display: flex; justify-content: center; min-height: 250px; }
.sea-two-columns { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.sea-three-columns { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.sea-horizontal-bar { align-items: center; display: grid; gap: 10px; grid-template-columns: 70px 1fr 42px; margin: 12px 0; }
.sea-horizontal-bar span { color: #686879; font-size: .8rem; }
.sea-horizontal-bar i { background: #f0f0f4; border-radius: 4px; height: 20px; overflow: hidden; position: relative; }
.sea-horizontal-bar i::after { background: #7c68ff; border-radius: inherit; content: ''; height: 100%; left: 0; position: absolute; top: 0; width: var(--sea-value); }
.sea-horizontal-bar:nth-of-type(2) i::after { background: #33c673; }
.sea-horizontal-bar:nth-of-type(3) i::after { background: #5ab7ef; }
.sea-horizontal-bar:nth-of-type(4) i::after { background: #ef4036; }
.sea-horizontal-bar:nth-of-type(5) i::after { background: #f2c341; }
.sea-demographic-charts { margin-top: 18px; }
.sea-demographic-card { text-align: center; }
.sea-demographic-donut { height: 180px; width: 180px; }
/* Les longues plages horaires restent lisibles dans leur carte sur mobile. */
.sea-vertical-bars { align-items: end; display: flex; gap: 9px; height: 155px; justify-content: space-around; overflow-x: auto; padding-bottom: 6px; }
.sea-vertical-bars span { align-items: center; display: flex; flex: 1 0 20px; flex-direction: column; height: 100%; justify-content: end; }
.sea-vertical-bars strong,
.sea-vertical-bars small { font-size: .65rem; }
.sea-vertical-bars i { background: #52b8f5; border-radius: 4px 4px 0 0; height: var(--sea-height); max-width: 35px; min-height: 2px; width: 70%; }
.sea-device-card { text-align: center; }
.sea-device-conversion-bars { align-items: end; display: flex; gap: 18px; height: 200px; justify-content: center; margin-top: 18px; }
.sea-device-conversion-bars span { align-items: center; display: flex; flex: 0 1 80px; flex-direction: column; height: 100%; justify-content: end; }
.sea-device-conversion-bars strong,
.sea-device-conversion-bars small { font-size: .7rem; }
.sea-device-conversion-bars i { border-radius: 5px 5px 0 0; display: block; height: var(--sea-height); margin: 6px 0; min-height: 2px; width: 36px; }
.sea-device-conversion-bars .sea-color-0 { background: #ffd047; }
.sea-device-conversion-bars .sea-color-1 { background: #ef4036; }
.sea-device-conversion-bars .sea-color-2 { background: #7c68ff; }
.sea-donut { background: #eef0f4; border-radius: 50%; height: 150px; margin: 20px auto; width: 150px; }
.sea-donut,
[data-sea-tooltip] { cursor: crosshair; }
.sea-chart-tooltip {
    position: fixed;
    z-index: 10000;
    display: grid;
    gap: 3px;
    min-width: 110px;
    max-width: 220px;
    padding: 8px 10px;
    color: #656575;
    background: #fff;
    border: 1px solid #dedee5;
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(32, 34, 45, .12);
    font-size: .72rem;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 100ms ease;
}
.sea-chart-tooltip.is-visible { opacity: 1; }
.sea-chart-tooltip strong { color: #22222b; font-size: .76rem; }
.sea-budget-conversions { margin-top: 18px; }
.sea-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sea-legend span { align-items: center; color: #626879; display: flex; font-size: .82rem; font-weight: 550; gap: 6px; }
.sea-legend i { border-radius: 50%; height: 9px; width: 9px; }
.sea-legend .sea-color-0,
.sea-legend .sea-demographic-color-3 { background: #ffd047; }
.sea-legend .sea-color-1,
.sea-legend .sea-demographic-color-4 { background: #ef4036; }
.sea-legend .sea-color-2,
.sea-legend .sea-demographic-color-0 { background: #7c68ff; }
.sea-legend .sea-demographic-color-1 { background: #4db7ef; }
.sea-legend .sea-demographic-color-2 { background: #32c675; }
.sea-legend .sea-demographic-color-5 { background: #a56cf5; }
.sea-legend .sea-demographic-color-6 { background: #8b93a7; }
.sea-table-card table { border-collapse: collapse; width: 100%; }
.sea-table-card th,
.sea-table-card td { border-bottom: 1px solid #ececf0; padding: 12px 14px; text-align: left; }
.sea-table-card thead th { background: #f8f8fa; color: #9898a8; font-size: .72rem; text-transform: uppercase; }
.sea-table-card tbody th { font-size: .84rem; }
.sea-table-card td { color: #696979; font-size: .84rem; }
.sea-table-card tr.is-detail td:first-child { font-style: italic; padding-left: 24px; }
.sea-evolution { font-size: .8rem; margin-left: 5px; }
.sea-evolution.is-up { color: #18a554; }
.sea-evolution.is-down { color: #d9262d; }
.sea-summary { min-height: 380px; }
.sea-summary-copy { line-height: 1.7; max-width: 900px; }
[data-sea-report] [data-sea-panel="resume"] .sea-summary-copy { max-width: none; }
.seo-monthly-report [data-seo-panel="resume"] .sea-summary-copy { max-width: none; overflow-wrap: anywhere; }
.sea-summary img { border-radius: 10px; display: block; margin-top: 22px; max-height: 380px; max-width: 100%; object-fit: cover; }

@media (max-width: 1100px) {
    .admin-sea-layout { grid-template-columns: minmax(0, 1fr); }
    .admin-sea-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
    .admin-sea-sidebar .admin-section-heading { grid-column: 1 / -1; }
    .admin-sea-split,
    .sea-two-columns { grid-template-columns: minmax(0, 1fr); }
    .sea-kpis { grid-template-columns: repeat(2, 1fr); }
    .sea-three-columns { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .admin-sea-editor-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-sea-editor-heading .button-danger {
        width: 100%;
    }
    .content-page-heading.sea-page-heading,
    .sea-library-heading { align-items: stretch; flex-direction: column; gap: 15px; }
    .sea-period-nav { justify-content: space-between; }
    .sea-report,
    .sea-report-library { padding: 15px; }
    .sea-report-list article { grid-template-columns: 42px 1fr; }
    .sea-report-list .button-primary { grid-column: 1 / -1; justify-content: center; }
    .sea-tabs { gap: 20px; }
    .sea-kpis { grid-template-columns: 1fr; }
    .sea-lines { height: 220px; }
    .sea-card-title { align-items: flex-start; flex-wrap: wrap; }
    .sea-card-title h3 { flex-basis: 100%; }
    .sea-table-wrap { overflow-x: auto; }
    .sea-table-wrap table { min-width: 620px; }
    .sea-table-card > table { table-layout: fixed; overflow-wrap: anywhere; }
    .admin-sea-sidebar { display: block; }
    .admin-sea-fields { grid-template-columns: 1fr; }
    .admin-sea-fields .is-wide,
    .admin-sea-fields .is-full { grid-column: auto; }
    .admin-sea-csv { align-items: stretch; grid-template-columns: 1fr; }
    .admin-sea-hours { grid-template-columns: repeat(4, 1fr); }
    .admin-sea-global-fields,
    .admin-sea-demographics { grid-template-columns: 1fr; }
    .admin-sea-daily-table { overflow-x: auto; }
    .admin-sea-daily-row { min-width: 430px; }
    .admin-sea-device-table { overflow-x: auto; }
    .admin-sea-device-row { min-width: 600px; }
    .admin-sea-section { min-width: 0; overflow: hidden; }
    .admin-sea-section .ql-toolbar { overflow-x: auto; }
}

:root {
    --couleur-principale: #cf2228;
    --couleur-principale-hover: #b91c22;
    --couleur-texte: #111827;
    --couleur-texte-secondaire: #6f7582;
    --couleur-bordure: #d9dce2;
    --couleur-fond: #ffffff;
    font-family: 'Google Sans Flex', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-optical-sizing: auto;
    font-feature-settings: 'liga' 1, 'calt' 1;
}

[hidden] {
    display: none !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: inherit;
    color: var(--couleur-texte);
    background: var(--couleur-fond);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-auth {
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

.auth-main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 56px clamp(32px, 5vw, 96px);
    background: #ffffff;
}

.auth-content {
    width: min(100%, 440px);
}

.auth-logo {
    display: flex;
    align-items: center;
    width: 166px;
    margin-bottom: 38px;
    text-decoration: none;
}

.auth-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.auth-warning {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: 100%;
    margin-bottom: 24px;
    padding: 13px 15px;
    color: #b86628;
    background: #fff9f2;
    border: 1px solid #f2c58e;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
}

.auth-warning svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    color: #e89038;
}

.auth-warning p {
    margin: 0;
}

.auth-warning strong {
    color: #a54819;
    font-weight: 750;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading--compact {
    margin-bottom: 32px;
}

.auth-heading h1 {
    margin: 0;
    color: #111111;
    font-size: clamp(24px, 1.7vw, 29px);
    font-weight: 760;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.auth-heading p {
    max-width: 420px;
    margin: 7px 0 0;
    color: var(--couleur-texte-secondaire);
    font-size: 14px;
    line-height: 1.45;
}

.auth-heading strong {
    color: #2b2b2b;
    font-weight: 700;
}

.auth-note {
    margin: 24px 0 0;
    color: #596579;
    font-size: 14px;
    line-height: 1.6;
}

.auth-back {
    display: inline-block;
    margin: 0 0 22px;
    color: #6f7582;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 160ms ease;
}

.auth-back:hover,
.auth-back:focus-visible {
    color: var(--couleur-principale);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field label {
    color: #373b43;
    font-size: 13px;
    font-weight: 680;
}

.auth-field input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    color: #202124;
    background: #ffffff;
    border: 1px solid var(--couleur-bordure);
    border-radius: 7px;
    outline: none;
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-field input::placeholder {
    color: #9298a3;
    opacity: 1;
}

.auth-field input:hover {
    border-color: #b7bcc5;
}

.auth-field input:focus {
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, 0.11);
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    color: #50555f;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--couleur-principale);
    cursor: pointer;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-button:active {
    transform: translateY(1px);
}

.auth-button:focus-visible,
.auth-back:focus-visible,
.auth-return-link:focus-visible,
.auth-logo:focus-visible {
    outline: 3px solid rgba(207, 34, 40, 0.22);
    outline-offset: 3px;
}

.auth-button--primary {
    color: #ffffff;
    background: var(--couleur-principale);
    border-color: var(--couleur-principale);
    box-shadow: 0 5px 14px rgba(207, 34, 40, 0.13);
}

.auth-button--primary:hover {
    background: var(--couleur-principale-hover);
    border-color: var(--couleur-principale-hover);
}

.auth-button--secondary {
    color: #27292e;
    background: #ffffff;
    border-color: var(--couleur-bordure);
}

.auth-button--secondary:hover {
    border-color: #b8bdc6;
    background: #fafafa;
}

.auth-button svg {
    width: 16px;
    height: 16px;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    color: #a1a6af;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    background: #e4e6ea;
    content: '';
}

.auth-form-status {
    margin: -4px 0 0;
    padding: 10px 12px;
    color: #8e1b20;
    background: #fff4f4;
    border: 1px solid #f0b9bc;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.4;
}

.auth-form-status--visible {
    margin: 0 0 18px;
}

.auth-totp {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 17px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.auth-totp input {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    min-width: 0;
    padding: 0;
    color: #171717;
    background: #ffffff;
    border: 1px solid var(--couleur-bordure);
    border-radius: 8px;
    outline: none;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    caret-color: var(--couleur-principale);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-totp input:focus {
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, 0.12);
}

.auth-success-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 0 24px;
    color: #22b766;
    background: #e7f8ef;
    border-radius: 50%;
}

.auth-success-icon svg {
    width: 23px;
    height: 23px;
}

.auth-heading--confirmation {
    margin-bottom: 26px;
}

.page-installation .auth-main {
    align-items: flex-start;
}

.page-installation .auth-content {
    width: min(100%, 620px);
    margin: auto 0;
    padding: 24px 0;
}

.page-installation .auth-logo {
    margin-bottom: 30px;
}

.install-warning {
    margin-bottom: 22px;
}

.install-heading {
    margin-bottom: 24px;
}

.install-form {
    gap: 17px;
}

.install-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.install-optional {
    color: #969ba5;
    font-size: 11px;
    font-weight: 500;
}

.auth-field input[aria-invalid='true'] {
    border-color: #cf2228;
    box-shadow: 0 0 0 3px rgba(207, 34, 40, 0.08);
}

.install-field-error {
    display: block;
    color: #b91c22;
    font-size: 11px;
    line-height: 1.4;
}

.install-errors {
    margin: 0 0 20px;
    padding: 12px 14px;
    color: #971b20;
    background: #fff4f4;
    border: 1px solid #efb4b7;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
}

.install-errors p {
    margin: 3px 0 0;
}

.install-password-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 16px;
    margin: -2px 0 1px;
    padding: 0;
    color: #777d87;
    font-size: 11px;
    line-height: 1.35;
    list-style: none;
}

.install-password-rules li {
    position: relative;
    padding-left: 17px;
    transition: color 160ms ease;
}

.install-password-rules li::before {
    position: absolute;
    top: 4px;
    left: 1px;
    width: 8px;
    height: 8px;
    background: #c6cad1;
    border-radius: 50%;
    content: '';
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.install-password-rules li.is-valid {
    color: #16824a;
}

.install-password-rules li.is-valid::before {
    background: #22a861;
    box-shadow: 0 0 0 3px rgba(34, 168, 97, 0.12);
}

.install-state-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 0 24px;
    border-radius: 50%;
}

.install-state-icon svg {
    width: 23px;
    height: 23px;
}

.install-state-icon--success {
    color: #1d9c59;
    background: #e7f8ef;
}

.install-state-icon--warning {
    color: #c06b21;
    background: #fff4e7;
}

.install-state-icon--error {
    color: #bd2026;
    background: #fff0f1;
}

.auth-return-link {
    color: var(--couleur-principale);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.auth-return-link:hover {
    color: var(--couleur-principale-hover);
    text-decoration: underline;
}

.auth-decoration {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(155deg, #d72b31 0%, #c51e24 100%);
    isolation: isolate;
}

.auth-decoration::after {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 43%);
    content: '';
}

.auth-orbit {
    position: absolute;
    width: clamp(174px, 12vw, 226px);
    aspect-ratio: 1;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.auth-orbit--top {
    top: 8%;
    left: 20%;
}

.auth-orbit--bottom {
    right: 9%;
    bottom: 5%;
}

.auth-floating-icon {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    width: clamp(47px, 3.2vw, 57px);
    aspect-ratio: 1;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    box-shadow: 0 10px 18px rgba(89, 5, 9, 0.18);
    animation: auth-flotter var(--duree, 7s) ease-in-out var(--delai, 0s) infinite alternate;
    will-change: transform;
}

.auth-floating-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.auth-floating-icon--grid {
    --delai: -1.1s;
    --duree: 6.8s;
    top: 13.5%;
    left: 29.5%;
}

.auth-floating-icon--file {
    --delai: -3.2s;
    --duree: 7.6s;
    top: 10%;
    right: 14.5%;
}

.auth-floating-icon--clock {
    --delai: -2.4s;
    --duree: 6.2s;
    top: 38%;
    left: 47%;
}

.auth-floating-icon--shield {
    --delai: -.5s;
    --duree: 7.1s;
    top: 33.5%;
    right: 8.5%;
}

.auth-floating-icon--briefcase {
    --delai: -4.1s;
    --duree: 6.5s;
    left: 24%;
    bottom: 30.5%;
}

.auth-floating-icon--message {
    --delai: -1.8s;
    --duree: 7.4s;
    right: 38%;
    bottom: 36%;
}

.auth-floating-icon--globe {
    --delai: -3.7s;
    --duree: 6.9s;
    left: 41%;
    bottom: 7.5%;
}

.auth-floating-icon--database {
    --delai: -.8s;
    --duree: 7.8s;
    right: 18%;
    bottom: 11.5%;
}

@keyframes auth-flotter {
    0% {
        transform: translate3d(-2px, -8px, 0) rotate(-0.4deg);
    }

    100% {
        transform: translate3d(4px, 9px, 0) rotate(0.8deg);
    }
}

/* Courbes vectorielles SEO et SEA : netteté indépendante du zoom et de la densité d’écran. */
.seo-evolution-chart > svg,
.sea-performance-chart > svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.report-line-grid {
    stroke: #e8eaf0;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.report-line-axis {
    fill: #8b93a7;
    font-family: 'Google Sans Flex', system-ui, sans-serif;
    font-size: 11px;
}

.report-line-area {
    fill: rgba(124, 104, 255, .1);
    stroke: none;
}

.report-line-series {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.report-line-series.is-purple,
.report-line-point.is-purple { stroke: #7c68ff; }
.report-line-series.is-green,
.report-line-point.is-green { stroke: #32c675; }
.report-line-series.is-gray,
.report-line-point.is-gray { stroke: #9fa2af; }

.report-line-point {
    fill: #fff;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.report-line-point.is-hovered {
    stroke-width: 2.5;
}

.report-line-hover {
    stroke: #b6bac5;
    stroke-width: 1;
    stroke-dasharray: 4 4;
    vector-effect: non-scaling-stroke;
}

.statistics-performance-url {
    color: #1769aa;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.statistics-performance-url:hover,
.statistics-performance-url:focus-visible {
    color: var(--couleur-principale);
}

@media (max-width: 960px) {
    .auth-shell {
        display: block;
    }

    .auth-main {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 44px 24px;
    }

    .auth-decoration {
        display: none;
    }
}

@media (max-width: 520px) {
    .auth-main {
        align-items: flex-start;
        padding: 36px 20px;
    }

    .auth-content {
        width: 100%;
        margin: auto 0;
    }

    .auth-logo {
        width: 146px;
        margin-bottom: 32px;
    }

    .auth-heading h1 {
        font-size: 25px;
    }

    .auth-totp {
        gap: 9px;
    }

    .auth-totp input {
        border-radius: 7px;
        font-size: 19px;
    }

    .page-installation .auth-content {
        padding: 0;
    }

    .install-fields-grid,
    .install-password-rules {
        grid-template-columns: 1fr;
    }
}

/* Veille marketing */
.marketing-watch-heading {
    margin-bottom: 28px;
}

.marketing-watch-heading h1 {
    margin: 0 0 14px;
    color: var(--app-text);
    font-size: clamp(29px, 2.7vw, 36px);
    letter-spacing: -.035em;
}

.marketing-watch-heading > p {
    margin: 21px 0 0;
    color: var(--app-muted);
    font-size: 14px;
}

.marketing-watch-weeks {
    display: grid;
    gap: 32px;
}

.marketing-watch-week h2 {
    margin: 0 0 14px;
    color: #1675cf;
    font-size: 18px;
}

.marketing-watch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.marketing-watch-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 11px;
}

.marketing-watch-visual {
    display: grid;
    place-items: center;
    height: 250px;
    overflow: hidden;
    color: #a0a4ae;
    background: repeating-linear-gradient(45deg, var(--app-surface), var(--app-surface) 8px, var(--app-surface-soft) 8px, var(--app-surface-soft) 14px);
    border-bottom: 1px solid var(--app-border);
    font-family: monospace;
    font-size: 11px;
    text-transform: lowercase;
}

.marketing-watch-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketing-watch-card-content {
    display: flex;
    min-height: 210px;
    flex: 1;
    flex-direction: column;
    padding: 17px;
}

.marketing-watch-card h3 {
    margin: 0;
    color: var(--app-text);
    font-size: 15px;
    line-height: 1.25;
}

.marketing-watch-summary {
    margin: 10px 0 14px;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.5;
}

.marketing-watch-source {
    margin: auto 0 7px;
    color: var(--app-muted);
    font-size: 11px;
    font-style: italic;
}

.marketing-watch-link {
    width: 100%;
    gap: 8px;
}

.marketing-watch-link svg {
    width: 16px;
    height: 16px;
}

.marketing-watch-empty {
    display: grid;
    justify-items: center;
    min-height: 300px;
    padding: 56px 24px;
    color: var(--app-muted);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 11px;
    text-align: center;
}

.marketing-watch-empty > svg {
    width: 38px;
    height: 38px;
    color: var(--couleur-principale);
}

.marketing-watch-empty h2 {
    margin: 16px 0 5px;
    color: var(--app-text);
    font-size: 18px;
}

.marketing-watch-empty p {
    margin: 0;
    font-size: 13px;
}

.admin-empty-hint {
    margin: 0 0 16px;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.5;
}

.admin-dropzone {
    position: relative;
    overflow: hidden;
}

.admin-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.admin-current-image {
    width: min(100%, 220px);
    max-height: 125px;
    object-fit: cover;
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.admin-current-visual {
    display: grid;
    gap: 9px;
    color: var(--app-text);
    font-size: 13px;
    font-weight: 720;
}

.admin-form-stack .admin-image-removal {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--app-danger, #c9362b);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.admin-form-stack .admin-image-removal input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    appearance: auto;
    color: initial;
    background: initial;
    border: initial;
    border-radius: 0;
    box-shadow: none;
    accent-color: var(--couleur-principale);
    cursor: pointer;
}

.admin-compact-list form,
.admin-row-actions form {
    margin: 0;
}

.admin-compact-list button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.admin-thumbnail {
    overflow: hidden;
}

.admin-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 651px) and (max-width: 1100px) {
    .marketing-watch-grid {
        gap: 14px;
    }

    .marketing-watch-visual {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .marketing-watch-card-content {
        min-height: 0;
        padding: 13px;
        overflow-wrap: anywhere;
    }

    .marketing-watch-card h3 {
        font-size: 14px;
        line-height: 1.35;
    }

    .marketing-watch-summary {
        font-size: 12px;
    }

    .marketing-watch-card .marketing-watch-link {
        padding-inline: 10px;
        font-size: 12px;
    }
}

@media (max-width: 650px) {
    .marketing-watch-heading {
        margin-bottom: 24px;
    }

    .marketing-watch-heading > p {
        margin-top: 17px;
    }

    .marketing-watch-grid {
        grid-template-columns: 1fr;
    }

    .marketing-watch-visual {
        height: 150px;
    }

    .marketing-watch-card-content {
        min-height: 0;
    }
}

/* Panneau administrateur */
.app-admin-badge {
    text-decoration: none;
}

.app-admin-badge.is-active {
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .15);
}

.admin-page-heading {
    margin-bottom: 24px;
}

.admin-title-row {
    display: flex;
    align-items: center;
    gap: 13px;
}

.admin-title-row h1 {
    margin: 0;
    font-size: clamp(29px, 2.7vw, 36px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.admin-title-row > span {
    padding: 5px 11px;
    color: #ffffff;
    background: var(--couleur-principale);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 750;
}

.admin-panel {
    overflow: hidden;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
}

.admin-tabs {
    display: flex;
    gap: 30px;
    margin: 0 26px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--app-border);
    scrollbar-width: thin;
}

.admin-tabs a {
    position: relative;
    flex: 0 0 auto;
    padding: 17px 1px 15px;
    color: var(--app-muted);
    font-size: 13.5px;
    text-decoration: none;
}

.admin-tabs a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
}

.admin-tabs a:hover,
.admin-tabs a.is-active {
    color: var(--couleur-principale);
}

.admin-tabs a.is-active {
    font-weight: 700;
}

.admin-tabs a.is-active::after {
    background: var(--couleur-principale);
}

.admin-tab-content {
    padding: 25px 26px 28px;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-account-total { margin-right: auto; }
.admin-client-creation { padding: 24px; }
.admin-client-creation h2 { font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.admin-client-creation > p { color: var(--app-muted); margin-bottom: 20px; }
.admin-client-field { min-width: 0; }
.admin-client-field input { min-width: 0; width: 100%; }
.admin-client-field.is-invalid input { border-color: #dc2626; }
.admin-client-field.is-invalid .admin-client-feedback { color: #dc2626; }
.admin-client-feedback:empty { display: none; }
.admin-client-coordinates { margin-top: 24px; }
.admin-client-coordinates .admin-client-field--wide { grid-column: 1 / -1; }
.admin-client-coordinates button[type="submit"] { display: inline-flex; align-items: center; gap: 8px; }
.admin-client-access-note { color: var(--app-muted); font-size: 13px; line-height: 1.6; }
.admin-client-creation .admin-form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-client-creation button[type="submit"],
.admin-toolbar > .button-primary { display: inline-flex; align-items: center; gap: 8px; }

.admin-search {
    position: relative;
    display: block;
    width: min(310px, 100%);
}

.admin-search svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 16px;
    height: 16px;
    color: #a1a5af;
    transform: translateY(-50%);
}

.admin-search input,
.admin-form-stack input,
.admin-form-stack select,
.admin-form-grid input,
.admin-form-grid select,
.admin-inline-create input,
.admin-inline-create select,
.admin-editor-form input,
.admin-editor-form select,
.admin-number-input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    outline: none;
    font: inherit;
    font-size: 13px;
}

.admin-search input {
    padding-left: 39px;
}

.admin-form-stack textarea {
    width: 100%;
    min-height: 104px;
    padding: 12px 13px;
    resize: vertical;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    outline: none;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
}

.admin-search input:focus,
.admin-form-stack input:focus,
.admin-form-stack select:focus,
.admin-form-stack textarea:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-inline-create input:focus,
.admin-editor-form input:focus,
.admin-editor-form select:focus,
.admin-number-input:focus {
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .1);
}

.admin-create-box {
    margin-bottom: 20px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
}

.admin-create-box summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 18px;
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.admin-create-box summary::-webkit-details-marker {
    display: none;
}

.admin-create-box summary span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-create-box summary svg {
    width: 16px;
    height: 16px;
}

.admin-create-box[open] summary > svg {
    transform: rotate(180deg);
}

.admin-create-content {
    padding: 20px 18px;
    border-top: 1px solid var(--app-border-soft);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form-grid--title-category {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 16px;
}

.admin-form-stack {
    display: grid;
    gap: 15px;
}

.admin-form-grid label,
.admin-form-stack label {
    display: grid;
    gap: 7px;
    color: var(--app-text);
    font-size: 12.5px;
    font-weight: 650;
}

.admin-form-stack label > small,
.admin-field-label small {
    color: var(--app-muted);
    font-weight: 450;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.admin-form-actions--left {
    justify-content: flex-start;
}

.admin-action-button { gap: 9px; }
.admin-action-button svg { flex: 0 0 auto; height: 16px; width: 16px; }

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 12.5px;
}

.admin-table th {
    padding: 10px 14px;
    color: #999eaa;
    background: var(--app-surface-soft);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .03em;
    text-align: left;
    text-transform: uppercase;
}

.admin-table th:first-child {
    border-radius: 8px 0 0 8px;
}

.admin-table th:last-child {
    border-radius: 0 8px 8px 0;
}

.admin-table td {
    padding: 11px 14px;
    color: var(--app-muted);
    border-bottom: 1px solid var(--app-border-soft);
}

.admin-table td strong {
    color: var(--app-text);
}

.admin-person {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.admin-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    overflow: hidden;
    color: #ffffff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 750;
}

.admin-avatar--violet { background: #7c68f6; }
.admin-avatar--vert { background: #36bd74; }
.admin-avatar--bleu { background: #63b9ee; }
.admin-avatar--rouge { background: #ee493c; }
.admin-avatar--photo { background: #ffffff; }

.admin-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-status,
.admin-tag,
.admin-log-type {
    display: inline-flex;
    padding: 4px 10px;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
}

.admin-status.is-active {
    color: #159654;
    background: #dff7e9;
}

.admin-small-button {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 11.5px;
}

.admin-veille-top {
    display: grid;
    grid-template-columns: minmax(300px, .75fr) minmax(480px, 1.8fr);
    gap: 24px;
}

.admin-card {
    min-width: 0;
    padding: 22px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 11px;
}

.admin-card h2,
.admin-settings-section h2 {
    margin: 0 0 18px;
    font-size: 15px;
}

.admin-card h3 {
    margin: 20px 0 12px;
    font-size: 14px;
}

.admin-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.admin-card-heading h2 {
    margin: 0;
}

.admin-card-heading svg,
.admin-row-actions svg {
    width: 15px;
    height: 15px;
}

.admin-dropzone {
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 76px;
    padding: 14px;
    color: #999eaa;
    border: 1px dashed var(--app-border);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 450;
    text-align: center;
    cursor: pointer;
}

.admin-dropzone svg {
    width: 20px;
    height: 20px;
}

.admin-compact-list {
    display: grid;
    gap: 7px;
}

.admin-compact-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font-size: 12px;
}

.admin-compact-list span {
    color: #999eaa;
    font-size: 10.5px;
}

.admin-compact-list button {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: #a6aab3;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.admin-compact-list button svg {
    width: 15px;
    height: 15px;
}

.admin-inline-create {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 14px;
}

.admin-card--full {
    margin-top: 24px;
}

.admin-published-section {
    padding-bottom: 10px;
}

.admin-article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

.admin-article-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--app-border-soft);
}

.admin-thumbnail {
    display: grid;
    place-items: center;
    width: 48px;
    height: 40px;
    color: #adb1ba;
    background: repeating-linear-gradient(45deg, var(--app-surface-soft), var(--app-surface-soft) 6px, var(--app-border-soft) 6px, var(--app-border-soft) 9px);
    border-radius: 7px;
}

.admin-thumbnail svg {
    width: 18px;
    height: 18px;
}

.admin-article-row strong,
.admin-article-row small {
    display: block;
}

.admin-article-row strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-article-row small {
    margin-top: 3px;
    color: #999eaa;
    font-size: 10.5px;
}

.admin-row-actions {
    display: flex;
    gap: 8px;
}

.admin-split-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
}

.admin-split-layout--narrow {
    grid-template-columns: 280px minmax(0, 1fr);
}

.admin-split-layout--pages {
    grid-template-columns: 270px minmax(0, 1fr);
}

.admin-faq-list {
    display: grid;
    gap: 7px;
}

.admin-faq-list > article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 24px auto auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 5px 10px 5px 13px;
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font-size: 12px;
}

.admin-faq-list > article > form {
    margin: 0;
}

.admin-faq-popular {
    display: grid;
    place-items: center;
    color: #d99600;
    opacity: 0;
}

.admin-faq-popular.is-visible {
    opacity: 1;
}

.admin-faq-popular svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.admin-check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    font-size: 12px;
    font-weight: 650;
}

.admin-client-suppression label.admin-check-row { display: flex; align-items: flex-start; }

.admin-check-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

.admin-tag {
    color: #1675cf;
    background: #e1f1ff;
}

.admin-editor-form {
    margin-top: 18px;
}

.admin-editor-form > .admin-form-grid--title-category {
    margin-bottom: 16px;
}

.admin-editor-form > .admin-check-row {
    margin-top: 18px;
}

.admin-panel .admin-quill.ql-container.ql-snow {
    min-height: 190px;
    color: var(--app-text);
    background: var(--app-surface);
    border-color: var(--app-border);
    border-radius: 0 0 8px 8px;
    font-family: inherit;
    font-size: 13px;
}

.admin-panel .admin-quill--large.ql-container.ql-snow {
    min-height: 260px;
}

.admin-panel .ql-toolbar.ql-snow {
    border-color: var(--app-border);
    border-radius: 8px 8px 0 0;
    font-family: inherit;
}

.admin-panel .ql-editor {
    min-height: 188px;
    line-height: 1.6;
}

.admin-panel .admin-quill--large .ql-editor {
    min-height: 258px;
}

.admin-panel .admin-sea-summary-editor.ql-container.ql-snow {
    height: 210px;
    min-height: 210px;
    max-height: 210px;
    overflow: hidden;
}

.admin-panel .admin-sea-summary-editor .ql-editor {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

.page-app.is-dark .admin-panel .ql-toolbar.ql-snow .ql-stroke {
    stroke: var(--app-text);
}

.page-app.is-dark .admin-panel .ql-toolbar.ql-snow .ql-fill {
    fill: var(--app-text);
}

.page-app.is-dark .admin-panel .ql-picker {
    color: var(--app-text);
}

.admin-page-list {
    display: grid;
    gap: 7px;
}

.admin-page-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 0 12px;
    color: var(--app-text);
    background: transparent;
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font-size: 12px;
    text-align: left;
}

.admin-page-list-item.is-active {
    color: var(--couleur-principale);
    background: rgba(207, 34, 40, .05);
    border-color: var(--couleur-principale);
}

.admin-page-list-item > a {
    display: flex;
    align-items: center;
    align-self: stretch;
    min-width: 0;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.admin-page-list-item form {
    flex: 0 0 auto;
    margin: 0;
}

.admin-page-list-item button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #a3a7b0;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.admin-page-list-item button:hover {
    color: var(--couleur-principale);
    background: rgba(207, 34, 40, .08);
}

.admin-page-list svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: #a3a7b0;
}

.admin-help {
    margin: 14px 0 0;
    color: #999eaa;
    font-size: 11px;
    line-height: 1.5;
}

.admin-settings-section + .admin-settings-section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--app-border);
}

.admin-current-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 7px;
}

.admin-current-qr > span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    color: #9da1ab;
    background: repeating-linear-gradient(45deg, var(--app-surface-soft), var(--app-surface-soft) 6px, var(--app-border-soft) 6px, var(--app-border-soft) 9px);
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.admin-current-qr > span svg {
    width: 28px;
    height: 28px;
}

.admin-current-qr > span img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
}

.admin-qr-upload {
    display: grid;
    align-content: start;
    gap: 12px;
}

.admin-review-links-form {
    margin-bottom: 22px;
}

.admin-qr-upload > button {
    justify-self: start;
}

.admin-qr-empty {
    color: var(--app-muted);
    font-size: 12px;
}

.admin-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    color: var(--app-muted) !important;
    font-size: 12px !important;
    font-weight: 450 !important;
    cursor: pointer;
}

.admin-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.admin-toggle > span {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    background: #d3d5da;
    border-radius: 20px;
    transition: background-color 150ms ease;
}

.admin-toggle > span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    transition: transform 150ms ease;
}

.admin-toggle input:checked + span {
    background: #31b96c;
}

.admin-toggle input:checked + span::after {
    transform: translateX(18px);
}

.admin-toggle input:focus-visible + span {
    outline: 3px solid rgba(207, 34, 40, .18);
    outline-offset: 2px;
}

.admin-settings-list {
    max-width: 740px;
}

.admin-settings-list > label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 12px 0;
    border-bottom: 1px solid var(--app-border-soft);
}

.admin-maintenance-form {
    display: grid;
    gap: 16px;
    margin: 18px 0;
}

.admin-maintenance-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-maintenance-ips {
    display: grid;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    font-weight: 650;
}

.admin-maintenance-ips textarea {
    width: 100%;
    min-width: 0;
    min-height: 112px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 7px;
    color: var(--app-text);
    background: var(--app-surface);
    font: inherit;
    font-weight: 450;
    line-height: 1.5;
    resize: vertical;
}

.admin-maintenance-ips textarea:focus-visible {
    border-color: var(--couleur-principale);
    outline: 3px solid rgba(207, 34, 40, .1);
}

.admin-maintenance-help {
    margin: 0;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.6;
}

.admin-maintenance-form .admin-maintenance-help strong { display: inline; color: var(--app-text); }
.admin-maintenance-form .profile-form-actions { margin-top: 0; flex-wrap: wrap; }

.admin-renewals-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--app-border-soft);
}

.admin-renewals-setting strong,
.admin-renewals-setting small {
    display: block;
}

.admin-renewals-setting strong {
    font-size: 13px;
}

.admin-renewals-setting small {
    max-width: 620px;
    margin-top: 3px;
    color: var(--app-muted);
    font-size: 11px;
    line-height: 1.5;
}

.admin-renewals-setting form {
    flex: 0 0 auto;
    margin: 0;
}

.admin-settings-list strong,
.admin-settings-list small {
    display: block;
}

.admin-settings-list strong {
    font-size: 13px;
}

.admin-settings-list small {
    margin-top: 3px;
    color: var(--app-muted);
    font-size: 11px;
}

.admin-setting-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.admin-number-input {
    width: 80px;
}

.admin-toolbar--journal {
    flex-wrap: wrap;
}

.admin-toolbar--clients {
    flex-wrap: wrap;
    align-items: flex-end;
}

.admin-company-accounts {
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid var(--border-color, #e0e2ea);
    border-radius: 12px;
    min-width: 0;
}
.admin-company-members { list-style: none; padding: 0; margin: 18px 0; }
.admin-company-members li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-color, #e0e2ea); }
.admin-company-members li > div { min-width: 0; overflow-wrap: anywhere; }
.admin-company-members span, .admin-company-members small { display: block; margin-top: 4px; }
.admin-company-members a { font-weight: 600; text-decoration: underline; }
.admin-company-members form { display: grid; gap: 8px; max-width: 100%; }
.admin-company-access-form { margin-top: 16px; min-width: 0; }
.admin-company-access-form summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.admin-company-access-form .admin-form-stack { margin-top: 12px; }
.admin-company-access-form select { width: 100%; min-width: 0; max-width: 100%; }
.admin-company-accounts .admin-company-confirm { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.admin-company-accounts .admin-company-confirm input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; flex: 0 0 16px; margin: 2px 0 0; padding: 0; }
.admin-company-accounts button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; max-width: 100%; white-space: normal; }
@media (max-width: 520px) { .admin-company-accounts { padding: 14px; } }

.admin-toolbar--clients .admin-account-total {
    flex-basis: 100%;
}

.admin-client-sort {
    display: grid;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    color: var(--app-muted);
    font-size: 12px;
}

.admin-client-sort select {
    min-height: 38px;
    max-width: 100%;
    padding: 7px 10px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font: inherit;
}

.admin-client-password {
    scroll-margin-top: 100px;
}

.admin-client-password .admin-client-password-confirm {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.admin-client-password-confirm input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 3px 0 0;
    padding: 0;
    flex: 0 0 16px;
    align-self: flex-start;
}

.admin-client-password .admin-form-actions button,
.admin-toolbar--clients button {
    gap: 8px;
    max-width: 100%;
    white-space: normal;
}

.admin-journal-cleanup {
    scroll-margin-top: 100px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: var(--app-surface);
    color: var(--app-text);
    font-size: 13px;
    line-height: 1.6;
}

.admin-journal-cleanup summary {
    cursor: pointer;
    font-weight: 700;
}

.admin-journal-cleanup p {
    margin: 10px 0;
}

.admin-journal-cleanup-date {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 16px 0;
}

.admin-journal-cleanup-date label {
    display: grid;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.admin-journal-cleanup-date input {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font: inherit;
}

.admin-journal-cleanup-preview {
    margin: 16px 0;
    padding-top: 12px;
    border-top: 1px solid var(--app-border);
}

.admin-journal-cleanup-confirm {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.admin-journal-cleanup-confirm label {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.admin-journal-cleanup button {
    max-width: 100%;
    white-space: normal;
    gap: 8px;
}

.admin-journal-cleanup button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.admin-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-filter-buttons a,
.admin-filter-buttons button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 15px;
    color: var(--app-muted);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.admin-filter-buttons a.is-active,
.admin-filter-buttons button.is-active {
    color: #ffffff;
    background: var(--couleur-principale);
    border-color: var(--couleur-principale);
}

.admin-table--journal {
    min-width: 980px;
}

.admin-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    text-decoration: none;
}

.admin-sort-link svg {
    width: 12px;
    height: 12px;
}

.admin-sort-link.is-active {
    color: var(--couleur-principale);
}

.admin-log-ip {
    color: #1574d1;
}

.admin-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 4px 0;
    color: var(--app-muted);
    font-size: 11px;
}

.admin-pagination {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.admin-pagination a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--app-text);
    border: 1px solid var(--app-border);
    border-radius: 7px;
}

.admin-pagination svg {
    width: 14px;
    height: 14px;
}

.admin-empty-state {
    padding-block: 34px !important;
    color: var(--app-muted);
    text-align: center;
}

.admin-log-type--bleu {
    color: #1675cf;
    background: #e1f1ff;
}

.admin-log-type--jaune {
    color: #aa7500;
    background: #fff0c7;
}

.admin-log-type--vert {
    color: #15884e;
    background: #dff5e9;
}

.interface-notification {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    max-width: min(390px, calc(100vw - 32px));
    padding: 13px 16px;
    color: #ffffff;
    background: #24262b;
    border-radius: 9px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .2);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
    font-size: 12px;
}

.interface-notification.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Aperçu du mode maintenance */
.maintenance-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    color: #17191f;
    background: #f5f0e8;
}

.maintenance-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.maintenance-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px clamp(40px, 8vw, 140px);
}

.maintenance-logo {
    position: absolute;
    top: 42px;
    left: clamp(40px, 8vw, 140px);
    width: 142px;
}

.maintenance-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.maintenance-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(54px, 7vw, 104px);
    line-height: .93;
    letter-spacing: -.065em;
}

.maintenance-copy h1 em {
    color: var(--couleur-principale);
    font-family: Georgia, serif;
    font-weight: 500;
}

.maintenance-copy > p {
    max-width: 610px;
    margin: 0;
    color: #5f5a55;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.65;
}

.maintenance-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    margin-top: 38px;
}

.maintenance-meta > a {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.maintenance-meta svg {
    width: 20px;
    height: 20px;
    color: var(--couleur-principale);
}

.maintenance-meta > a {
    min-height: 44px;
    padding: 0 17px;
    color: #17191f;
    background: transparent;
    border: 1px solid #cfc7bc;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.maintenance-preview-note {
    position: absolute;
    bottom: 30px;
    color: #969087;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.maintenance-visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: var(--couleur-principale);
}

.maintenance-visual::before {
    content: '';
    position: absolute;
    top: 9%;
    right: 12%;
    width: 56%;
    aspect-ratio: 1;
    background: #ee744f;
    border-radius: 46% 54% 62% 38% / 53% 39% 61% 47%;
    transform: rotate(13deg);
}

.maintenance-orbit {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, .38);
    border-radius: 50%;
}

.maintenance-orbit--one {
    top: 16%;
    right: -12%;
    width: 70%;
    aspect-ratio: 1;
}

.maintenance-orbit--two {
    bottom: -16%;
    left: -21%;
    width: 75%;
    aspect-ratio: 1;
}

.maintenance-tool-card,
.maintenance-code-card {
    position: absolute;
    z-index: 2;
    color: #17191f;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(83, 11, 15, .24);
}

.maintenance-tool-card {
    top: 29%;
    left: 18%;
    display: grid;
    justify-items: center;
    gap: 12px;
    width: 170px;
    padding: 28px 20px;
    border-radius: 50px 18px 50px 18px;
    transform: rotate(-7deg);
    font-size: 13px;
    font-weight: 750;
}

.maintenance-tool-card svg {
    width: 38px;
    height: 38px;
    color: var(--couleur-principale);
}

.maintenance-code-card {
    right: 13%;
    bottom: 21%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 22px;
    border-radius: 14px;
    transform: rotate(5deg);
}

.maintenance-code-card > span {
    color: var(--couleur-principale);
    font-family: monospace;
    font-size: 21px;
    font-weight: 800;
}

.maintenance-code-card small {
    font-family: monospace;
}

.maintenance-smile {
    position: absolute;
    right: 16%;
    top: 18%;
    z-index: 2;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 72px;
    transform: rotate(11deg);
}

.maintenance-dot {
    position: absolute;
    z-index: 3;
    background: #ffd66b;
    border-radius: 50%;
}

.maintenance-dot--one {
    top: 64%;
    left: 13%;
    width: 22px;
    height: 22px;
}

.maintenance-dot--two {
    right: 22%;
    bottom: 10%;
    width: 11px;
    height: 11px;
}

@media (max-width: 1180px) {
    .admin-form-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-veille-top,
    .admin-split-layout,
    .admin-split-layout--narrow,
    .admin-split-layout--pages {
        grid-template-columns: 1fr;
    }

    .admin-article-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .admin-tabs {
        gap: 23px;
        margin-inline: 16px;
    }

    .admin-tab-content {
        padding: 20px 16px 22px;
    }

    .admin-form-grid,
    .admin-form-grid--three {
        grid-template-columns: 1fr;
    }

    .admin-form-grid--title-category {
        grid-template-columns: minmax(0, 1fr) 150px;
    }

    .admin-faq-list > article {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .admin-faq-list > article .admin-tag {
        justify-self: end;
    }

    .admin-faq-list > article .admin-faq-popular,
    .admin-faq-list > article .button-secondary,
    .admin-faq-list > article form {
        display: none;
    }

    .maintenance-shell {
        grid-template-columns: 1fr;
    }

    .maintenance-copy {
        min-height: 64vh;
        padding: 110px 28px 70px;
    }

    .maintenance-logo {
        top: 30px;
        left: 28px;
    }

    .maintenance-preview-note {
        position: static;
        margin-top: 40px;
    }

    .maintenance-visual {
        min-height: 460px;
    }
}

@media (max-width: 560px) {
    .admin-title-row {
        align-items: flex-start;
    }

    .admin-title-row h1 {
        font-size: 28px;
    }

    .admin-card {
        padding: 17px;
    }

    .admin-form-grid--title-category {
        grid-template-columns: 1fr;
    }

    .admin-inline-create,
    .admin-article-row {
        grid-template-columns: 1fr;
    }

    .admin-article-row {
        align-items: start;
    }

    .admin-row-actions {
        grid-column: 1;
    }

    .admin-thumbnail {
        display: none;
    }

    .admin-settings-list > label {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-setting-action {
        justify-content: space-between;
        width: 100%;
    }

    .maintenance-copy h1 {
        font-size: 53px;
    }

    .maintenance-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .maintenance-visual {
        min-height: 390px;
    }

    .maintenance-tool-card {
        left: 9%;
        width: 145px;
    }
}

.documents-heading {
    margin-bottom: 26px;
}

.documents-heading h1 {
    margin: 0;
    color: var(--app-text);
    font-size: clamp(28px, 2.6vw, 34px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.documents-heading > p {
    margin: 17px 0 0;
    color: var(--app-muted);
    font-size: 13px;
}

.document-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.document-stat-card {
    display: grid;
    min-height: 142px;
    padding: 20px;
    place-items: center;
    align-content: center;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.document-stat-card:hover {
    border-color: rgba(207, 34, 40, .35);
    box-shadow: 0 10px 28px rgba(18, 24, 40, .07);
    transform: translateY(-2px);
}

.document-stat-card strong {
    margin: 12px 0 4px;
    font-size: 14px;
}

.document-stat-card > span:last-child {
    font-size: 13px;
    font-weight: 600;
}

.document-stat-card small {
    display: inline-flex;
    margin-left: 4px;
    padding: 3px 7px;
    color: #344054;
    background: rgba(255, 255, 255, .72);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 750;
}

.document-stat-icon,
.document-file-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ffffff;
    border-radius: 9px;
}

.document-stat-icon {
    width: 42px;
    height: 42px;
}

.document-stat-icon svg {
    width: 20px;
    height: 20px;
}

.document-file-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.document-file-icon svg {
    width: 16px;
    height: 16px;
}

.document-format-icon {
    position: relative;
    display: inline-grid;
    width: 38px;
    height: 42px;
    place-items: end center;
    flex: 0 0 auto;
    padding: 0 3px 7px;
    color: #ffffff;
    background: #87909f;
    border-radius: 5px;
    box-shadow: inset 0 -15px 0 rgba(0, 0, 0, .08);
}

.document-format-icon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, .72);
    border-radius: 0 4px 0 3px;
}

.document-format-icon span {
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
    font-size: 7.5px;
    font-weight: 850;
    letter-spacing: -.025em;
    line-height: 1;
    text-overflow: clip;
}

.document-format-icon--rouge { background: #e73535; }
.document-format-icon--bleu { background: #287bc5; }
.document-format-icon--vert { background: #20a85b; }
.document-format-icon--violet { background: #7659e8; }
.document-format-icon--orange { background: #e7792c; }
.document-format-icon--gris { background: #747d8c; }

.document-icon--rouge { background: #ef4036; }
.document-icon--bleu { background: #5eb5ed; }
.document-icon--vert { background: #39c878; }
.document-icon--violet { background: #7f68f6; }
.document-icon--jaune { background: #f5c542; }
.document-icon--orange { background: #f18a3d; }
.document-icon--gris { background: #87909f; }

.documents-browser {
    position: relative;
}

.documents-browser.is-loading::after {
    content: '';
    position: absolute;
    inset: 54px 0 0;
    z-index: 2;
    background: rgba(255, 255, 255, .44);
    pointer-events: none;
}

.page-app.is-dark .documents-browser.is-loading::after {
    background: rgba(20, 21, 24, .44);
}

.documents-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 14px;
}

.documents-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.documents-filters button,
.documents-pagination button {
    min-width: 42px;
    height: 34px;
    padding: 0 13px;
    color: var(--app-muted);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 650;
    cursor: pointer;
}

.documents-filters button:hover,
.documents-filters button.is-active,
.documents-pagination button.is-active {
    color: #ffffff;
    background: var(--couleur-principale);
    border-color: var(--couleur-principale);
}

.documents-search {
    position: relative;
    width: min(280px, 100%);
}

.documents-search svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 16px;
    height: 16px;
    color: #98a2b3;
    transform: translateY(-50%);
}

.documents-search input,
.admin-document-category select {
    width: 100%;
    height: 42px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 12px;
}

.documents-search input {
    padding: 0 13px 0 40px;
}

.documents-search input:focus,
.admin-document-category select:focus {
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .1);
}

.documents-table-wrap {
    overflow: hidden;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.documents-table th {
    height: 39px;
    padding: 0 18px;
    color: #999eaa;
    background: var(--app-surface-soft);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .035em;
    text-align: left;
    text-transform: uppercase;
}

.documents-table th svg {
    width: 11px;
    height: 11px;
    vertical-align: middle;
}

.documents-table td {
    height: 54px;
    padding: 8px 18px;
    color: var(--app-muted);
    border-bottom: 1px solid var(--app-border-soft);
}

.documents-table td:not(:first-child) {
    white-space: nowrap;
}

.documents-table th:first-child,
.documents-table td:first-child {
    width: 62%;
}

.document-name {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.document-name strong {
    color: var(--app-text);
    overflow-wrap: anywhere;
}

.document-category-pill {
    display: inline-flex;
    padding: 4px 10px;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 650;
}

.document-category-pill--bleu { color: #236ca9; background: #e5f3fd; }
.document-category-pill--vert { color: #18874a; background: #e5f8ed; }
.document-category-pill--violet { color: #654bd4; background: #efebff; }
.document-category-pill--jaune { color: #9a6b00; background: #fff4cf; }
.document-category-pill--orange { color: #b85b1d; background: #fff0e5; }
.document-category-pill--rouge { color: #bb2d35; background: #ffeaeb; }
.document-category-pill--gris { color: #5f6877; background: #edf0f3; }

.document-download,
.admin-document-delete {
    display: inline-grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    color: var(--app-muted);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    cursor: pointer;
}

.document-download:hover,
.admin-document-delete:hover {
    color: var(--couleur-principale);
    border-color: rgba(207, 34, 40, .4);
}

.document-download svg,
.admin-document-delete svg {
    width: 15px;
    height: 15px;
}

.documents-table-footer {
    display: flex;
    min-height: 58px;
    padding: 10px 18px;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.documents-table-footer p {
    margin: 0;
    color: var(--app-muted);
    font-size: 11px;
}

.documents-pagination {
    display: flex;
    gap: 5px;
}

.documents-pagination button {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
}

.documents-pagination button:disabled {
    opacity: .4;
    cursor: default;
}

.documents-pagination svg {
    width: 13px;
    height: 13px;
}

.documents-empty {
    display: grid;
    padding: 46px 20px;
    place-items: center;
    color: var(--app-muted);
    text-align: center;
}

.documents-empty svg {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
}

.documents-empty strong {
    color: var(--app-text);
    font-size: 14px;
}

.documents-empty span {
    margin-top: 5px;
    font-size: 11.5px;
}

.admin-person > span:last-child,
.admin-document-details {
    display: grid;
    gap: 3px;
}

.admin-person small,
.admin-document-details small {
    color: var(--app-muted);
    font-size: 10.5px;
}

.admin-small-button {
    display: inline-flex;
    text-decoration: none;
}

.admin-client-panel {
    min-height: 520px;
}

.admin-client-profile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-client-profile > div {
    display: grid;
    gap: 7px;
    padding: 16px;
    background: var(--app-surface-soft);
    border-radius: 8px;
}

.admin-client-profile span {
    color: var(--app-muted);
    font-size: 11px;
}

.admin-client-profile strong {
    font-size: 13px;
}

.admin-client-files-grid {
    display: block;
}

.admin-section-heading h2 {
    margin: 0;
    font-size: 16px;
}

.admin-section-heading p {
    margin: 6px 0 0;
    color: var(--app-muted);
    font-size: 11.5px;
}

.admin-document-upload {
    display: grid;
    align-content: start;
    gap: 16px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--app-border);
}

.admin-document-upload-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.admin-document-category {
    display: grid;
    width: min(320px, 100%);
    gap: 7px;
    font-size: 12px;
    font-weight: 650;
}

.admin-document-category select {
    padding: 0 12px;
}

.admin-document-dropzone {
    position: relative;
    display: grid;
    min-height: 210px;
    padding: 24px;
    place-items: center;
    align-content: center;
    color: var(--app-muted);
    text-align: center;
    border: 1.5px dashed #cfd3db;
    border-radius: 10px;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.admin-document-dropzone:hover,
.admin-document-dropzone.is-dragging,
.admin-document-dropzone.has-files {
    background: rgba(207, 34, 40, .035);
    border-color: var(--couleur-principale);
}

.admin-document-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.admin-document-upload-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 13px;
    place-items: center;
    border: 1px solid var(--app-border);
    border-radius: 50%;
}

.admin-document-upload-icon svg {
    width: 21px;
    height: 21px;
}

.admin-document-dropzone strong {
    color: var(--app-text);
    font-size: 13px;
}

.admin-document-dropzone > span:not(.admin-document-upload-icon):not(.button-secondary) {
    margin-top: 6px;
    font-size: 11px;
}

.admin-document-dropzone .button-secondary {
    margin-top: 14px;
    pointer-events: none;
}

.admin-document-formats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px 18px;
    padding: 14px 16px;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    border-radius: 8px;
    font-size: 10.5px;
    line-height: 1.45;
}

.admin-document-formats > strong {
    color: var(--app-text);
    font-size: 11px;
}

.admin-document-formats b {
    color: var(--app-text);
    font-weight: 700;
}

.admin-document-selection {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 9px;
}

.admin-document-selection-heading {
    display: flex;
    min-height: 43px;
    padding: 10px 14px;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: var(--app-surface-soft);
}

.admin-document-selection-heading strong {
    font-size: 12px;
}

.admin-document-selection-heading span {
    color: var(--app-muted);
    font-size: 10.5px;
}

.admin-document-selection-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 220px;
    min-height: 60px;
    padding: 8px 14px;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--app-border-soft);
}

.admin-document-selection-category {
    display: grid;
    gap: 5px;
    color: var(--app-muted);
    font-size: 9.5px;
    font-weight: 650;
}

.admin-document-selection-category select {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    outline: none;
    font: inherit;
    font-size: 11px;
}

.admin-document-selection-category select:focus {
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .1);
}

.admin-document-selection-row.is-invalid {
    background: #fff6f6;
}

.page-app.is-dark .admin-document-selection-row.is-invalid {
    background: rgba(207, 34, 40, .08);
}

.admin-document-selection-details {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.admin-document-selection-details strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-document-selection-details small {
    color: var(--app-muted);
    font-size: 10.5px;
}

.admin-document-selection-row.is-invalid small,
.admin-document-selection-alert {
    color: var(--couleur-principale);
}

.admin-document-selection-alert {
    margin: 0;
    padding: 10px 14px;
    background: #fff6f6;
    font-size: 11px;
    font-weight: 650;
}

.admin-document-upload-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-document-upload-actions > .button-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.admin-document-upload-actions > .button-primary svg {
    width: 15px;
    height: 15px;
}

.admin-document-upload-actions > .button-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.admin-document-feedback {
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 11.5px;
    line-height: 1.45;
}

.admin-document-feedback--succes {
    color: #087443;
    background: #effbf5;
    border-color: #bcebd3;
}

.admin-document-feedback--attention {
    color: #946000;
    background: #fffaeb;
    border-color: #f5d58a;
}

.admin-document-feedback--erreur {
    color: #a5141a;
    background: #fff4f4;
    border-color: #f1b8bb;
}

.admin-document-list {
    min-width: 0;
    margin-top: 28px;
}

.admin-document-list > .admin-section-heading {
    margin-bottom: 15px;
}

.admin-document-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-height: 58px;
    align-items: center;
    gap: 11px;
    padding: 9px 0;
    border-bottom: 1px solid var(--app-border-soft);
}

.admin-document-details strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-document-row form {
    margin: 0;
}

.admin-documents-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--app-border);
    border-radius: 9px;
}

.admin-documents-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 11.5px;
}

.admin-documents-table th {
    height: 39px;
    padding: 0 14px;
    color: #999eaa;
    background: var(--app-surface-soft);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .035em;
    text-align: left;
    text-transform: uppercase;
}

.admin-documents-table td {
    height: 62px;
    padding: 8px 14px;
    color: var(--app-muted);
    border-top: 1px solid var(--app-border-soft);
    white-space: nowrap;
}

.admin-documents-table th:first-child,
.admin-documents-table td:first-child {
    width: 56%;
}

.admin-documents-table .document-name strong {
    max-width: min(520px, 38vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-document-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.admin-document-actions form {
    margin: 0;
}

.admin-document-empty,
.admin-client-placeholder {
    display: grid;
    min-height: 260px;
    padding: 30px;
    place-items: center;
    align-content: center;
    color: var(--app-muted);
    text-align: center;
    background: var(--app-surface-soft);
    border-radius: 9px;
}

.admin-document-empty svg,
.admin-client-placeholder svg {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
}

.admin-client-placeholder h2 {
    margin: 0;
    color: var(--app-text);
    font-size: 17px;
}

.admin-client-placeholder p {
    max-width: 480px;
    margin: 7px 0 0;
    font-size: 12px;
}

.profile-breadcrumb .profile-breadcrumb-link {
    display: inline-flex;
    width: auto;
    height: auto;
    padding: 0;
    color: var(--app-muted);
    background: transparent;
    border: 0;
    border-radius: 0;
    text-decoration: none;
    white-space: nowrap;
}

.profile-breadcrumb .profile-breadcrumb-link:hover {
    color: var(--couleur-principale);
}

.app-flash--attention {
    color: #9a6200;
    background: #fffaeb;
    border-color: #f5d58a;
}

@media (max-width: 1100px) {
    .document-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-document-formats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-document-formats > strong {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .documents-toolbar {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .documents-search {
        width: 100%;
    }

    .documents-table thead {
        display: none;
    }

    .documents-table,
    .documents-table tbody,
    .documents-table tr,
    .documents-table td {
        display: block;
        width: 100%;
    }

    .documents-table tr {
        position: relative;
        padding: 14px 56px 14px 14px;
        border-bottom: 1px solid var(--app-border-soft);
    }

    .documents-table td,
    .documents-table td:first-child {
        width: 100%;
        height: auto;
        padding: 3px 0;
        border: 0;
        white-space: normal;
    }

    .documents-table td:first-child {
        margin-bottom: 6px;
    }

    .documents-table td:not(:first-child):not(:last-child)::before {
        content: attr(data-label) ': ';
        font-weight: 650;
    }

    .documents-table td:last-child {
        position: absolute;
        top: 50%;
        right: 14px;
        width: 34px;
        transform: translateY(-50%);
    }

    .document-category-pill {
        padding: 2px 7px;
    }

    .documents-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-client-profile {
        grid-template-columns: 1fr;
    }

    .admin-document-upload-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-document-selection-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-document-selection-category {
        grid-column: 2;
    }

    .admin-document-category {
        width: 100%;
    }

    .admin-documents-table-wrap {
        overflow: visible;
        border: 0;
    }

    .admin-documents-table,
    .admin-documents-table tbody,
    .admin-documents-table tr,
    .admin-documents-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .admin-documents-table thead {
        display: none;
    }

    .admin-documents-table tr {
        position: relative;
        margin-bottom: 10px;
        padding: 14px;
        background: var(--app-surface);
        border: 1px solid var(--app-border);
        border-radius: 9px;
    }

    .admin-documents-table td,
    .admin-documents-table td:first-child {
        width: 100%;
        height: auto;
        padding: 3px 0;
        border: 0;
        white-space: normal;
    }

    .admin-documents-table td:first-child {
        margin-bottom: 8px;
    }

    .admin-documents-table td:not(:first-child):not(:last-child)::before {
        content: attr(data-label) ': ';
        font-weight: 650;
    }

    .admin-documents-table td:last-child {
        margin-top: 9px;
    }

    .admin-documents-table .document-name strong {
        max-width: calc(100vw - 130px);
    }
}

@media (max-width: 520px) {
    .document-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .document-stat-card {
        min-height: 128px;
        padding: 14px 8px;
    }

    .documents-filters {
        flex-wrap: nowrap;
        margin-inline: -16px;
        padding-inline: 16px;
        overflow-x: auto;
    }

    .documents-filters button {
        flex: 0 0 auto;
    }

    .admin-client-panel .admin-tab-content {
        padding-inline: 16px;
    }

    .admin-document-dropzone {
        min-height: 210px;
        padding: 20px 14px;
    }

    .admin-document-formats {
        grid-template-columns: 1fr;
    }

    .admin-document-selection-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-document-upload-actions > .button-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }

    .auth-floating-icon {
        animation: none;
    }
}

.auth-alert {
    margin: 0 0 18px;
    padding: 11px 13px;
    border: 1px solid;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.45;
}

.auth-alert--error {
    color: #a61b21;
    background: #fff5f5;
    border-color: #efb8ba;
}

.auth-recovery-details {
    color: #777d89;
    font-size: 11px;
    text-align: center;
}

.auth-recovery-details summary {
    cursor: pointer;
}

.auth-recovery-details input {
    width: 100%;
    height: 40px;
    margin-top: 10px;
    padding: 0 12px;
    color: #171717;
    background: #fff;
    border: 1px solid #d9dce2;
    border-radius: 7px;
    text-align: center;
    text-transform: uppercase;
}

.auth-recovery-submit {
    margin-top: 8px;
}

.page-app {
    --app-background: #fafafa;
    --app-surface: #ffffff;
    --app-surface-soft: #f7f7f8;
    --app-text: #111214;
    --app-muted: #6d7280;
    --app-border: #dedfe3;
    --app-border-soft: #ececef;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--app-text);
    background: var(--app-background);
}

.page-app.is-dark {
    color-scheme: dark;
    --app-background: #1b1d27;
    --app-surface: #232631;
    --app-surface-soft: #2b2e3c;
    --app-text: #e6e8ef;
    --app-muted: #afb5c5;
    --app-border: #414657;
    --app-border-soft: #353949;
    --app-accent-text: #ff858b;
    --app-accent-soft: #44252e;
}

.app-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.app-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: 230px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    color: var(--app-muted);
    background: var(--app-surface);
    border-right: 1px solid var(--app-border-soft);
    transition: width 180ms ease, transform 180ms ease;
}

.app-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 14px 0 12px;
    border-bottom: 1px solid var(--app-border-soft);
}

.app-brand {
    display: block;
    width: 116px;
}

.app-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.page-app.is-dark .app-brand img {
    content: url('../images/console-logo-texte-blanc.png');
}

.app-icon-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--app-muted);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.app-icon-button:hover,
.app-icon-button:focus-visible {
    color: var(--app-text);
    background: var(--app-surface-soft);
}

.app-icon-button:focus-visible,
.app-nav-link:focus-visible,
.app-user-trigger:focus-visible,
.button-primary:focus-visible,
.button-secondary:focus-visible,
.button-danger:focus-visible {
    outline: 3px solid rgba(207, 34, 40, .18);
    outline-offset: 2px;
}

.app-icon-button svg {
    width: 17px;
    height: 17px;
}

.app-nav {
    flex: 1;
    padding: 14px 10px;
    overflow-y: auto;
}

.app-nav-heading {
    margin: 0 8px 8px;
    color: #a1a5af;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    color: var(--app-muted);
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.app-nav-link:hover,
.app-nav-link:focus-visible {
    color: var(--app-text);
    background: var(--app-surface-soft);
}

.app-nav-link.is-active {
    color: var(--couleur-principale);
    background: rgba(207, 34, 40, .09);
    font-weight: 650;
}

.app-nav-link > svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

.app-nav-link span {
    min-width: 0;
    flex: 1;
}

.app-nav-chevron {
    width: 13px !important;
    height: 13px !important;
    transition: transform 160ms ease;
}

.app-nav-toggle[aria-expanded="false"] .app-nav-chevron {
    transform: rotate(-90deg);
}

.app-nav-children {
    display: grid;
    gap: 1px;
    margin: 0 0 4px 31px;
}

.app-nav-children[hidden] {
    display: none;
}

.app-nav-children a {
    padding: 6px 4px;
    color: var(--app-muted);
    font-size: 11px;
    text-decoration: none;
}

.app-nav-children a:hover {
    color: var(--app-text);
}

.app-nav-children a.is-active {
    color: var(--couleur-principale);
    font-weight: 650;
}

.app-nav-children .app-nav-external-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-nav-external-child span {
    min-width: 0;
}

.app-nav-external-child svg {
    width: 12px;
    height: 12px;
}

/* Keyword Check */
.keyword-check-heading {
    margin-bottom: 24px;
}

.keyword-check-heading h1 {
    margin: 0 0 12px;
    color: var(--app-text);
    font-size: 26px;
    line-height: 1.2;
}

.keyword-check-heading > p {
    margin: 18px 0 0;
    color: var(--app-muted);
    font-size: 14px;
}

.keyword-check-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 18px;
    align-items: stretch;
}

.keyword-check-form,
.keyword-check-quota,
.keyword-check-loading,
.keyword-check-position,
.keyword-check-features,
.keyword-check-serp {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 11px;
}

.keyword-check-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 20px;
}

.keyword-check-form label {
    display: grid;
    gap: 7px;
    color: var(--app-text);
    font-size: 13px;
    font-weight: 650;
}

.keyword-check-form label > span {
    font-weight: 650;
}

.keyword-check-form .keyword-check-field-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keyword-check-form input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font: inherit;
    font-weight: 400;
}

.keyword-check-form input:focus {
    border-color: rgba(207, 34, 40, .62);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .08);
    outline: none;
}

.keyword-check-form .button-primary {
    height: 42px;
    min-width: 132px;
    padding-inline: 22px;
}

.keyword-check-quota {
    display: grid;
    place-content: center;
    padding: 18px;
    text-align: center;
}

.keyword-check-quota strong {
    color: var(--couleur-principale);
    font-size: 31px;
    line-height: 1;
}

.keyword-check-quota strong small {
    color: #9499a6;
    font-size: 15px;
}

.keyword-check-quota p {
    max-width: 140px;
    margin: 7px auto 0;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.35;
}

.keyword-check-feedback {
    margin-top: 16px;
    padding: 12px 14px;
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    font-size: 13px;
}

.keyword-check-loading {
    margin-top: 18px;
    padding: 24px 20px 18px;
}

.keyword-check-loading > strong {
    display: block;
    font-size: 14px;
}

.keyword-check-loading > p {
    margin: 10px 0 0;
    color: var(--app-muted);
    font-size: 12px;
    text-align: center;
}

.keyword-check-pulse {
    width: min(600px, 76%);
    height: 64px;
    margin: 2px auto 0;
}

.keyword-check-pulse svg {
    display: block;
    width: 100%;
    height: 64px;
    overflow: visible;
}

.keyword-check-pulse path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.keyword-check-pulse-line {
    stroke: #87dfaa;
}

.keyword-check-pulse-light {
    stroke: #27c66d;
    stroke-width: 3;
    stroke-dasharray: 14 86;
    animation: keyword-check-pulse 1.35s ease-in-out infinite;
}

@keyframes keyword-check-pulse {
    from { stroke-dashoffset: 114; }
    to { stroke-dashoffset: 14; }
}

.keyword-check-summary {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.keyword-check-position {
    display: grid;
    place-content: center;
    min-height: 330px;
    padding: 24px;
    text-align: center;
    background: #f3f1ff;
    border-color: #c9c3ff;
}

.keyword-check-position > strong {
    font-size: 13px;
}

.keyword-check-position > span {
    margin: 5px 0;
    color: #7764ff;
    font-size: 54px;
    font-weight: 750;
    line-height: 1;
}

.keyword-check-position p,
.keyword-check-position small {
    margin: 0;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.55;
}

.keyword-check-position small i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    background: #a3a6af;
    border-radius: 1px;
}

.keyword-check-features {
    min-width: 0;
    padding: 22px 24px;
}

.keyword-check-features h2,
.keyword-check-serp h2 {
    margin: 0;
    color: var(--app-text);
    font-size: 15px;
}

.keyword-check-features ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.keyword-check-features li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 31px;
    border-bottom: 1px solid var(--app-border-soft);
    font-size: 12px;
}

.keyword-check-features li > span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.keyword-check-features li i {
    width: 7px;
    height: 7px;
    background: #a3a6af;
    border-radius: 1px;
}

.keyword-check-features .is-local_pack i { background: #39c779; }
.keyword-check-features .is-ai_overview i,
.keyword-check-features .is-ai_citation i { background: #8068ff; }
.keyword-check-features .is-images i { background: #5eb7ee; }
.keyword-check-features .is-videos i { background: #f04438; }

.keyword-check-features li > strong {
    font-size: 11px;
}

.keyword-check-features .is-present { color: #16a34a; }
.keyword-check-features .is-absent { color: #dc2626; }

.keyword-check-serp {
    margin-top: 18px;
    overflow: hidden;
}

.keyword-check-serp > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px 12px;
}

.keyword-check-serp header p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 12px 0 0;
    color: var(--app-muted);
    font-size: 11px;
}

.keyword-check-serp header > small {
    color: #a2a6b0;
    white-space: nowrap;
}

.keyword-check-type,
.keyword-check-row-type {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 10px;
    color: #5f6470;
    background: #f2f3f5;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 650;
}

.keyword-check-type {
    min-height: 28px;
    padding: 4px 11px;
    color: #9f1c21;
    background: #fff0f0;
    border: 1px solid #f3c7c9;
    border-radius: 999px;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, opacity .15s ease;
}

.keyword-check-type:hover,
.keyword-check-type:focus-visible {
    color: #fff;
    background: var(--couleur-principale);
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .1);
    outline: none;
}

.keyword-check-type[aria-pressed="false"] {
    color: var(--app-muted);
    background: var(--app-surface);
    border-color: var(--app-border);
    opacity: .78;
}

.keyword-check-row-type.is-local_pack { color: #16a34a; background: #e8f8ef; }
.keyword-check-row-type.is-videos { color: #dc2626; background: #fff0f0; }
.keyword-check-row-type.is-ai_overview_citation,
.keyword-check-row-type.is-ai_overview_citation_source,
.keyword-check-row-type.is-ai_overview_panel { color: #6d55ee; background: #efedff; }

.keyword-check-table-wrap {
    overflow-x: auto;
}

.keyword-check-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.keyword-check-table th {
    padding: 10px 20px;
    color: #9da1ad;
    background: var(--app-surface-soft);
    font-size: 10px;
    text-align: left;
    text-transform: uppercase;
}

.keyword-check-table td {
    padding: 10px 20px;
    border-top: 1px solid var(--app-border-soft);
    vertical-align: middle;
}

.keyword-check-table th:first-child,
.keyword-check-table td:first-child {
    width: 56px;
}

.keyword-check-table tr.is-match td {
    background: #f0edff;
}

.keyword-check-table td strong,
.keyword-check-table td a {
    display: block;
}

.keyword-check-table td a {
    max-width: 760px;
    overflow: hidden;
    color: var(--couleur-principale);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keyword-check-empty {
    padding: 28px;
    color: var(--app-muted);
    border-top: 1px solid var(--app-border-soft);
    text-align: center;
}

@media (max-width: 1280px) {
    .keyword-check-form {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .keyword-check-form .button-primary {
        grid-column: span 2;
        justify-self: end;
    }
}

@media (max-width: 760px) {
    .keyword-check-top,
    .keyword-check-summary {
        grid-template-columns: 1fr;
    }

    .keyword-check-form {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .keyword-check-form .button-primary {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
    }

    .keyword-check-quota {
        min-height: 115px;
    }

    .keyword-check-position {
        min-height: 235px;
    }

    .keyword-check-features {
        padding: 18px;
    }

    .keyword-check-serp > header {
        display: block;
    }

    .keyword-check-serp header > small {
        display: block;
        margin-top: 12px;
    }

    .keyword-check-table {
        min-width: 760px;
    }
}

.app-sidebar-logout {
    margin: 0;
    padding: 10px;
    border-top: 1px solid var(--app-border-soft);
}

.app-sidebar-logout button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    color: var(--couleur-principale);
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.app-sidebar-logout button:hover {
    background: rgba(207, 34, 40, .08);
}

.app-sidebar-logout svg {
    width: 16px;
}

.app-body {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 60px;
    padding: 0 18px 0 24px;
    background: color-mix(in srgb, var(--app-surface) 94%, transparent);
    border-bottom: 1px solid var(--app-border-soft);
    backdrop-filter: blur(14px);
}

.app-menu-button {
    display: none;
}

.app-search {
    position: relative;
    display: block;
    width: min(320px, 35vw);
}

.app-search svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 15px;
    color: #a0a4ae;
    transform: translateY(-50%);
}

.app-search input {
    width: 100%;
    height: 38px;
    padding: 0 13px 0 35px;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font-size: 12px;
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.app-notification-count {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 17px;
    padding: 2px 4px;
    color: #fff;
    font-size: 10px;
    line-height: 13px;
    text-align: center;
    background: var(--couleur-principale);
    border: 2px solid var(--app-surface);
    border-radius: 50%;
}

.app-notification-button {
    position: relative;
}

.app-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    margin-left: 5px;
    padding: 0 10px;
    color: #ffffff;
    background: var(--couleur-principale);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.app-admin-badge svg {
    width: 13px;
}

.app-topbar-divider {
    width: 1px;
    height: 24px;
    margin: 0 7px;
    background: var(--app-border);
}

.app-user-menu {
    position: relative;
}

.app-user-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    color: var(--app-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.app-user-trigger span,
.app-user-trigger img {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    background: var(--couleur-principale);
    border-radius: 50%;
    object-fit: cover;
    font-size: 11px;
    font-weight: 750;
}

.app-user-trigger svg {
    width: 13px;
}

.app-user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    padding: 0;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 11px;
    box-shadow: 0 14px 40px rgba(16, 18, 23, .13);
    overflow: hidden;
    z-index: 30;
}

.app-user-dropdown p {
    margin: 0;
    padding: 13px 15px 12px;
    border-bottom: 1px solid var(--app-border-soft);
}

.app-user-dropdown p strong,
.app-user-dropdown p small {
    display: block;
}

.app-user-dropdown p strong {
    font-size: 13px;
}

.app-user-dropdown p small {
    margin-top: 3px;
    color: var(--app-muted);
    font-size: 11px;
}

.app-user-dropdown a,
.app-user-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    color: var(--app-text);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.app-user-dropdown a:hover,
.app-user-dropdown button:hover {
    background: var(--app-surface-soft);
}

.app-user-dropdown svg {
    width: 14px;
}

.app-user-dropdown form {
    margin: 0;
}

.app-workspace {
    display: flex;
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
    flex-direction: column;
}

.app-content {
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 26px clamp(24px, 3.5vw, 58px) 48px;
}

.app-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-top: auto;
    min-height: 38px;
    padding: 9px 32px;
    color: #9a9da6;
    background: var(--app-surface);
    border-top: 1px solid var(--app-border-soft);
    font-size: 10px;
}

.app-footer a {
    color: var(--couleur-principale);
    text-decoration: none;
}

.footer-page-card {
    max-width: 1120px;
    margin-top: 28px;
    padding: clamp(24px, 4vw, 48px);
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.75;
}

.footer-page-card > :first-child {
    margin-top: 0;
}

.footer-page-card > :last-child {
    margin-bottom: 0;
}

.footer-page-card h2,
.footer-page-card h3,
.footer-page-card h4 {
    margin: 1.6em 0 .55em;
    line-height: 1.3;
}

.footer-page-card a {
    color: var(--couleur-principale);
}

.footer-page-card blockquote {
    margin-inline: 0;
    padding-left: 18px;
    color: var(--app-muted);
    border-left: 3px solid var(--couleur-principale);
}

.app-page-heading h1,
.profile-page-heading h1 {
    margin: 0;
    color: var(--app-text);
    font-size: clamp(24px, 2.5vw, 31px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.dashboard-heading {
    margin-bottom: 24px;
}

.dashboard-heading h1 {
    margin: 0;
    color: var(--app-text);
    font-size: clamp(27px, 2.4vw, 34px);
    line-height: 1.15;
    letter-spacing: -.04em;
}

.dashboard-grid {
    display: grid;
    gap: 20px;
}

.dashboard-overview-grid {
    display: grid;
    gap: 20px;
}

.dashboard-overview-primary,
.dashboard-overview-secondary {
    display: grid;
    min-width: 0;
    gap: 20px;
}

.dashboard-overview-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-overview-secondary {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
}

.dashboard-overview-primary > .dashboard-card,
.dashboard-overview-secondary > .dashboard-card {
    height: 100%;
}

.dashboard-feeds-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.dashboard-card {
    min-width: 0;
    min-height: 0;
    padding: 24px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
}

.dashboard-card h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -.015em;
}

.dashboard-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.dashboard-card-heading > a {
    flex: 0 0 auto;
    color: var(--couleur-principale);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-review-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.dashboard-review-main {
    display: grid;
    width: 100%;
    max-width: none;
    justify-items: center;
    gap: 12px;
}

.dashboard-trustindex-badge,
.dashboard-trustindex-badge .ti-widget {
    width: 100%;
}

.dashboard-trustindex-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    justify-self: center;
    min-height: 54px;
    padding: 9px 14px;
    color: #ffffff;
    background: #202126;
    border-radius: 10px;
    text-decoration: none;
}

.dashboard-trustindex-label > span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    color: #ffffff;
    background: #35ce76;
    border-radius: 50%;
}

.dashboard-trustindex-label svg {
    width: 16px;
    height: 16px;
    stroke-width: 3;
}

.dashboard-trustindex-label strong {
    font-size: 13px;
}

.dashboard-review-main > p {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.dashboard-review-actions {
    display: grid;
    justify-self: center;
    width: min(100%, 240px);
    gap: 8px;
}

.dashboard-review-actions a {
    justify-content: center;
    min-height: 34px;
    padding-inline: 11px;
    font-size: 10.5px;
    text-align: center;
}

.dashboard-watch-week {
    display: block;
    margin-bottom: 10px;
    color: #1974d2;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-watch-list {
    display: grid;
}

.dashboard-watch-list > a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 61px;
    padding: 7px 0;
    color: var(--app-text);
    border-bottom: 1px solid var(--app-border-soft);
    text-decoration: none;
}

.dashboard-watch-list > a:last-child {
    border-bottom: 0;
}

.dashboard-watch-thumbnail {
    display: grid;
    place-items: center;
    width: 48px;
    height: 42px;
    overflow: hidden;
    color: #a3a7b0;
    background: repeating-linear-gradient(45deg, var(--app-surface-soft), var(--app-surface-soft) 5px, var(--app-border-soft) 5px, var(--app-border-soft) 8px);
    border-radius: 7px;
}

.dashboard-watch-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-watch-thumbnail svg {
    width: 17px;
}

.dashboard-watch-list strong,
.dashboard-watch-list small {
    display: block;
}

.dashboard-watch-list strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dashboard-watch-list small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--app-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-documents-head,
.dashboard-documents-list > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    align-items: center;
    gap: 14px;
}

.dashboard-documents-head {
    min-height: 32px;
    padding: 0 12px;
    color: #9ca0aa;
    background: var(--app-surface-soft);
    border-radius: 7px;
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}

.dashboard-documents-list > a {
    min-height: 58px;
    padding: 8px 12px;
    color: var(--app-text);
    border-bottom: 1px solid var(--app-border-soft);
    font-size: 11px;
    text-decoration: none;
}

.dashboard-document-name {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.dashboard-document-name strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-document-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: #ffffff;
    background: #ef4338;
    border-radius: 8px;
}

.dashboard-document-icon.is-violet {
    background: #8369ff;
}

.dashboard-document-icon.is-vert {
    background: #32ad6c;
}

.dashboard-document-icon.is-bleu {
    background: #2879d8;
}

.dashboard-document-icon.is-orange {
    background: #e88c32;
}

.dashboard-document-icon.is-gris {
    background: #858a95;
}

.dashboard-document-icon svg {
    width: 16px;
    height: 16px;
}

.dashboard-documents-list time {
    color: var(--app-muted);
    font-size: 10.5px;
}

.dashboard-feed-card {
    min-height: 430px;
}

.dashboard-deadlines-list {
    display: grid;
}

.dashboard-deadlines-list > a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    color: var(--app-text);
    border-bottom: 1px solid var(--app-border-soft);
    text-decoration: none;
}

.dashboard-deadline-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #bd8100;
    background: #fff0c3;
    border-radius: 8px;
}

.dashboard-deadline-icon svg {
    width: 15px;
}

.dashboard-deadlines-list strong,
.dashboard-deadlines-list small {
    display: block;
}

.dashboard-deadlines-list strong {
    font-size: 11.5px;
}

.dashboard-deadlines-list small {
    margin-top: 2px;
    color: var(--app-muted);
    font-size: 10px;
}

.dashboard-deadlines-list time {
    padding: 5px 9px;
    color: #a86f00;
    background: #fff0c3;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-social-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.dashboard-social-heading > span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 7px;
}

.dashboard-social-heading .is-linkedin {
    color: #1676c4;
    background: #e2f1ff;
}

.dashboard-social-heading .is-linkedin b {
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
    letter-spacing: -.08em;
}

.dashboard-social-heading .is-instagram {
    color: #ef4b46;
    background: #ffe5e3;
}

.dashboard-social-heading svg {
    width: 15px;
    height: 15px;
}

.dashboard-instagram-glyph {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
    border: 1.8px solid currentColor;
    border-radius: 4px;
}

.dashboard-instagram-glyph::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border: 1.6px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.dashboard-instagram-glyph::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 2px;
    height: 2px;
    background: currentColor;
    border-radius: 50%;
}

.dashboard-social-feed {
    min-height: 335px;
    overflow: hidden;
}

.dashboard-social-feed .ti-widget[data-layout="grid"] .ti-layout-container .ti-widget-layout .ti-layout-item,
.dashboard-social-feed .ti-widget[data-layout="grid"] .ti-grid-sizer {
    flex: 0 0 33.3333% !important;
    width: 33.3333% !important;
    max-width: 33.3333% !important;
}

.dashboard-social-feed .ti-widget[data-layout="grid"] .ti-widget-layout > .ti-layout-item:nth-child(n + 4),
.dashboard-social-feed .ti-widget .ti-nav-loadmore {
    display: none !important;
}

.dashboard-card-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    min-height: 190px;
    color: var(--app-muted);
    font-size: 11px;
    text-align: center;
}

.dashboard-card-empty svg {
    width: 23px;
    height: 23px;
}

.dashboard-website-card {
    display: flex;
    flex-direction: column;
}

.dashboard-website-card > .dashboard-card-heading {
    margin-bottom: 18px;
}

.dashboard-website-panel {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 11px;
}

.dashboard-website-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--app-border-soft);
}

.dashboard-website-row:last-child {
    border-bottom: 0;
}

.dashboard-website-row > strong {
    font-size: 12px;
}

.dashboard-website-row > a,
.dashboard-website-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
    color: var(--app-text);
    font-size: 11.5px;
    text-align: right;
    text-decoration: none;
}

.dashboard-website-row > a:hover {
    color: var(--couleur-principale);
}

.dashboard-website-row > a svg {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
}

.dashboard-website-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #2274d7;
    background: #eef4ff;
    border-radius: 10px;
}

.dashboard-website-icon svg {
    width: 17px;
    height: 17px;
}

.dashboard-website-icon.is-green { color: #15945a; background: #eaf8ef; }
.dashboard-website-icon.is-orange { color: #d88900; background: #fff3d1; }
.dashboard-website-icon.is-violet { color: #8a4de6; background: #f1e8ff; }
.dashboard-website-icon.is-turquoise { color: #079a8b; background: #dcf8f3; }
.dashboard-website-icon.is-red { color: #d8333b; background: #fff0f0; }
.dashboard-website-icon.is-gray { color: #4f6680; background: var(--app-surface-soft); }

.dashboard-website-status {
    padding: 5px 10px;
    color: #087847;
    background: #d8f8e7;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 750;
    white-space: nowrap;
}

.dashboard-website-status.is-neutral {
    color: var(--app-muted);
    background: var(--app-surface-soft);
}

.dashboard-website-status.is-warning {
    color: #9b6800;
    background: #fff0c7;
}

.dashboard-website-status.is-bad {
    color: #b4232b;
    background: #ffe3e5;
}

.dashboard-feed-noscript {
    margin: 16px 0 0;
    color: var(--app-muted);
    font-size: 11px;
}

@media (max-width: 1100px) {
    .dashboard-overview-primary,
    .dashboard-overview-secondary,
    .dashboard-feeds-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-overview-secondary {
        grid-auto-flow: row;
        grid-auto-columns: auto;
    }
}

@media (max-width: 760px) {
    .dashboard-card {
        min-height: 0;
        padding: 19px;
    }

    .dashboard-review-content {
        grid-template-columns: 1fr;
    }

    .dashboard-documents-head,
    .dashboard-documents-list > a {
        grid-template-columns: minmax(0, 1fr) 80px;
    }

    .dashboard-deadlines-list > a {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 9px 0;
    }

    .dashboard-deadlines-list time {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .dashboard-social-feed .ti-widget[data-layout="grid"] .ti-layout-container .ti-widget-layout .ti-layout-item,
    .dashboard-social-feed .ti-widget[data-layout="grid"] .ti-grid-sizer {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.faq-heading {
    margin-bottom: 26px;
}

.faq-heading h1 {
    margin: 0;
    color: var(--app-text);
    font-size: clamp(25px, 2.6vw, 34px);
    line-height: 1.15;
    letter-spacing: -.04em;
}

.faq-browser {
    padding: 28px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
}

.faq-search {
    position: relative;
}

.faq-search > svg {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    color: var(--app-muted);
    pointer-events: none;
    transform: translateY(-50%);
}

.faq-search input[type="search"] {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 9px;
    outline: 0;
}

.faq-search input[type="search"]:focus {
    border-color: rgba(207, 34, 40, .45);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .08);
}

.faq-categories {
    display: flex;
    gap: 24px;
    margin-top: 15px;
    overflow-x: auto;
    border-bottom: 1px solid var(--app-border-soft);
}

.faq-categories a {
    position: relative;
    flex: 0 0 auto;
    padding: 0 0 12px;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.faq-categories a.is-active {
    color: var(--couleur-principale);
}

.faq-categories a.is-active::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--couleur-principale);
}

.faq-results {
    transition: opacity .16s ease;
}

.faq-browser.is-loading .faq-results {
    opacity: .5;
}

.faq-results > h2 {
    margin: 22px 0 10px;
    font-size: 17px;
}

.faq-articles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.faq-article {
    min-width: 0;
    padding: 17px 18px 18px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.faq-article h3 {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.faq-article h3 > span {
    flex: 0 0 auto;
    width: 8px;
    height: 10px;
    margin-top: 4px;
    background: linear-gradient(90deg, var(--couleur-principale) 0 42%, #efb3b5 42% 100%);
    border-radius: 1px;
}

.faq-answer {
    margin: 8px 0 0 18px;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.62;
}

.faq-answer > :first-child {
    margin-top: 0;
}

.faq-answer > :last-child {
    margin-bottom: 0;
}

.faq-answer h2,
.faq-answer h3,
.faq-answer h4 {
    color: var(--app-text);
    font-size: 13px;
}

.faq-answer a {
    color: var(--couleur-principale);
}

.faq-answer ol,
.faq-answer ul {
    padding-left: 20px;
}

.faq-answer li[data-list="bullet"] {
    list-style-type: disc;
}

.faq-answer blockquote {
    margin-left: 0;
    padding-left: 12px;
    border-left: 3px solid var(--app-border);
}

.faq-empty {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-height: 230px;
    align-content: center;
    color: var(--app-muted);
    text-align: center;
}

.faq-empty svg {
    width: 30px;
    height: 30px;
}

.faq-empty strong {
    color: var(--app-text);
}

.faq-empty span {
    font-size: 12px;
}

@media (max-width: 900px) {
    .faq-articles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .faq-browser {
        padding: 18px;
    }

    .faq-categories {
        gap: 18px;
    }
}

.profile-page-heading {
    margin-bottom: 26px;
}

.profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 650;
}

.profile-breadcrumb a {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    color: var(--app-muted);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
}

.profile-breadcrumb svg {
    width: 14px;
}

.profile-breadcrumb > svg {
    width: 12px;
    color: #a3a6ae;
}

.app-flash {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -10px 0 16px;
    padding: 11px 13px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.app-flash svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

.app-flash--succes {
    color: #147141;
    background: #effaf4;
    border-color: #bfe7d0;
}

.app-flash--erreur {
    color: #a61b21;
    background: #fff5f5;
    border-color: #efb8ba;
}

.profile-panel {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 520px;
    overflow: hidden;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 11px;
}

.profile-menu {
    padding: 24px 12px;
    border-right: 1px solid var(--app-border);
}

.profile-menu > p {
    margin: 0 13px 8px;
    color: #9da1ab;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.profile-menu nav {
    display: grid;
    gap: 2px;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 37px;
    padding: 8px 12px;
    color: var(--app-muted);
    border-radius: 7px;
    font-size: 12px;
    text-decoration: none;
}

.profile-menu a:hover {
    color: var(--app-text);
    background: var(--app-surface-soft);
}

.profile-menu a.is-active {
    color: var(--couleur-principale);
    background: rgba(207, 34, 40, .09);
}

.profile-menu svg {
    width: 16px;
}

.profile-panel-content {
    min-width: 0;
    padding: 30px 30px 26px;
}

.profile-panel-content > h2,
.security-heading h2,
.active-sessions h2 {
    margin: 0;
    color: var(--app-text);
    font-size: 17px;
    letter-spacing: -.02em;
}

.profile-section-intro,
.security-heading p,
.active-sessions > p {
    margin: 5px 0 0;
    color: var(--app-muted);
    font-size: 12px;
}

.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 24px;
}

.profile-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    overflow: hidden;
    color: #ffffff;
    background: var(--couleur-principale);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 750;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fond opaque pour les photos et logos transparents, dans les deux thèmes. */
.profile-avatar img,
.app-user-trigger img {
    background: #ffffff;
}

.profile-avatar-row form {
    margin: 0;
}

.button-primary,
.button-secondary,
.button-danger,
.button-link-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-primary,
.button-danger {
    color: #ffffff;
    background: var(--couleur-principale);
    border: 1px solid var(--couleur-principale);
}

.button-primary:hover,
.button-danger:hover {
    background: var(--couleur-principale-hover);
}

.button-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.button-secondary {
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
}

.button-secondary:hover {
    background: var(--app-surface-soft);
}

.button-link-danger {
    padding-inline: 5px;
    color: var(--couleur-principale);
    background: transparent;
    border: 0;
}

.profile-form {
    display: flex;
    min-height: 310px;
    flex-direction: column;
}

.profile-form.profile-form--security {
    min-height: 0;
    margin-top: 18px;
    gap: 16px;
}

.profile-form--security > button {
    align-self: flex-start;
}

.profile-form--full {
    min-height: 400px;
    margin-top: 18px;
}

.profile-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.profile-fields-grid label,
.app-dialog label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--app-text);
    font-size: 11px;
    font-weight: 650;
}

.profile-fields-grid input,
.app-dialog input {
    width: 100%;
    height: 43px;
    padding: 0 12px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 450;
}

.profile-fields-grid input:focus,
.app-dialog input:focus {
    border-color: var(--couleur-principale);
    outline: 3px solid rgba(207, 34, 40, .1);
}

.profile-fields-grid input[readonly] {
    color: var(--app-muted);
    background: var(--app-surface-soft);
}

.profile-field-wide {
    grid-column: 1 / -1;
}

.profile-city-grid {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
}

.profile-password-row {
    display: grid;
    justify-items: start;
    gap: 7px;
    margin-top: 24px;
    font-size: 11px;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--app-border);
}

.notification-form {
    margin-top: 22px;
}

.notification-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 62px;
    padding: 13px 0;
    border-bottom: 1px solid var(--app-border);
    cursor: pointer;
}

.notification-row strong,
.notification-row small {
    display: block;
}

.notification-row strong {
    font-size: 12px;
}

.notification-row small {
    margin-top: 2px;
    color: var(--app-muted);
    font-size: 11px;
}

.notification-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-control {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 23px;
    background: #c8cbd1;
    border-radius: 20px;
    transition: background-color 150ms ease;
}

.switch-control::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
    transition: transform 150ms ease;
}

.notification-row input:checked + .switch-control {
    background: var(--couleur-principale);
}

.notification-row input:checked + .switch-control::after {
    transform: translateX(17px);
}

.notification-row input:focus-visible + .switch-control {
    outline: 3px solid rgba(207, 34, 40, .18);
    outline-offset: 2px;
}

.status-badge,
.current-device-badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    margin-left: 8px;
    padding: 3px 9px;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 650;
    vertical-align: middle;
}

.status-badge--success,
.current-device-badge {
    color: #147141;
    background: #e9f8ef;
}

.security-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.security-method {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 69px;
    padding: 13px 16px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    font-size: 11px;
    text-align: left;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.security-method:first-child {
    border-radius: 9px 0 0 9px;
}

.security-method:last-child {
    margin-left: -1px;
    border-radius: 0 9px 9px 0;
}

.security-method.is-selected {
    position: relative;
    z-index: 1;
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 1px var(--couleur-principale);
}

.security-method:disabled {
    opacity: .72;
}

.security-method > svg {
    flex: 0 0 auto;
    width: 18px;
    color: var(--couleur-principale);
}

.security-method span,
.security-method strong,
.security-method small {
    display: block;
}

.security-method strong {
    font-size: 12px;
}

.security-method small {
    margin-top: 3px;
    color: var(--app-muted);
}

.security-method em {
    margin-left: 5px;
    color: var(--app-muted);
    font-size: 9px;
    font-style: normal;
}

.security-methods + .app-flash {
    margin: 14px 0 0;
}

.totp-setup {
    flex-wrap: wrap;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-top: 22px;
}

.totp-qr-wrap {
    flex: 0 0 154px;
    display: grid;
    justify-items: center;
    gap: 8px;
}

.totp-qr {
    display: grid;
    place-items: center;
    width: 154px;
    height: 154px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.totp-qr img,
.totp-qr canvas {
    max-width: 100%;
    height: auto !important;
}

.totp-secret-manual {
    width: 100%;
    color: var(--app-muted);
    font-size: 11px;
    text-align: center;
}

.totp-secret-manual summary {
    cursor: pointer;
}

.totp-secret-manual code {
    display: block;
    margin-top: 7px;
    padding: 7px;
    background: var(--app-surface-soft);
    border-radius: 5px;
    font-size: 10px;
    word-break: break-all;
}

.totp-setup-instructions ol {
    margin: 2px 0 16px;
    padding-left: 20px;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.9;
}

.profile-totp-fields {
    display: grid;
    grid-template-columns: repeat(6, 48px);
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.profile-totp-fields input {
    width: 48px;
    height: 52px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font-size: 18px;
    text-align: center;
}

.profile-totp-fields input:focus {
    border-color: var(--couleur-principale);
    outline: 2px solid rgba(207, 34, 40, .1);
}

.totp-active-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 16px;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: 9px;
}

.totp-active-card > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #147141;
    background: #e9f8ef;
    border-radius: 50%;
}

.totp-active-card > div {
    flex: 1;
}

.totp-active-card strong {
    font-size: 12px;
}

.totp-active-card p {
    margin: 3px 0 0;
    color: var(--app-muted);
    font-size: 11px;
}

.recovery-codes {
    margin-top: 22px;
    padding: 18px;
    background: #fff9e9;
    border: 1px solid #ecd99d;
    border-radius: 9px;
}

.recovery-codes h3 {
    margin: 0;
    font-size: 14px;
}

.recovery-codes p {
    margin: 4px 0 12px;
    color: #766b4f;
    font-size: 11px;
}

.recovery-codes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 12px;
}

.recovery-codes-grid code {
    padding: 7px;
    color: #4e452e;
    background: rgba(255, 255, 255, .75);
    border: 1px solid #e6d49c;
    border-radius: 5px;
    text-align: center;
}

.active-sessions {
    margin-top: 28px;
}

.sessions-list {
    margin-top: 16px;
}

.session-row {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 61px;
    padding: 11px 0;
    border-bottom: 1px solid var(--app-border-soft);
}

.session-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: 7px;
}

.session-icon svg {
    width: 15px;
}

.session-row > div {
    min-width: 0;
    flex: 1;
}

.session-row strong {
    font-size: 11px;
}

.session-row small {
    display: block;
    margin-top: 3px;
    color: var(--app-muted);
    font-size: 10px;
}

.session-row form {
    margin: 0;
}

.app-dialog {
    width: min(92vw, 520px);
    padding: 0;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 11px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}

.app-dialog::backdrop {
    background: rgba(17, 18, 20, .48);
    backdrop-filter: blur(3px);
}

.app-dialog form {
    display: grid;
    gap: 15px;
    padding: 22px;
}

.app-dialog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.app-dialog-heading h2 {
    margin: 0;
    font-size: 17px;
}

.app-dialog-heading p,
.profile-field-help {
    margin: 4px 0 0;
    color: var(--app-muted);
    font-size: 11px;
}

.app-dialog-heading button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--app-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.app-dialog-heading svg {
    width: 17px;
}

.app-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 5px;
}

.app-sidebar-overlay {
    display: none;
}

.app-shell.is-sidebar-collapsed {
    grid-template-columns: 72px minmax(0, 1fr);
}

.app-shell.is-sidebar-collapsed .app-sidebar {
    width: 72px;
}

.app-shell.is-sidebar-collapsed .app-brand,
.app-shell.is-sidebar-collapsed .app-nav-heading,
.app-shell.is-sidebar-collapsed .app-nav-link span,
.app-shell.is-sidebar-collapsed .app-nav-chevron,
.app-shell.is-sidebar-collapsed .app-nav-children,
.app-shell.is-sidebar-collapsed .app-sidebar-logout span {
    display: none;
}

.app-shell.is-sidebar-collapsed .app-sidebar-head,
.app-shell.is-sidebar-collapsed .app-nav-link,
.app-shell.is-sidebar-collapsed .app-sidebar-logout button {
    justify-content: center;
}

.app-shell.is-sidebar-collapsed .app-sidebar-collapse svg {
    transform: rotate(180deg);
}

/* Échelle visuelle de l’espace connecté */
.app-shell {
    grid-template-columns: 254px minmax(0, 1fr);
}

.app-sidebar {
    width: 254px;
}

.app-sidebar-head,
.app-topbar {
    height: 68px;
}

.app-sidebar-head {
    padding-inline: 14px 16px;
}

.app-brand {
    width: 124px;
}

.app-icon-button {
    width: 38px;
    height: 38px;
}

.app-icon-button svg {
    width: 19px;
    height: 19px;
}

.app-nav {
    padding: 17px 12px;
}

.app-nav-heading {
    font-size: 11px;
}

.app-nav-link {
    min-height: 36px;
    padding: 9px 11px;
    font-size: 13.5px;
}

.app-nav-link > svg {
    width: 18px;
    height: 18px;
}

.app-nav-children {
    margin: 1px 0 6px 35px;
}

.app-nav-children a {
    font-size: 12.5px;
}

.app-sidebar-logout button {
    font-size: 13.5px;
}

.app-topbar {
    padding-inline: 28px 22px;
}

.app-search input {
    height: 42px;
    padding-inline: 38px 14px;
    font-size: 13.5px;
}

.app-admin-badge {
    height: 36px;
    font-size: 12.5px;
}

.app-user-trigger span,
.app-user-trigger img {
    width: 36px;
    height: 36px;
    font-size: 12px;
}

.app-user-dropdown p strong {
    font-size: 13.5px;
}

.app-user-dropdown p small {
    font-size: 11.5px;
}

.app-user-dropdown a,
.app-user-dropdown button {
    font-size: 12.5px;
}

.app-workspace {
    min-height: calc(100vh - 68px);
    min-height: calc(100dvh - 68px);
}

.app-content {
    padding: 34px clamp(28px, 3.8vw, 68px) 56px;
}

.app-footer {
    min-height: 44px;
    padding: 11px 36px;
    font-size: 11.5px;
}

.app-page-heading h1,
.profile-page-heading h1 {
    font-size: clamp(29px, 2.7vw, 36px);
}

.profile-breadcrumb {
    font-size: 12.5px;
}

.app-flash {
    font-size: 13.5px;
}

.profile-panel {
    grid-template-columns: 244px minmax(0, 1fr);
    min-height: 590px;
}

.profile-menu {
    padding: 28px 14px;
}

.profile-menu > p {
    font-size: 11px;
}

.profile-menu a {
    min-height: 34px;
    padding: 9px 13px;
    font-size: 13.5px;
    line-height: 16px;
}

.profile-menu svg {
    width: 16px;
    height: 16px;
}

.profile-panel-content {
    padding: 36px 36px 30px;
}

.profile-panel-content > h2,
.security-heading h2,
.active-sessions h2 {
    font-size: 20px;
}

.profile-section-intro,
.security-heading p,
.active-sessions > p {
    font-size: 13.5px;
}

.profile-avatar {
    width: 74px;
    height: 74px;
    font-size: 23px;
}

.button-primary,
.button-secondary,
.button-danger,
.button-link-danger {
    min-height: 42px;
    padding: 9px 17px;
    font-size: 13.5px;
}

.profile-form {
    min-height: 350px;
}

.profile-form--full {
    min-height: 450px;
}

.profile-fields-grid label,
.app-dialog label,
.profile-password-row {
    font-size: 13px;
}

.profile-fields-grid input,
.app-dialog input {
    height: 42px;
    padding-inline: 14px;
    font-size: 14px;
}

.notification-row {
    min-height: 72px;
    padding-block: 15px;
}

.notification-row strong {
    font-size: 14px;
}

.notification-row small {
    font-size: 12.5px;
}

.status-badge,
.current-device-badge {
    font-size: 11.5px;
}

.security-method {
    min-height: 78px;
    padding: 15px 18px;
    font-size: 12.5px;
}

.security-method strong {
    font-size: 14px;
}

.security-method small,
.totp-setup-instructions ol {
    font-size: 13.5px;
}

.totp-active-card strong,
.session-row strong {
    font-size: 13px;
}

.totp-active-card p,
.session-row small {
    font-size: 11.5px;
}

.recovery-codes h3 {
    font-size: 16px;
}

.recovery-codes p {
    font-size: 12.5px;
}

.session-row {
    min-height: 69px;
    padding-block: 13px;
}

.app-dialog-heading h2 {
    font-size: 20px;
}

.app-dialog-heading p,
.profile-field-help {
    font-size: 12.5px;
}

@media (max-width: 1100px) {
    .app-shell {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        width: 254px;
        transform: translateX(-100%);
    }

    .app-shell.is-sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 25;
        display: block;
        visibility: hidden;
        background: rgba(17, 18, 20, .4);
        opacity: 0;
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    .app-shell.is-sidebar-open .app-sidebar-overlay {
        visibility: visible;
        opacity: 1;
    }

    .app-sidebar-collapse {
        display: none;
    }

    .app-menu-button {
        display: inline-grid;
    }
}

@media (max-width: 760px) {
    .app-topbar {
        padding-inline: 12px;
    }

    .app-search {
        width: min(240px, 42vw);
    }

    .app-hide-mobile,
    .app-admin-badge,
    .app-topbar-divider {
        display: none;
    }

    .app-content {
        padding: 22px 16px 38px;
    }

    .profile-panel {
        display: block;
        min-height: 0;
    }

    .profile-menu {
        padding: 10px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--app-border);
    }

    .profile-menu > p {
        display: none;
    }

    .profile-menu nav {
        display: flex;
        min-width: max-content;
    }

    .profile-menu a {
        min-height: 34px;
    }

    .profile-panel-content {
        padding: 22px 18px;
    }

    .security-methods,
    .profile-fields-grid {
        grid-template-columns: 1fr;
    }

    .security-method:first-child,
    .security-method:last-child {
        margin: 0;
        border-radius: 8px;
    }

    .security-method:last-child {
        margin-top: 8px;
    }

    .profile-field-wide {
        grid-column: auto;
    }

    .profile-city-grid {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .totp-setup {
        flex-direction: column;
    }

    .profile-totp-fields {
        grid-template-columns: repeat(6, minmax(38px, 48px));
    }

    .profile-totp-fields input {
        width: 100%;
    }

    .recovery-codes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .app-search {
        display: none;
    }

    .app-footer {
        padding-inline: 16px;
    }

    .profile-avatar-row {
        flex-wrap: wrap;
    }

    .profile-city-grid {
        grid-template-columns: 1fr;
    }

    .profile-form-actions {
        position: sticky;
        bottom: 0;
        padding-bottom: 2px;
        background: var(--app-surface);
    }

    .profile-totp-fields {
        gap: 5px;
    }

    .profile-totp-fields input {
        height: 47px;
    }

    .totp-active-card,
    .session-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .totp-active-card .button-secondary,
    .session-row form,
    .session-row form button {
        width: 100%;
    }
}

/* Catalogue de services */
.services-heading {
    margin-bottom: 26px;
}

.services-heading h1 {
    margin: 0 0 12px;
    color: var(--app-text);
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.15;
}

.services-heading > p {
    margin: 18px 0 0;
    color: var(--app-muted);
    font-size: 14px;
}

.services-filters {
    display: flex;
    align-items: end;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px 20px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    transition: opacity 160ms ease;
}

.services-filters.is-loading {
    opacity: .68;
}

.services-results {
    transition: opacity 160ms ease;
}

.services-results[aria-busy="true"] {
    opacity: .55;
}

.services-filters label {
    display: grid;
    gap: 7px;
    min-width: min(100%, 250px);
    color: var(--app-text);
    font-size: 13px;
    font-weight: 720;
}

.services-filters select {
    min-width: 220px;
    height: 42px;
    padding: 0 36px 0 12px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font: inherit;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
}

.service-card.is-subscribed {
    background: color-mix(in srgb, #e4f8ed 82%, var(--app-surface));
    border-color: #85dfab;
}

.service-card-visual {
    position: relative;
    display: grid;
    place-items: center;
    height: 142px;
    color: var(--app-muted);
    background: repeating-linear-gradient(45deg, var(--app-surface), var(--app-surface) 8px, var(--app-surface-soft) 8px, var(--app-surface-soft) 14px);
    border-bottom: 1px solid var(--app-border);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    overflow: hidden;
}

.service-card-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.service-card h2 {
    margin: 0;
    color: var(--app-text);
    font-size: 16px;
    line-height: 1.3;
}

.service-card p {
    margin: 8px 0 12px;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.55;
}

.service-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-card-tags span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 7px;
    color: #1675cf;
    background: #e4f2ff;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 680;
    line-height: 1;
}

.service-card.is-subscribed .service-card-tags span {
    color: #11934a;
    background: #c9f1d9;
}

.service-card-tags svg {
    width: 12px;
    height: 12px;
    stroke-width: 3;
}

.service-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 12px;
}

.service-card-price,
.service-card-subscribed {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
}

.service-card-price {
    color: #cf2228;
    background: #fff0f0;
}

.service-card-subscribed {
    color: #ffffff;
    background: #2dc66d;
}

.services-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 260px;
    padding: 40px;
    color: var(--app-muted);
    text-align: center;
    background: var(--app-surface);
    border: 1px dashed var(--app-border);
    border-radius: 12px;
}

.services-empty svg {
    width: 32px;
    height: 32px;
}

.services-empty strong {
    color: var(--app-text);
}

/* Administration des prestations */
.admin-services-layout {
    display: grid;
    grid-template-columns: minmax(320px, .8fr) minmax(420px, 1.2fr);
    gap: 20px;
}

.admin-services-list {
    min-width: 0;
}

.admin-service-items {
    display: grid;
    gap: 10px;
}

.admin-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border-soft);
    border-radius: 9px;
}

.admin-service-item.is-disabled {
    opacity: .6;
}

.admin-service-item h3,
.admin-service-item p {
    margin: 0;
}

.admin-service-item h3 {
    margin-top: 4px;
    color: var(--app-text);
    font-size: 14px;
}

.admin-service-item p {
    margin-top: 5px;
    color: var(--app-muted);
    font-size: 12px;
}

.admin-service-category {
    color: #1675cf;
    font-size: 11px;
    font-weight: 720;
    text-transform: uppercase;
}

.admin-service-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-client-services {
    max-width: none;
}

.admin-client-service-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.admin-client-service-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px;
    cursor: pointer;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: 9px;
}

.admin-client-service-item > input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #27b961;
}

.admin-client-service-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-client-service-copy strong {
    color: var(--app-text);
    font-size: 13px;
}

.admin-client-service-copy small {
    overflow: hidden;
    color: var(--app-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .services-grid,
    .admin-client-service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-services-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .services-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .services-filters label,
    .services-filters select {
        width: 100%;
        min-width: 0;
    }

    .services-grid,
    .admin-client-service-list {
        grid-template-columns: 1fr;
    }

    .admin-service-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Statistiques Matomo */
.statistics-heading {
    margin-bottom: 22px;
}

.statistics-heading h1 {
    margin: 0 0 11px;
    font-size: 25px;
    line-height: 1.2;
}

.statistics-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.statistics-subscription-notice,
.statistics-data-notice,
.statistics-feedback {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    border-radius: 9px;
    font-size: 12px;
}

.statistics-subscription-notice {
    color: #74540d;
    background: #ffebb0;
}

.statistics-data-notice {
    margin-bottom: 16px;
    color: #795b13;
    background: #fff4d4;
}

.statistics-subscription-notice svg,
.statistics-data-notice svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.statistics-period,
.statistics-presets,
.statistics-custom-period,
.statistics-custom-period label {
    display: flex;
    align-items: center;
}

.statistics-period {
    justify-content: space-between;
    gap: 18px;
}

.statistics-presets,
.statistics-custom-period {
    gap: 8px;
}

.statistics-presets button {
    height: 34px;
    padding: 0 15px;
    color: var(--app-muted);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.statistics-presets button.is-active {
    color: #fff;
    background: var(--couleur-principale);
    border-color: var(--couleur-principale);
}

.statistics-custom-period label {
    gap: 8px;
    color: var(--app-muted);
    font-size: 12px;
}

.statistics-datepicker {
    position: relative;
    display: block;
}

.statistics-datepicker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 140px;
    height: 40px;
    padding: 0 10px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.statistics-datepicker-trigger:hover,
.statistics-datepicker-trigger:focus-visible,
.statistics-datepicker.is-open .statistics-datepicker-trigger {
    border-color: var(--couleur-principale);
    outline: none;
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .09);
}

.statistics-datepicker-trigger svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--app-muted);
}

.statistics-datepicker-popover {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    padding: 16px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(20, 22, 34, .16);
}

.statistics-datepicker-popover[hidden] {
    display: none;
}

.statistics-datepicker-header {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    margin-bottom: 12px;
}

.statistics-datepicker-header strong {
    text-align: center;
    font-size: 14px;
}

.statistics-datepicker-header button,
.statistics-datepicker-day {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.statistics-datepicker-header button {
    width: 32px;
    height: 32px;
    color: var(--app-muted);
    border-radius: 7px;
    font-size: 20px;
}

.statistics-datepicker-header button:hover,
.statistics-datepicker-header button:focus-visible {
    color: var(--couleur-principale);
    background: rgba(207, 34, 40, .08);
    outline: none;
}

.statistics-datepicker-weekdays,
.statistics-datepicker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.statistics-datepicker-weekdays {
    margin-bottom: 5px;
    color: var(--app-muted);
    font-size: 11px;
    font-weight: 750;
    text-align: center;
}

.statistics-datepicker-weekdays span {
    padding: 5px 0;
}

.statistics-datepicker-day {
    position: relative;
    height: 34px;
    border-radius: 7px;
    font-size: 12px;
}

.statistics-datepicker-day:hover:not(:disabled),
.statistics-datepicker-day:focus-visible:not(:disabled) {
    color: var(--couleur-principale);
    background: rgba(207, 34, 40, .1);
    outline: none;
}

.statistics-datepicker-day.is-outside {
    color: #b1b3bd;
}

.statistics-datepicker-day.is-in-range {
    color: #8f171c;
    background: rgba(207, 34, 40, .1);
    border-radius: 0;
}

.statistics-datepicker-day.is-selected {
    z-index: 1;
    color: #fff;
    background: var(--couleur-principale);
    border-radius: 7px;
    font-weight: 800;
}

.statistics-datepicker-day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 1px var(--couleur-principale);
}

.statistics-datepicker-day:disabled {
    color: #d2d3d9;
    background: transparent;
    cursor: not-allowed;
}

.statistics-shell {
    padding: 22px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
}

.statistics-shell > h2 {
    margin: 0 0 11px;
    font-size: 16px;
}

.statistics-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--app-border);
}

.statistics-tabs button {
    position: relative;
    padding: 11px 2px 13px;
    color: var(--app-muted);
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.statistics-tabs button.is-active {
    color: var(--couleur-principale);
}

.statistics-tabs button.is-active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    content: '';
    background: var(--couleur-principale);
}

.statistics-results.is-loading {
    min-height: 280px;
    opacity: .45;
    pointer-events: none;
}

.statistics-feedback {
    margin-bottom: 14px;
    color: #b31f24;
    background: #fff0f0;
    border: 1px solid #f5c7c9;
}

.statistics-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.statistics-kpi {
    position: relative;
    min-height: 95px;
    padding: 18px;
    border: 1px solid var(--app-border);
    border-radius: 11px;
}

.statistics-kpi > span {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    border-radius: 9px;
}

.statistics-kpi > span svg {
    width: 17px;
    height: 17px;
}

.statistics-kpi--blue > span { background: #59b9f7; }
.statistics-kpi--green > span { background: #39c978; }
.statistics-kpi--purple > span { background: #7c67ff; }
.statistics-kpi--yellow > span { background: #f7c93e; }
.statistics-kpi--blue small { color: #3aa8ef; }
.statistics-kpi--green small { color: #20ad61; }
.statistics-kpi--purple small { color: #765fff; }
.statistics-kpi--yellow small { color: #dca900; }

.statistics-kpi strong {
    display: block;
    max-width: calc(100% - 42px);
    margin-bottom: 4px;
    font-size: 24px;
    line-height: 1.15;
}

.statistics-kpi small {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 750;
}

.statistics-kpi-help {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    padding: 0;
    color: #8d93a0;
    background: #eef0f4;
    border: 0;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    cursor: help;
}

.statistics-kpi-help::after {
    position: absolute;
    z-index: 12;
    bottom: calc(100% + 8px);
    left: 50%;
    width: max-content;
    max-width: 230px;
    padding: 8px 10px;
    color: #fff;
    content: attr(data-statistics-help);
    background: #1f2937;
    border-radius: 7px;
    box-shadow: 0 7px 18px rgba(18, 25, 38, .2);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translateX(-50%) translateY(3px);
    transition: opacity .12s ease, transform .12s ease;
    white-space: normal;
}

.statistics-kpi-help:hover::after,
.statistics-kpi-help:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.statistics-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.statistics-grid-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.statistics-audience-donuts,
.statistics-audience-bottom,
.statistics-acquisition-row {
    margin-top: 18px;
}

.statistics-chart-card,
.statistics-table-card {
    position: relative;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--app-border);
    border-radius: 11px;
}

.statistics-chart-card h3,
.statistics-table-card h3 {
    margin: 0 0 14px;
    font-size: 14px;
}

.statistics-full-card {
    margin-top: 18px;
}

.statistics-line-scroll,
.statistics-table-scroll {
    overflow-x: auto;
}

.statistics-line-chart {
    display: block;
    width: 100%;
    min-width: 480px;
}

.statistics-line-chart line {
    stroke: #e7e8ec;
}

.statistics-line-chart polygon {
    fill: rgba(57, 201, 120, .13);
}

.statistics-line-chart polyline {
    fill: none;
    stroke: #39c978;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.statistics-line-chart text {
    fill: #a0a4af;
    font-size: 10px;
}

.statistics-line-hit {
    fill: transparent;
    stroke: transparent;
    stroke-width: 2;
    cursor: crosshair;
}

.statistics-line-hit.is-active,
.statistics-line-hit:focus {
    fill: #fff;
    stroke: #39c978;
}

.statistics-bars {
    display: grid;
    gap: 9px;
}

.statistics-bar-row > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 3px;
    font-size: 11px;
}

.statistics-bar-row {
    border-radius: 5px;
    outline: 0;
}

.statistics-bar-row:focus,
.statistics-bar-row:hover {
    background: #fafbfc;
}

.statistics-bar-row strong small,
.statistics-table-percentage,
.statistics-column strong small,
.statistics-legend strong small {
    color: var(--app-muted);
    font-size: 10px;
    font-weight: 500;
}

.statistics-bar-row svg {
    display: block;
    width: 100%;
    height: 18px;
}

.statistics-bar-row rect {
    fill: #eef0f4;
}

.statistics-bar-row rect.is-value {
    fill: #cce8fb;
}

.statistics-donut-wrap {
    display: grid;
    grid-template-columns: minmax(160px, 230px) 1fr;
    align-items: center;
    gap: 20px;
}

.statistics-donut {
    width: 100%;
    transform: rotate(-90deg);
}

.statistics-donut circle {
    fill: none;
    stroke-width: 26;
}

.statistics-donut-track {
    stroke: #f0f1f4;
}

.statistics-donut-value {
    cursor: pointer;
    outline: 0;
    transition: opacity .15s ease, stroke-width .15s ease;
}

.statistics-donut-value:hover,
.statistics-donut-value:focus,
.statistics-donut-value.is-active {
    opacity: .85;
    stroke-width: 30;
}

.statistics-audience-donuts .statistics-donut-wrap {
    grid-template-columns: minmax(110px, 42%) minmax(175px, 58%);
    gap: 8px;
}

.statistics-audience-donuts .statistics-donut {
    max-width: 155px;
    justify-self: center;
}

.statistics-audience-donuts .statistics-legend {
    justify-self: stretch;
}

.statistics-legend {
    display: grid;
    gap: 7px;
    color: var(--app-muted);
    font-size: 11px;
}

.statistics-legend > span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.statistics-legend > span > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.statistics-legend strong {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--app-text);
    font-size: 10px;
    white-space: nowrap;
}

.statistics-legend-color {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.statistics-legend-color--1 { background: #7c67ff; }
.statistics-legend-color--2 { background: #39c978; }
.statistics-legend-color--3 { background: #5bb8f5; }
.statistics-legend-color--4 { background: #f7c93e; }
.statistics-legend-color--5 { background: #ef554b; }
.statistics-legend-color--6 { background: #a2a7b4; }

.statistics-column-scroll {
    overflow-x: auto;
}

.statistics-column-chart {
    display: flex;
    align-items: end;
    justify-content: safe center;
    gap: 2px;
    width: max-content;
    min-width: 100%;
    min-height: 246px;
    padding: 20px 8px 0;
    border-bottom: 1px solid #e7e8ec;
}

.statistics-column {
    display: grid;
    grid-template-rows: 200px 28px;
    flex: 0 0 42px;
    align-items: end;
    min-width: 0;
    text-align: center;
    outline: 0;
}

.statistics-column > svg {
    display: block;
    width: 42px;
    height: 200px;
    transition: filter .15s ease;
}

.statistics-column > svg rect {
    fill: #39c978;
}

.statistics-column > svg text {
    fill: var(--app-muted);
    font-size: 11px;
    font-weight: 700;
    text-anchor: middle;
}

.statistics-column > svg .statistics-column-percentage {
    font-size: 9px;
    font-weight: 500;
}

.statistics-column:hover > svg,
.statistics-column:focus > svg {
    filter: brightness(.9);
}

.statistics-column > em {
    align-self: center;
    color: #9ca1ae;
    font-size: 10px;
    font-style: normal;
}

.statistics-audience-bottom {
    grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
}

.statistics-chart-tooltip {
    position: absolute;
    z-index: 8;
    min-width: 122px;
    max-width: 220px;
    padding: 9px 11px;
    color: var(--app-text);
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(24, 28, 40, .12);
    font-size: 11px;
    line-height: 1.45;
    pointer-events: none;
}

.statistics-chart-tooltip strong,
.statistics-chart-tooltip span {
    display: block;
}

.statistics-chart-tooltip strong {
    margin-bottom: 2px;
}

.statistics-search {
    width: min(240px, 100%);
    height: 38px;
    margin-bottom: 12px;
    padding: 0 12px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
}

.statistics-table-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.statistics-table-card th,
.statistics-table-card td {
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid var(--app-border-soft);
}

.statistics-table-card th {
    color: #9ca1ae;
    background: #fafafa;
    font-size: 10px;
    text-transform: uppercase;
}

.statistics-table-card th button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.statistics-table-card th button::after {
    color: #a5a9b4;
    content: '↕';
    font-size: 11px;
}

.statistics-table-card th button.is-ascending,
.statistics-table-card th button.is-descending {
    color: var(--couleur-principale);
}

.statistics-table-card th button.is-ascending::after {
    content: '↑';
}

.statistics-table-card th button.is-descending::after {
    content: '↓';
}

.statistics-table-card td.is-good {
    color: #20b967;
    font-weight: 750;
}

.statistics-empty-state {
    display: grid;
    place-items: center;
    min-height: 300px;
    padding: 35px;
    text-align: center;
}

.statistics-empty-state > span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    color: var(--couleur-principale);
    background: rgba(207, 34, 40, .08);
    border-radius: 50%;
}

.statistics-empty-state h3 {
    margin: 13px 0 5px;
}

.statistics-empty-state p,
.statistics-empty-inline {
    color: var(--app-muted);
    font-size: 12px;
}

.statistics-empty-inline {
    padding: 28px 10px;
    text-align: center;
}

.admin-client-matomo-form {
    margin-top: 18px;
}

.admin-client-matomo-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    background: #fafafa;
    border: 1px solid var(--app-border-soft);
    border-radius: 9px;
}

.admin-client-matomo-toggle input {
    margin-top: 2px;
}

.admin-client-matomo-toggle span,
.admin-client-matomo-toggle small {
    display: block;
}

.admin-client-matomo-toggle small {
    margin-top: 3px;
    color: var(--app-muted);
}

@media (max-width: 1050px) {
    .statistics-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-grid-two,
    .statistics-grid-three {
        grid-template-columns: 1fr;
    }

    .statistics-audience-donuts .statistics-donut-wrap {
        grid-template-columns: minmax(160px, 230px) 1fr;
    }

}

@media (max-width: 700px) {
    .statistics-period,
    .statistics-custom-period {
        align-items: stretch;
        flex-direction: column;
    }

    .statistics-presets {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .statistics-custom-period,
    .statistics-custom-period label,
    .statistics-custom-period > button,
    .statistics-datepicker,
    .statistics-datepicker-trigger {
        width: 100%;
    }

    .statistics-custom-period label {
        justify-content: space-between;
    }

    .statistics-shell {
        padding: 16px;
    }

    .statistics-tabs {
        gap: 18px;
        overflow-x: auto;
    }

    .statistics-kpis {
        grid-template-columns: 1fr;
    }

    .statistics-donut-wrap {
        grid-template-columns: 1fr;
    }

    .statistics-audience-donuts .statistics-donut-wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .statistics-donut {
        max-width: 220px;
        margin: 0 auto;
    }
}

/* SEO - Synthèse */
.seo-summary-heading {
    margin-bottom: 26px;
}

.seo-summary-heading h1 {
    margin: 0 0 12px;
    color: var(--app-text);
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.15;
}

.seo-summary-heading > p {
    margin: 18px 0 0;
    color: var(--app-muted);
    font-size: 13px;
}

.seo-summary-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.seo-summary-notice {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding: 11px 14px;
    color: #946000;
    background: #fffaeb;
    border: 1px solid #f5d58a;
    border-radius: 8px;
    font-size: 11.5px;
}

.seo-summary-notice svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.seo-summary-empty {
    display: grid;
    min-height: 360px;
    padding: 40px;
    place-items: center;
    align-content: center;
    text-align: center;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
}

.seo-summary-empty > span {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    place-items: center;
    color: #8068ff;
    background: #efedff;
    border-radius: 14px;
}

.seo-summary-empty > span svg {
    width: 24px;
    height: 24px;
}

.seo-summary-empty h2 {
    margin: 0;
    font-size: 19px;
}

.seo-summary-empty p {
    max-width: 520px;
    margin: 8px 0 18px;
    color: var(--app-muted);
    font-size: 12px;
}

.seo-summary-kpis {
    display: grid;
    grid-template-columns: minmax(380px, 2.1fr) repeat(4, minmax(155px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.seo-index-card,
.seo-kpi-card,
.seo-chart-card,
.seo-table-card {
    min-width: 0;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 11px;
}

.report-demo-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 18px;
    color: #785514;
    background: #fff4d4;
    border: 1px solid #efdb9e;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}
.report-demo-alert > svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; }
.report-demo-badge-row { width: 100%; margin-top: 14px; text-align: left; }
.report-demo-badge { display: inline-flex; padding: 4px 8px; color: #906800; background: #fff3cd; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1.4; }
.seo-index-card.is-demonstration { flex-wrap: wrap; }
.seo-index-card.is-demonstration > div:nth-child(2) { flex: 1; min-width: 160px; }
.seo-index-card.is-demonstration > .report-demo-badge-row { flex: 0 0 100%; margin-top: 0; }
.seo-kpi-card > .report-demo-badge-row { margin-top: auto; padding-top: 14px; }
.seo-table-card > .report-demo-badge-row { padding: 0 20px 16px; }

.seo-index-card {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 150px;
    padding: 20px;
    font-size: 13px;
}

.seo-index-ring {
    position: relative;
    width: 104px;
    height: 104px;
    flex: 0 0 auto;
}

.seo-index-ring svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.seo-index-ring circle {
    fill: none;
    stroke: #ebedf1;
    stroke-width: 12;
}

.seo-index-ring circle.is-value {
    stroke: #39c779;
    stroke-linecap: butt;
}

.seo-index-ring strong {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--app-text);
    font-size: 19px;
    font-weight: 800;
}

.seo-index-card h2,
.seo-chart-card h2,
.seo-table-card h2 {
    margin: 0;
    color: var(--app-text);
    font-size: 16px;
}

.seo-index-card p {
    margin: 6px 0 0;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.45;
}

.seo-index-card small {
    display: block;
    margin-top: 7px;
    color: #a0a5b1;
    font-size: 12px;
    line-height: 1.4;
}

.seo-kpi-card {
    position: relative;
    display: flex;
    min-height: 150px;
    padding: 22px 18px;
    flex-direction: column;
    justify-content: flex-start;
}

.seo-kpi-icon {
    position: absolute;
    top: 20px;
    right: 18px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    border-radius: 9px;
}

.seo-kpi-icon svg {
    width: 18px;
    height: 18px;
}

.seo-kpi-card--blue .seo-kpi-icon { background: #5eb7ee; }
.seo-kpi-card--green .seo-kpi-icon { background: #39c779; }
.seo-kpi-card--purple .seo-kpi-icon { background: #8068ff; }
.seo-kpi-card--yellow .seo-kpi-icon { background: #f8c741; }

.seo-kpi-card > strong {
    max-width: calc(100% - 42px);
    color: var(--app-text);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.seo-kpi-card > small {
    margin-top: 13px;
    color: #a0a5b1;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.seo-kpi-card h2 {
    margin: 18px 0 0;
    color: var(--app-text);
    font-size: 16px;
    line-height: 1.25;
}

.seo-kpi-card > small + h2 {
    margin-top: 3px;
}

.seo-chart-card {
    position: relative;
    padding: 22px;
}

.seo-chart-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.seo-chart-legend {
    display: flex;
    gap: 20px;
    color: var(--app-muted);
    font-size: 13px;
}

.seo-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.seo-chart-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.seo-chart-legend .is-keywords i { background: #8068ff; }
.seo-chart-legend .is-pages i { background: #9fa2af; }

.seo-evolution-chart {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 330px;
    cursor: crosshair;
}

.seo-chart-tooltip {
    position: absolute;
    z-index: 8;
    display: grid;
    gap: 3px;
    min-width: 130px;
    max-width: 230px;
    padding: 8px 10px;
    color: #656575;
    background: #fff;
    border: 1px solid #dedee5;
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(32, 34, 45, .12);
    font-size: 12px;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 10px));
    transition: opacity 100ms ease;
}

.seo-chart-tooltip.is-visible { opacity: 1; }

.seo-chart-empty {
    display: grid;
    min-height: 270px;
    place-items: center;
    align-content: center;
    color: var(--app-muted);
}

.seo-chart-empty svg {
    width: 28px;
    height: 28px;
}

.seo-chart-empty p {
    margin: 9px 0 0;
    font-size: 11.5px;
}

.seo-summary-tables-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.seo-table-card {
    overflow: hidden;
}

.seo-table-card > header {
    padding: 18px 20px 13px;
}

.seo-table-card > header p {
    margin: 4px 0 0;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.5;
}

.seo-table-card > header em {
    color: #8c92a0;
}

.seo-table-scroll {
    overflow-x: auto;
}

.seo-table-card table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 13px;
}

.seo-competitors-card table {
    min-width: 760px;
}

.seo-table-card th {
    height: 35px;
    padding: 0 20px;
    color: #989eaa;
    background: var(--app-surface-soft);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .035em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.seo-table-card td {
    height: 45px;
    padding: 9px 20px;
    color: var(--app-muted);
    border-top: 1px solid var(--app-border-soft);
}

.seo-table-card td strong {
    color: var(--app-text);
}

.seo-position-badge {
    display: inline-flex;
    padding: 4px 8px;
    color: #b47700;
    background: #fff3d6;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
}

.seo-position-badge.is-top {
    color: #14964c;
    background: #dff7e8;
}

.seo-page-url,
.seo-competitor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.seo-page-url svg,
.seo-competitor svg {
    width: 13px;
    height: 13px;
    color: #9ca2ad;
    flex: 0 0 auto;
}

.seo-page-url a {
    color: var(--app-text);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.seo-page-url a:hover,
.seo-page-url a:focus-visible {
    color: #1875d1;
}

.seo-competitors-alert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 10px;
    color: #1769aa;
    background: #e8f3ff;
    border: 1px solid #cbe4fb;
    border-radius: 8px;
    font-size: .78rem;
    line-height: 1.4;
}

.seo-competitors-alert svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.seo-competitor strong {
    color: var(--couleur-principale);
}

.seo-table-empty {
    height: 100px !important;
    text-align: center;
}

/* Configuration SEO dans une fiche client */
.admin-client-seo-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.admin-client-seo-settings-grid.is-single {
    grid-template-columns: 1fr;
}

.admin-client-seo-settings-grid > .admin-client-seo-form {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
}

.admin-client-seo-form {
    display: grid;
    gap: 20px;
}

.admin-websites-form {
    display: grid;
    gap: 20px;
}

.admin-website-list {
    display: grid;
    gap: 16px;
}

.admin-website-item {
    padding: 17px;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: 10px;
}

.admin-website-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.admin-website-heading strong {
    font-size: 13px;
}

.admin-website-heading button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--couleur-principale);
    background: transparent;
    border: 1px solid rgba(207, 34, 40, .25);
    border-radius: 8px;
    cursor: pointer;
}

.admin-website-heading button:hover {
    color: #ffffff;
    background: var(--couleur-principale);
}

.admin-website-heading svg {
    width: 15px;
    height: 15px;
}

.admin-website-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-website-field {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
}

.admin-website-field--wide {
    grid-column: span 2;
}

.admin-website-field > span {
    font-size: 11.5px;
    font-weight: 700;
}

.admin-website-field input,
.admin-website-field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 12px;
}

.admin-website-field input:focus,
.admin-website-field select:focus {
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .1);
}

.admin-website-add {
    justify-self: start;
}

@media (max-width: 900px) {
    .admin-website-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .admin-website-fields {
        grid-template-columns: 1fr;
    }

    .admin-website-field--wide {
        grid-column: auto;
    }

    .dashboard-website-row {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .dashboard-website-row > a,
    .dashboard-website-row > .dashboard-website-status,
    .dashboard-website-row > .dashboard-website-value {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }
}

.admin-client-seo-field {
    display: grid;
    gap: 7px;
}

.admin-client-seo-field > span {
    font-size: 12px;
    font-weight: 700;
}

.admin-client-seo-field input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 12px;
}

.admin-client-seo-field input:focus {
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .1);
}

.admin-client-seo-field small {
    color: var(--app-muted);
    font-size: 10.5px;
}

.admin-client-seo-feedback {
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 11.5px;
}

.admin-client-seo-feedback.is-success {
    color: #087443;
    background: #effbf5;
    border-color: #bcebd3;
}

.admin-client-seo-feedback.is-error {
    color: #a5141a;
    background: #fff4f4;
    border-color: #f1b8bb;
}

@media (max-width: 1380px) {
    .seo-summary-kpis {
        grid-template-columns: repeat(4, minmax(160px, 1fr));
    }

    .seo-summary-tables-two {
        grid-template-columns: minmax(0, 1fr);
    }

    .seo-index-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1050px) {
    .admin-client-seo-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .seo-summary-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seo-index-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .seo-summary-kpis {
        grid-template-columns: 1fr;
    }

    .seo-index-card {
        grid-column: auto;
        align-items: flex-start;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .seo-index-card.is-demonstration > .report-demo-badge-row { flex: 0 0 auto; }

    .admin-sea-demographic-table.is-age {
        grid-template-columns: 1fr;
    }

    .admin-sea-demographic-table.is-age > strong {
        grid-column: auto;
    }

    .seo-chart-card > header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Mes prestations */
.account-services-heading {
    margin-bottom: 26px;
}

.account-services-heading h1 {
    margin: 0 0 12px;
    color: var(--app-text);
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.15;
}

.account-renewals,
.account-services-table-card {
    padding: 24px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
}

.account-services-table-card {
    margin-top: 20px;
}

.account-renewals-top,
.account-services-table-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.account-renewals-top h2,
.account-services-table-heading h2 {
    margin: 0;
    color: var(--app-text);
    font-size: 18px;
}

.account-renewals-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.prestation-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 20px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.account-renewal-dialog-heading i[data-renewal-dialog-marker] {
    display: block;
    width: 4px;
    height: 14px;
    border-radius: 4px;
}

.prestation-type-badge.is-licence {
    color: #6855ee;
    background: #eeeaff;
}

.prestation-type-badge.is-marketing {
    color: #b77b00;
    background: #fff2cc;
}

.prestation-type-badge.is-web {
    color: #1675cf;
    background: #e2f1ff;
}

.account-renewal-dialog-heading i.is-licence {
    background: #7b68ff;
}

.account-renewal-dialog-heading i.is-marketing {
    background: #e5a400;
}

.account-renewal-dialog-heading i.is-web {
    background: #2b9cf0;
}

.account-renewals-actions {
    display: flex;
    gap: 8px;
}

.account-renewals-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.account-renewals-actions button:hover {
    border-color: #b9bec8;
    background: var(--app-surface-soft);
}

.account-renewals-actions svg {
    width: 15px;
    height: 15px;
}

.account-calendar-months {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.account-calendar-month {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 10px;
}

.account-calendar-month h3 {
    margin: 0;
    padding: 10px;
    color: var(--app-text);
    font-size: 12px;
    text-align: center;
    border-bottom: 1px solid var(--app-border);
}

.account-calendar-weekdays,
.account-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.account-calendar-weekdays span {
    padding: 8px 2px;
    color: var(--app-muted);
    font-size: 10px;
    font-weight: 650;
    text-align: center;
    border-bottom: 1px solid var(--app-border);
}

.account-calendar-day {
    min-width: 0;
    min-height: 58px;
    padding: 5px 4px;
    border-right: 1px solid var(--app-border-soft);
    border-bottom: 1px solid var(--app-border-soft);
}

.account-calendar-day:nth-child(7n) {
    border-right: 0;
}

.account-calendar-day.is-outside {
    background: repeating-linear-gradient(45deg, transparent, transparent 5px, var(--app-surface-soft) 5px, var(--app-surface-soft) 9px);
}

.account-calendar-day.is-today .account-calendar-day-number {
    color: var(--couleur-principale);
    font-weight: 800;
}

.account-calendar-day-number {
    display: block;
    margin-bottom: 4px;
    color: var(--app-muted);
    font-size: 10px;
    text-align: right;
}

.account-calendar-event {
    display: block;
    width: 100%;
    margin-top: 2px;
    padding: 4px 5px;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.account-calendar-event.is-licence {
    color: #6855ee;
    background: #eeeaff;
    border-left: 3px solid #7b68ff;
}

.account-calendar-event.is-marketing {
    color: #9b6900;
    background: #fff2cc;
    border-left: 3px solid #e5a400;
}

.account-calendar-event.is-web {
    color: #1675cf;
    background: #e2f1ff;
    border-left: 3px solid #2b9cf0;
}

.account-calendar-noscript,
.account-calendar-noscript p {
    margin: 16px 0 0;
    color: var(--app-muted);
    font-size: 12px;
}

.account-services-table-heading {
    align-items: center;
    margin-bottom: 16px;
}

.account-services-search {
    position: relative;
    display: block;
    width: min(260px, 100%);
}

.account-services-search svg {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 15px;
    height: 15px;
    color: var(--app-muted);
    transform: translateY(-50%);
}

.account-services-search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 34px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 12px;
}

.account-services-search input:focus {
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .1);
}

.account-services-table-scroll {
    overflow-x: auto;
}

.account-services-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--app-muted);
    font-size: 12px;
}

.account-services-table th {
    padding: 10px 12px;
    color: #9298a4;
    background: var(--app-surface-soft);
    font-size: 10px;
    letter-spacing: .03em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.account-services-table th:first-child {
    border-radius: 8px 0 0 8px;
}

.account-services-table th:last-child {
    border-radius: 0 8px 8px 0;
}

.account-services-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--app-border-soft);
    white-space: nowrap;
}

.account-services-table td strong {
    color: var(--app-text);
}

.account-service-status {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
}

.account-service-status.is-a-venir {
    color: #a86f00;
    background: #fff0c2;
}

.account-service-status.is-ok {
    color: #14964c;
    background: #d9f5e4;
}

.account-service-status.is-hors-annee {
    color: var(--app-muted);
    background: var(--app-surface-soft);
}

.account-services-empty,
.account-services-no-result {
    margin: 0;
    padding: 36px;
    color: var(--app-muted);
    text-align: center;
}

.account-services-empty {
    display: grid;
    place-items: center;
    gap: 7px;
}

.account-services-empty svg {
    width: 28px;
    height: 28px;
}

.account-services-empty strong {
    color: var(--app-text);
}

.account-renewal-dialog {
    width: min(470px, calc(100% - 32px));
    padding: 24px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 13px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.account-renewal-dialog::backdrop {
    background: rgba(17, 18, 20, .48);
    backdrop-filter: blur(2px);
}

.account-renewal-dialog-heading,
.account-renewal-dialog-heading > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.account-renewal-dialog-heading {
    justify-content: space-between;
}

.account-renewal-dialog-heading h2 {
    margin: 0;
    font-size: 18px;
}

.account-renewal-dialog-heading button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--app-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.account-renewal-dialog-heading button svg {
    width: 17px;
    height: 17px;
}

.account-renewal-dialog > .prestation-type-badge {
    margin-top: 12px;
}

.account-renewal-dialog dl {
    margin: 10px 0 0;
}

.account-renewal-dialog dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--app-border-soft);
}

.account-renewal-dialog dt {
    color: var(--app-muted);
    font-size: 12px;
}

.account-renewal-dialog dd {
    margin: 0;
    color: var(--app-text);
    font-size: 12px;
    font-weight: 750;
}

.account-renewal-dialog-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

/* Prestations suivies dans la fiche administrée */
.admin-account-prestations {
    display: grid;
    gap: 16px;
}

.admin-account-prestation-rows {
    display: grid;
    gap: 12px;
}

.admin-account-prestation-row {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) minmax(120px, .8fr) minmax(155px, 1fr) minmax(130px, .85fr) 36px;
    align-items: end;
    gap: 12px;
}

.admin-account-prestation-row label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-account-prestation-row label > span {
    color: #1675cf;
    font-size: 11px;
    font-weight: 700;
}

.admin-account-prestation-row input,
.admin-account-prestation-row select {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 12px;
}

.admin-account-prestation-row input:focus,
.admin-account-prestation-row select:focus {
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px rgba(207, 34, 40, .1);
}

.admin-account-prestation-delete {
    display: grid;
    place-items: center;
    width: 36px;
    height: 40px;
    padding: 0;
    color: var(--couleur-principale);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.admin-account-prestation-delete:hover {
    background: rgba(207, 34, 40, .08);
}

.admin-account-prestation-delete svg {
    width: 16px;
    height: 16px;
}

.admin-account-prestation-add {
    justify-self: start;
}

@media (max-width: 1180px) {
    .account-calendar-months {
        grid-template-columns: 1fr;
    }

    .admin-account-prestation-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
        border: 1px solid var(--app-border);
        border-radius: 9px;
    }

    .admin-account-prestation-delete {
        justify-self: end;
    }
}

@media (max-width: 700px) {
    .account-renewals,
    .account-services-table-card {
        padding: 17px;
    }

    .account-renewals-top,
    .account-services-table-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .account-renewals-actions,
    .account-services-search {
        width: 100%;
    }

    .account-renewals-actions button:last-child {
        flex: 1;
    }

    .admin-account-prestation-row {
        grid-template-columns: 1fr;
    }

    .admin-renewals-setting {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-renewals-setting .button-primary {
        width: 100%;
    }
}
.app-company-switcher {
    display: grid;
    gap: 2px;
    padding: 10px 0 8px;
    border-bottom: 1px solid var(--app-border-soft, #e5e7eb);
}

.app-company-switcher-title {
    padding: 0 15px 6px;
    color: var(--app-muted, #667085);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.app-company-options,
.app-company-options form {
    display: grid;
    margin: 0;
}

.app-user-dropdown .app-company-option {
    display: grid;
    align-items: center;
    grid-template-columns: 24px minmax(0, 1fr) 16px;
    gap: 9px;
    min-height: 36px;
    padding: 5px 15px;
    color: var(--app-text, #111827);
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
}

.app-user-dropdown .app-company-option:hover,
.app-user-dropdown .app-company-option:focus-visible {
    color: var(--app-text, #111827);
    background: var(--app-surface-soft, #f7f7f9);
}

.app-user-dropdown .app-company-option:focus-visible {
    outline: 2px solid rgba(207, 34, 40, .22);
    outline-offset: -2px;
}

.app-company-avatar {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: #6e59db;
    background: #eee9ff;
    font-size: 11px;
    font-weight: 800;
}

.app-company-avatar--1 { color: #1675cf; background: #e3f2ff; }
.app-company-avatar--2 { color: #128445; background: #dcf8e7; }
.app-company-avatar--3 { color: #b56f00; background: #fff1c9; }
.app-company-avatar--4 { color: #bd3f85; background: #ffe5f3; }

.app-company-name {
    overflow: hidden;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-dropdown .app-company-option > svg {
    width: 15px;
    height: 15px;
    margin-left: auto;
    color: #1fbf67;
}

.app-user-profile-link {
    margin-top: 5px;
}

.app-logout-form {
    margin: 0 0 5px;
}

.app-user-dropdown .app-logout-form button {
    color: var(--couleur-principale, #cf2228);
}

.app-user-dropdown .app-logout-form button:hover,
.app-user-dropdown .app-logout-form button:focus-visible {
    color: var(--couleur-principale, #cf2228);
}

.admin-company-context {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(360px, 1.5fr);
    gap: 20px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--app-border-soft);
    background: var(--app-surface-soft);
}

.admin-company-context form,
.admin-company-context label {
    display: grid;
    gap: 7px;
}

.admin-company-selection {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-content: center;
}

.admin-company-active-badge {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 7px;
    max-width: 100%;
    min-width: 0;
    padding: 7px 11px;
    color: #9f1c21;
    background: #fff0f0;
    border: 1px solid #f7cfd1;
    border-radius: 999px;
    font-size: 0.78rem;
}

.admin-company-active-badge svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
}

.admin-company-active-badge span {
    font-weight: 600;
}

.admin-company-active-badge strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-company-delete {
    justify-self: start;
}

.admin-company-delete button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

.admin-company-delete svg {
    width: 14px;
    height: 14px;
}

.admin-company-switches {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
}

.admin-company-switches > span {
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.admin-company-switches > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-company-switch-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 7px 11px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.admin-company-switch-button:hover,
.admin-company-switch-button:focus-visible {
    color: #cf2228;
    border-color: rgba(207, 34, 40, .45);
}

.admin-company-switch-button:focus-visible {
    outline: 3px solid rgba(207, 34, 40, .14);
}

.admin-company-switch-button svg {
    width: 15px;
    height: 15px;
}

.admin-company-context label > span {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-company-context input,
.admin-company-context select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    color: var(--app-text);
    border: 1px solid var(--app-border);
    border-radius: 9px;
    background: var(--app-surface);
}

.admin-company-create {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

/* Les noms longs ne doivent pas imposer leur largeur aux formulaires voisins. */
.admin-company-context > *,
.admin-company-context label,
.admin-company-selection {
    min-width: 0;
}

@media (max-width: 800px) {
    .admin-company-context,
    .admin-company-create {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-company-switch-button {
        justify-content: center;
        width: 100%;
    }
}

/* Interface inspirée de Rankly : navigation compacte, contenu large et cartes pastel. */
.page-app {
    --app-background: #f7f8fc;
    --app-surface: #ffffff;
    --app-surface-soft: #f4f5f8;
    --app-text: #111827;
    --app-muted: #667085;
    --app-border: #e4e7ec;
    --app-border-soft: #edf0f4;
}

.ql-container,
.ql-toolbar.ql-snow,
.ql-snow {
    font-family: inherit;
}

.app-shell {
    grid-template-columns: 264px minmax(0, 1fr);
}

.app-sidebar {
    width: 264px;
    color: #667085;
    border-right-color: #e5e7eb;
}

.app-sidebar-head {
    height: 66px;
    padding: 0 16px 0 20px;
}

.app-brand {
    width: 126px;
}

.app-nav {
    padding: 16px 12px 20px;
}

.app-nav-link {
    min-height: 36px;
    gap: 11px;
    padding: 8px 10px;
    color: #344054;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 520;
}

.app-nav-link > svg,
.app-nav-children a > svg:first-child {
    width: 17px;
    height: 17px;
    color: #667085;
    stroke-width: 1.8;
}

.app-nav-link.is-active {
    color: #cf2228;
    background: #fcebec;
    font-weight: 700;
}

.app-nav-link.is-active > svg {
    color: currentColor;
}

.app-nav-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 34px;
    margin-top: 8px;
    padding: 9px 6px 6px;
    color: #667085;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .065em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.app-nav-section-toggle:hover,
.app-nav-section-toggle:focus-visible,
.app-nav-section-toggle.is-active {
    color: #475467;
}

.app-nav-section-toggle:focus-visible {
    outline: 3px solid rgba(207, 34, 40, .14);
    outline-offset: 1px;
    border-radius: 7px;
}

.app-nav-section-toggle[aria-expanded="false"] .app-nav-chevron {
    transform: rotate(-90deg);
}

.app-nav-children {
    gap: 1px;
    margin: 0 0 8px;
}

.app-nav-children--separated {
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.app-nav-children a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 34px;
    padding: 7px 10px;
    color: #111827;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.app-nav-children a:hover,
.app-nav-children a:focus-visible {
    color: #111827;
    background: #f4f5f8;
}

.app-nav-children a.is-active {
    color: #cf2228;
    background: #fcebec;
    font-weight: 700;
}

.app-nav-children a.is-active > svg:first-child {
    color: currentColor;
}

.app-nav-children .app-nav-external-child {
    gap: 11px;
}

.app-nav-children .app-nav-external-icon {
    width: 13px;
    height: 13px;
    margin-left: auto;
    color: #98a2b3;
}

.app-sidebar-logout {
    border-top-color: #e5e7eb;
}

.app-sidebar-logout button {
    color: #667085;
    font-size: 14px;
}

.app-topbar {
    height: 66px;
    padding-inline: 24px;
}

.app-workspace {
    min-height: calc(100vh - 66px);
    min-height: calc(100dvh - 66px);
}

.app-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 30px clamp(18px, 2.1vw, 38px) 52px;
}

.app-content [class$="-card"],
.app-content [class*="-card "],
.sea-kpis article {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .05);
}

.dashboard-card,
.admin-card,
.marketing-watch-card,
.service-card,
.position-tracking-intro,
.position-tracking-card,
.position-tracking-empty,
.account-services-table-card,
.statistics-chart-card,
.statistics-table-card,
.seo-index-card,
.seo-chart-card,
.seo-table-card,
.sea-chart-card,
.sea-table-card,
.footer-page-card {
    border-color: #e4e7ec;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}

.document-stat-card,
.seo-kpi-card,
.statistics-kpi,
.sea-kpis article {
    position: relative;
    overflow: hidden;
    border-color: transparent;
    border-radius: 14px;
    box-shadow: none;
}

.document-stat-card::after,
.seo-kpi-card::after,
.statistics-kpi::after,
.sea-kpis article::after {
    position: absolute;
    top: -38px;
    right: -28px;
    width: 90px;
    height: 90px;
    content: '';
    background: rgba(255, 255, 255, .48);
    border-radius: 50%;
    pointer-events: none;
}

.document-stat-card > *,
.seo-kpi-card > *,
.statistics-kpi > *,
.sea-kpis article > * {
    position: relative;
    z-index: 1;
}

.seo-kpi-card > .seo-kpi-icon {
    position: absolute;
}

.document-stat-card:nth-child(5n + 1),
.seo-kpi-card--blue,
.statistics-kpi--blue,
.sea-kpis article.is-blue {
    background: #eef3ff;
}

.document-stat-card:nth-child(5n + 2),
.seo-kpi-card--purple,
.statistics-kpi--purple,
.sea-kpis article.is-purple {
    background: #f4f0ff;
}

.document-stat-card:nth-child(5n + 3),
.seo-kpi-card--green,
.statistics-kpi--green,
.sea-kpis article.is-green {
    background: #eafaf3;
}

.document-stat-card:nth-child(5n + 4),
.seo-kpi-card--yellow,
.statistics-kpi--yellow,
.sea-kpis article.is-yellow {
    background: #fff8df;
}

.document-stat-card:nth-child(5n),
.sea-kpis article.is-red {
    background: #fff0f1;
}

.page-app.is-dark .document-stat-card,
.page-app.is-dark .seo-kpi-card,
.page-app.is-dark .statistics-kpi,
.page-app.is-dark .sea-kpis article {
    background: var(--app-surface);
    border-color: var(--app-border);
}

.page-app.is-dark .app-content [class$="-card"],
.page-app.is-dark .app-content [class*="-card "],
.page-app.is-dark .sea-kpis article {
    border-color: var(--app-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

.app-user-dropdown {
    width: min(330px, calc(100vw - 24px));
}

.app-client-switcher {
    display: grid;
    gap: 8px;
    padding: 10px 15px 12px;
    border-bottom: 1px solid var(--app-border-soft);
}

.app-client-switcher form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

.app-client-switcher select {
    min-width: 0;
    height: 36px;
    padding: 0 28px 0 10px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
}

.app-user-dropdown .app-client-switcher button {
    width: auto;
    min-height: 36px;
    padding: 0 11px;
    color: #ffffff;
    background: var(--couleur-principale);
    border-radius: 8px;
    font-weight: 700;
}

.app-user-dropdown .app-client-switcher button:hover,
.app-user-dropdown .app-client-switcher button:focus-visible {
    color: #ffffff;
    background: var(--couleur-principale-hover);
}

.app-client-preview-exit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    padding: 4px 5px 4px 10px;
    color: #9f1c21;
    background: #fff0f0;
    border: 1px solid #f3c7c9;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
}

.app-client-preview-exit span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.app-client-preview-exit svg {
    width: 14px;
    height: 14px;
}

.app-client-preview-exit button {
    min-height: 28px;
    padding: 0 10px;
    color: #ffffff;
    background: var(--couleur-principale);
    border: 0;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
}

.admin-client-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.admin-client-row-actions form {
    margin: 0;
}

.admin-client-row-actions .button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.admin-client-row-actions svg {
    width: 14px;
    height: 14px;
}

.page-app.is-dark .document-stat-card::after,
.page-app.is-dark .seo-kpi-card::after,
.page-app.is-dark .statistics-kpi::after,
.page-app.is-dark .sea-kpis article::after {
    opacity: .05;
}

.app-shell.is-sidebar-collapsed .app-nav-section-toggle {
    display: none;
}

@media (max-width: 1100px) {
    .app-sidebar {
        width: 264px;
    }
}

@media (max-width: 760px) {
    .app-content {
        padding: 22px 15px 38px;
    }

    .app-client-preview-exit span {
        display: none;
    }

    .app-client-preview-exit {
        margin-right: 0;
        padding-left: 5px;
    }
}

/* Prioritaire sur le décor des cartes : les aides ne doivent jamais être rognées. */
.app-content .statistics-kpi {
    overflow: visible;
}

.app-content .statistics-kpi::after {
    display: none;
}

.app-content .statistics-kpi-help::after {
    display: none;
}

.statistics-help-tooltip {
    position: fixed;
    z-index: 10000;
    width: max-content;
    max-width: min(280px, calc(100vw - 24px));
    padding: 10px 12px;
    color: #fff;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .3);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
    pointer-events: none;
    text-align: left;
}

/* Les couleurs des résumés correspondent aux catégories du tableau. */
.document-stat-card:nth-child(4n + 1) { background: #eef3ff; }
.document-stat-card:nth-child(4n + 2) { background: #eafaf3; }
.document-stat-card:nth-child(4n + 3) { background: #f4f0ff; }
.document-stat-card:nth-child(4n) { background: #fff8df; }
.report-pdf-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin:0 0 20px; }
.report-pdf-button { display:inline-flex; align-items:center; gap:10px; padding:10px 16px; border:0; border-radius:8px; background:#ce2028; color:white; font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.report-pdf-button svg { width:18px; height:18px; }
.report-pdf-button:disabled { opacity:.6; cursor:wait; }
.report-pdf-actions [role="status"] { font-size:12px; max-width:520px; }

/* Modèle SEO 2 : mêmes cartes que SEA, données et mise en page spécifiques. */
.seo-bilan-report [data-seo-panel] { padding-top: 20px; }
.seo-bilan-report .seo-bilan-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seo-bilan-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.seo-bilan-tables > *, .seo-bilan-distribution > * { min-width: 0; }
.seo-bilan-table { width: 100%; table-layout: fixed; font-size: 13px; }
.seo-bilan-table th, .seo-bilan-table td { overflow-wrap: anywhere; }
.seo-bilan-table th:first-child, .seo-bilan-table td:first-child { width: 34%; }
.seo-bilan-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.seo-bilan-distribution { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.seo-bilan-distribution .seo-bilan-tops { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-self: start; align-content: start; }
.seo-bilan-bars { display: block; width: 100%; height: 300px; }
.seo-bilan-bars text { fill: var(--app-muted, #64748b); font-size: 12px; }
.seo-bilan-donut { max-width: 300px; margin: 15px auto; }
.seo-bilan-donut svg { width: 100%; display: block; }
.seo-bilan-donut-hole { fill: var(--app-surface, #fff); pointer-events: none; }
.seo-bilan-devices { display: grid; gap: 14px; }
.seo-bilan-devices > article:nth-child(1) { border-left: 4px solid #ce2028; }
.seo-bilan-devices > article:nth-child(2) { border-left: 4px solid #2b82bc; }
.seo-bilan-devices > article:nth-child(3) { border-left: 4px solid #f6b323; }
.seo-bilan-report .seo-bilan-recommendations { max-width: none; width: 100%; }
.seo-bilan-recommendations img, .seo-bilan-editor .ql-editor img { max-width: 100%; height: auto; }
.seo-bilan-editor section { padding-top: 18px; }
.seo-bilan-editor .seo-editor-fields { margin: 18px 0; }
.seo-bilan-edit-table input { min-width: 90px; }
.seo-bilan-edit-table td:first-child input { min-width: 180px; }
.seo-bilan-editor h3 { margin-top: 22px; }
.seo-bilan-editor [data-bilan-image-status] { color: var(--app-muted, #64748b); font-size: 13px; }
@media (max-width: 1000px) { .seo-bilan-tables, .seo-bilan-distribution { grid-template-columns: 1fr; } .seo-bilan-distribution .seo-bilan-tops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .seo-bilan-report .seo-bilan-kpis, .seo-bilan-distribution .seo-bilan-tops { grid-template-columns: 1fr; } .seo-bilan-report .seo-bilan-table { min-width: 530px; } .seo-bilan-bars text { font-size: 8px; } }

/* Thème anthracite inspiré de Rankly. Les surcharges restent limitées au mode sombre. */
.page-app.is-dark .app-sidebar,
.page-app.is-dark .app-sidebar-logout,
.page-app.is-dark .app-nav-children--separated { border-color: var(--app-border-soft); }
.page-app.is-dark :is(.app-nav-link, .app-nav-children a, .app-sidebar-logout button) { color: var(--app-text); }
.page-app.is-dark :is(.app-nav-section-toggle, .app-nav-heading, .app-nav-link > svg, .app-nav-children a > svg:first-child) { color: var(--app-muted); }
.page-app.is-dark :is(.app-nav-link, .app-nav-children a):is(:hover, :focus-visible) { color: var(--app-text); background: var(--app-surface-soft); }
.page-app.is-dark :is(.app-nav-section-toggle:hover, .app-nav-section-toggle:focus-visible) { color: var(--app-text); }
.page-app.is-dark :is(.app-nav-link.is-active, .app-nav-children a.is-active, .app-client-preview-exit) { color: var(--app-accent-text); background: var(--app-accent-soft); border-color: #69404a; }
.page-app.is-dark :is(.app-nav-link.is-active, .app-nav-children a.is-active) > svg:first-child { color: currentColor; }
.page-app.is-dark :is(.app-nav-link, .app-nav-children a, .app-nav-section-toggle, .app-icon-button, .button-primary, .button-secondary):focus-visible { outline-color: var(--app-accent-text); }

.page-app.is-dark :is(.sea-report, .sea-chart-card, .sea-table-card, .sea-summary, .seo-edit-follow, .seo-score-editor, .seo-score-inputs fieldset) { background: var(--app-surface); border-color: var(--app-border); }
.page-app.is-dark :is(.sea-tabs, .seo-monthly-report td, .seo-monthly-report th, .sea-table-card td, .sea-table-card th, .seo-report-admin td, .seo-report-admin th) { border-color: var(--app-border-soft); }
.page-app.is-dark :is(.sea-table-card thead th, .seo-monthly-report thead th, .seo-report-admin thead th) { color: var(--app-muted); background: var(--app-surface-soft); }
.page-app.is-dark :is(.sea-table-card td, .sea-table-card tbody th) { color: var(--app-text); }
.page-app.is-dark :is(.sea-tabs button, .sea-tabs a, .sea-legend span, .sea-card-title span, .seo-help, .seo-muted, .seo-pie-legend small, .seo-report-scores .sea-kpis small, .seo-edit-positions label, .seo-edit-follow summary) { color: var(--app-muted); }
.page-app.is-dark :is(.sea-tabs button.is-active, .sea-tabs a.is-active, .dashboard-card-heading > a) { color: var(--app-accent-text); }
.page-app.is-dark .sea-tabs :is(button, a).is-active { border-color: var(--app-accent-text); }
.page-app.is-dark :is(.sea-chart-tooltip, .sea-chart-tooltip strong) { background: var(--app-surface-soft); color: var(--app-text); border-color: var(--app-border); }
.page-app.is-dark .seo-score-chart text { fill: var(--app-muted); }
.page-app.is-dark .seo-grid-line { stroke: var(--app-border-soft); }
.page-app.is-dark .sea-horizontal-bar i { background: var(--app-surface-soft); }
.page-app.is-dark :is(.seo-positive, .sea-evolution.is-up) { color: #6cdda5; }
.page-app.is-dark :is(.seo-negative, .sea-evolution.is-down) { color: #ff858b; }
.page-app.is-dark .seo-purple { color: #b3a5ff; }

/* Conserver les familles colorées des indicateurs, sans aplats pastel clairs. */
.page-app.is-dark :is(.document-stat-card:nth-child(4n + 1), .seo-kpi-card--blue, .statistics-kpi--blue, .sea-kpis article.is-blue) { background: #222e49; }
.page-app.is-dark :is(.document-stat-card:nth-child(4n + 2), .seo-kpi-card--green, .statistics-kpi--green, .sea-kpis article.is-green) { background: #193d34; }
.page-app.is-dark :is(.document-stat-card:nth-child(4n + 3), .seo-kpi-card--purple, .statistics-kpi--purple, .sea-kpis article.is-purple) { background: #302747; }
.page-app.is-dark :is(.document-stat-card:nth-child(4n), .seo-kpi-card--yellow, .statistics-kpi--yellow, .sea-kpis article.is-yellow) { background: #44371f; }
.page-app.is-dark .sea-kpis article.is-red { background: #44252e; }
.page-app.is-dark .sea-kpis article.is-blue span { color: #8ac7ff; }
.page-app.is-dark .sea-kpis article.is-green span { color: #6cdda5; }
.page-app.is-dark .sea-kpis article.is-purple span { color: #c0b2ff; }
.page-app.is-dark .sea-kpis article.is-yellow span { color: #f6d679; }
.page-app.is-dark .sea-kpis article.is-red span { color: #ff9da1; }
.page-app.is-dark :is(.document-stat-card, .seo-kpi-card, .statistics-kpi, .sea-kpis article) { box-shadow: none; }
.page-app.is-dark :is(.document-stat-card, .seo-kpi-card, .statistics-kpi, .sea-kpis article)::after { opacity: .12; }
.page-app.is-dark :is(.document-stat-card, .seo-kpi-card, .statistics-kpi) :is(strong, h2, h3) { color: var(--app-text); }
.page-app.is-dark :is(.document-stat-card, .seo-kpi-card, .statistics-kpi) :is(p, small) { color: var(--app-muted); }

.page-app.is-dark :is(.dashboard-watch-week, .seo-page-url a) { color: #8ac7ff; }
.page-app.is-dark :is(.dashboard-website-icon.is-gray, .dashboard-website-status.is-gray) { background: var(--app-surface-soft); color: var(--app-muted); }
/* Les widgets tiers ont leur propre thème : fond clair local pour leurs textes noirs,
   sans filtre d'inversion qui altérerait les photos, logos et couleurs des publications. */
.page-app.is-dark .dashboard-social-feed:has(:is(.ti-widget, iframe)) { color-scheme: light; color: #111827; background: #fff; border-radius: 10px; padding: 12px; }

.page-app.is-dark :is(.admin-sea-sidebar, .admin-sea-editor, .admin-sea-section, .admin-sea-csv, .admin-sea-campaign, .ql-container.ql-snow, .ql-toolbar.ql-snow, .ql-snow .ql-picker-options, .ql-snow .ql-tooltip) { background: var(--app-surface); color: var(--app-text); border-color: var(--app-border); }
.page-app.is-dark :is(.admin-sea-csv-drop small, .admin-sea-csv > p, .admin-sea-section > p, .admin-sea-fields small, .admin-company-create > label > span) { color: var(--app-muted); }
.page-app.is-dark :is(.admin-sea-campaign-head, .admin-sea-device-row.is-head) { background: var(--app-surface-soft); color: var(--app-text); }
.page-app.is-dark :is(.admin-sea-device-table, .admin-sea-device-row) { border-color: var(--app-border); }
.page-app.is-dark .admin-sea-report-list a { color: var(--app-text); border-color: var(--app-border); }
.page-app.is-dark .admin-sea-report-list a:is(.is-active, :hover) { color: var(--app-accent-text); background: var(--app-accent-soft); border-color: #69404a; }
.page-app.is-dark .admin-sea-report-list small { color: var(--app-muted); }
.page-app.is-dark .ql-snow :is(.ql-stroke, .ql-stroke-miter) { stroke: var(--app-text); }
.page-app.is-dark .ql-snow :is(.ql-fill, .ql-stroke.ql-fill) { fill: var(--app-text); }
.page-app.is-dark .ql-snow .ql-picker { color: var(--app-text); }
.page-app.is-dark .ql-editor.ql-blank::before { color: var(--app-muted); }
.page-app.is-dark .ql-snow .ql-tooltip input { color: var(--app-text); background: var(--app-surface-soft); border-color: var(--app-border); }

/* Listes SEO/SEA et catalogue : couvrir aussi les écrans avant ouverture du rapport. */
.page-app.is-dark .sea-report-library { color: var(--app-text); background: var(--app-surface); border-color: var(--app-border); }
.page-app.is-dark .sea-report-list article { border-color: var(--app-border); }
.page-app.is-dark :is(.sea-library-heading p, .sea-report-list small, .sea-empty) { color: var(--app-muted); }
.page-app.is-dark .sea-library-heading > span { color: var(--app-accent-text); background: var(--app-accent-soft); }
.page-app.is-dark .sea-report-icon { color: #c0b2ff; background: #302747; }
.page-app.is-dark .service-card.is-subscribed { background: #193d34; border-color: #39745e; }
.page-app.is-dark .service-card-tags span { color: #8ac7ff; background: #222e49; }
.page-app.is-dark .service-card.is-subscribed .service-card-tags span { color: #92e8b7; background: #24523f; }
.page-app.is-dark .service-card-subscribed { color: #e6fff0; background: #176b43; }
.page-app.is-dark .service-card-price { color: var(--app-accent-text); background: var(--app-accent-soft); }

/* Administration des notifications : mêmes surfaces en clair et en sombre. */
.admin-notifications-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.admin-notifications-card { padding: 24px; min-width: 0; border: 1px solid var(--app-border); border-radius: 12px; background: var(--app-surface); color: var(--app-text); }
.admin-notifications-card h2 { margin: 0 0 12px; font-size: 18px; }
.admin-notifications-card p { color: var(--app-muted); font-size: 13px; line-height: 1.6; }
.admin-notification-message { display: grid; gap: 16px; }
.admin-notification-message label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.admin-notification-message :is(input, select, textarea) { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--app-border); border-radius: 8px; background: var(--app-surface); color: var(--app-text); font: inherit; }
.admin-notification-message textarea { resize: vertical; }
.admin-notifications-card button { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-top: 12px; }
.admin-notifications-card button svg { width: 17px; height: 17px; }
.admin-notifications-card button:disabled { opacity: .5; cursor: not-allowed; }
.admin-notifications-table { overflow: auto; max-height: 520px; }
.admin-notifications-table table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 13px; }
.admin-notifications-table :is(th, td) { padding: 12px; text-align: left; border-bottom: 1px solid var(--app-border); overflow-wrap: anywhere; }
.admin-notifications-table th { position: sticky; top: 0; background: var(--app-surface-soft); }
@media (max-width: 900px) { .admin-notifications-grid { grid-template-columns: minmax(0, 1fr); } .admin-notifications-card { padding: 16px; } }

/* Inbox : palette partagée, sans couleurs claires imposées. */
.admin-notification-models { margin-bottom: 20px; }
.admin-notification-model-picker { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.admin-notification-model-picker label { display: grid; min-width: 0; max-width: 100%; gap: 8px; font-size: 13px; }
.admin-notification-model-picker select { min-width: 0; max-width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--app-border); border-radius: 8px; color: var(--app-text); background: var(--app-surface); }
.notification-model-variables { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.notification-model-variables code { padding: 5px 8px; border-radius: 6px; background: var(--app-surface-soft); color: var(--app-text); }
.notification-model-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notification-model-preview { min-width: 0; }
.notification-model-preview iframe { width: 100%; height: 620px; border: 1px solid var(--app-border); border-radius: 8px; background: #fff; }
.notification-model-inbox { padding: 18px; border: 1px solid var(--app-border); border-radius: 8px; overflow-wrap: anywhere; }
.notification-model-inbox p { white-space: pre-wrap; }
.admin-notification-models h3 { font-size: 15px; margin: 12px 0 0; }
.admin-notification-models h4 { font-size: 13px; }
.admin-notification-models .admin-notifications-grid { margin-bottom: 0; }

.notifications-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.notifications-heading h1 { margin: 0; }
.notifications-inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); min-height: 560px; border: 1px solid var(--app-border); border-radius: 12px; background: var(--app-surface); overflow: hidden; }
.notifications-sidebar { min-width: 0; border-right: 1px solid var(--app-border); }
.notifications-folders { padding: 12px; display: grid; gap: 4px; border-bottom: 1px solid var(--app-border); }
.notifications-folders a { display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--app-muted); text-decoration: none; border-radius: 8px; font-weight: 650; }
.notifications-folders a[aria-current], .notification-item[aria-current] { background: var(--app-surface-soft); color: var(--app-text); }
.notifications-folders a > span { margin-left: auto; font-size: 12px; }
.notifications-folders svg, .notification-item > svg { color: var(--app-accent-text, #cf2228); width: 18px; height: 18px; flex-shrink: 0; }
.notification-item { position: relative; display: flex; gap: 12px; padding: 18px 16px; color: var(--app-muted); text-decoration: none; border-bottom: 1px solid var(--app-border-soft); border-left: 3px solid transparent; }
.notification-item[aria-current] { border-left-color: var(--app-accent-text, #cf2228); }
.notification-item > span:not(.notification-unread-dot) { display: grid; gap: 7px; min-width: 0; flex: 1; }
.notification-item strong, .notification-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-item strong { font-size: 13px; font-weight: 500; }
.notification-item.is-unread strong { color: var(--app-text); font-weight: 750; }
.notification-item small, .notification-item time { color: var(--app-muted); font-size: 12px; }
.notification-unread-dot { background: var(--app-accent-text, #cf2228); border-radius: 50%; width: 7px; height: 7px; flex-shrink: 0; margin-top: 5px; }
.notifications-detail { padding: 26px; min-width: 0; }
.notifications-detail-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 20px; }
.notifications-detail h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.notifications-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notifications-inbox form, .notifications-heading form { margin: 0; }
.notifications-actions :is(button, a), .notifications-heading button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 36px; padding: 8px 12px; font-size: 12px; text-decoration: none; }
.notifications-actions svg, .notifications-heading button svg { width: 16px; height: 16px; }
.notifications-meta { color: var(--app-muted); font-size: 12px; margin: 24px 0; }
.notifications-message { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; }
.notifications-empty { padding: 30px 18px; color: var(--app-muted); text-align: center; }
.notifications-empty svg { width: 36px; height: 36px; margin-bottom: 18px; }
.notifications-pagination { display: flex; gap: 12px; justify-content: center; align-items: center; padding: 16px; font-size: 12px; }
.notifications-pagination a { color: var(--app-text); }
.notifications-confirm { width: min(440px, calc(100% - 32px)); padding: 24px; border-radius: 12px; border: 1px solid var(--app-border); background: var(--app-surface); color: var(--app-text); }
.notifications-confirm::backdrop { background: #0008; }
.notifications-confirm h2 { font-size: 18px; margin-top: 0; }
.notifications-confirm p { color: var(--app-muted); line-height: 1.5; }
.notification-item:hover, .notifications-folders a:hover { background: var(--app-surface-soft); }
.notifications-inbox :is(a, button):focus-visible { outline: 2px solid var(--app-accent-text, #cf2228); outline-offset: -2px; }
@media (max-width: 1100px) { .notifications-inbox { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 760px) {
    .notifications-inbox { grid-template-columns: minmax(0, 1fr); }
    .notifications-sidebar { border-right: 0; border-bottom: 1px solid var(--app-border); }
    .notifications-list { max-height: 280px; overflow-y: auto; }
    .notifications-detail { padding: 20px 16px; }
    .notifications-actions { gap: 10px; }
}

/* Correctifs responsive des vues de rapports et du tableau de bord. */
.sea-table-card,
.sea-table-wrap,
.statistics-page,
.statistics-shell,
.statistics-results,
.statistics-chart-card,
.statistics-table-card {
    min-width: 0;
    max-width: 100%;
}

.sea-table-wrap,
.statistics-line-scroll,
.statistics-table-scroll,
.statistics-column-scroll {
    max-width: 100%;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
    .app-topbar {
        gap: 8px;
        padding-inline: 12px;
    }

    .app-topbar-actions {
        gap: 8px;
    }

    .app-topbar-actions > .app-icon-button {
        flex: 0 0 38px;
    }

    /* Compenser la marge interne des icônes pour égaliser les espaces visibles. */
    .app-topbar-actions > .app-user-menu {
        margin-inline-start: 9px;
    }

    .app-notification-count {
        top: -2px;
        right: 0;
    }

    .app-user-trigger {
        gap: 6px;
        margin-left: 0;
    }

    .app-user-trigger span,
    .app-user-trigger img {
        flex: 0 0 36px;
    }
}

@media (max-width: 700px) {
    .content-page-heading.sea-page-heading > div:first-child {
        width: 100%;
        min-width: 0;
    }

    .sea-period-nav {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        align-items: center;
        width: 100%;
        gap: 9px;
    }

    .sea-period-nav strong {
        min-width: 0;
        padding-inline: 10px;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .report-pdf-actions {
        justify-content: center;
    }

    .sea-budget-tables .sea-table-wrap table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .sea-budget-conversions .sea-table-wrap table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .sea-budget-conversions .sea-table-wrap :is(th, td) {
        padding-inline: 6px;
        overflow-wrap: anywhere;
        font-size: .7rem;
        white-space: normal;
    }

    .sea-budget-conversions .sea-table-wrap :is(th, td):first-child {
        width: 38%;
    }

    .sea-budget-tables .sea-table-wrap :is(th, td) {
        padding-inline: 9px;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .sea-budget-tables .sea-table-wrap :is(th, td):last-child {
        width: 48%;
    }

    .sea-budget-tables .sea-evolution {
        display: inline-block;
        margin: 3px 0 0;
    }

    .statistics-page,
    .statistics-period,
    .statistics-shell,
    .statistics-results,
    .statistics-results > *,
    .statistics-grid-two,
    .statistics-grid-three,
    .statistics-kpis {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .statistics-presets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .statistics-presets button {
        width: 100%;
        min-width: 0;
        padding-inline: 8px;
    }

    .statistics-custom-period label {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .statistics-datepicker-popover {
        right: 0;
        width: min(300px, calc(100vw - 62px));
    }

    .statistics-tabs {
        width: 100%;
        max-width: 100%;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .statistics-tabs button {
        flex: 0 0 auto;
    }

    .statistics-table-scroll table {
        min-width: 520px;
    }
}

@media (max-width: 520px) {
    .dashboard-website-row {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        gap: 8px;
        padding-inline: 9px;
    }

    .dashboard-website-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .dashboard-website-row > strong,
    .dashboard-website-row > a > span,
    .dashboard-website-value {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-website-row > a,
    .dashboard-website-row > .dashboard-website-status,
    .dashboard-website-row > .dashboard-website-value {
        grid-column: auto;
        justify-self: end;
        max-width: 100%;
        text-align: right;
        white-space: nowrap;
    }

    .dashboard-website-row > a {
        width: min(34vw, 130px);
    }

    .statistics-shell {
        padding: 14px;
    }

    .statistics-tabs {
        gap: 18px;
    }

    .statistics-chart-card,
    .statistics-table-card {
        padding: 15px;
    }
}

/* Administration > API : clés des agents */
.admin-api-intro { margin: 0 0 16px; color: var(--app-muted); font-size: 13px; line-height: 1.6; }
.admin-api-intro code { overflow-wrap: anywhere; }
.admin-api-jeton,
.admin-api-creation,
.admin-api-cle {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: var(--app-surface);
    color: var(--app-text);
    font-size: 13px;
    line-height: 1.6;
}
.admin-api-jeton p { margin: 4px 0 12px; }
.admin-api-jeton-valeur { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-api-jeton-valeur input {
    flex: 1 1 260px;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 7px;
    font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.admin-api-creation summary,
.admin-api-cle summary { cursor: pointer; font-weight: 700; }
.admin-api-creation form,
.admin-api-cle details form { margin-top: 14px; }
.admin-api-portees { min-width: 0; margin: 14px 0; padding: 0; border: 0; }
.admin-api-portees legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.admin-api-tout,
.admin-api-transverses label { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.admin-api-tout input,
.admin-api-transverses input { flex: none; margin-top: 4px; }
.admin-api-tout small,
.admin-api-transverses small { display: block; color: var(--app-muted); }
/* « Tous les droits » rend le détail inutile : le serveur l'ignore de toute façon. */
.admin-api-portees:has(.admin-api-tout input:checked) .admin-api-detail { display: none; }
.admin-api-detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.admin-api-matrice th:not(:first-child),
.admin-api-matrice td:not(:first-child) { width: 76px; text-align: center; }
.admin-api-transverses > strong { display: block; margin-bottom: 8px; }
.admin-api-cle header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.admin-api-cle header > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; min-width: 0; }
.admin-api-cle header strong { overflow-wrap: anywhere; }
.admin-api-cle dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 16px; margin: 12px 0; }
.admin-api-cle dt { color: var(--app-muted); font-size: 12px; }
.admin-api-cle dd { margin: 0; overflow-wrap: anywhere; }
.admin-api-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 900px) {
    .admin-api-detail { grid-template-columns: minmax(0, 1fr); }
}
.admin-api-matrice { min-width: 0; }
.admin-api-creation textarea,
.admin-api-cle textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--app-border);
    border-radius: 7px;
    color: var(--app-text);
    background: var(--app-surface);
    font: inherit;
    font-weight: 450;
    resize: vertical;
}
.admin-api-creation textarea:focus-visible,
.admin-api-cle textarea:focus-visible {
    border-color: var(--couleur-principale);
    outline: 3px solid rgba(207, 34, 40, .1);
}
@media (max-width: 480px) {
    .admin-api-matrice th,
    .admin-api-matrice td { padding: 9px 5px; letter-spacing: 0; }
    .admin-api-matrice th:not(:first-child),
    .admin-api-matrice td:not(:first-child) { width: 56px; }
}
.admin-sea-publication { align-items: center; flex-wrap: wrap; gap: 14px; }
.admin-sea-publication label { display: flex; align-items: center; gap: 8px; color: var(--app-text); font-size: 13px; }
