:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #f5f7fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
}

a {
    color: inherit;
}

.login-shell {
    /*min-height: 100vh;*/
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(460px, 100%);
    padding: 48px;
    border: 1px solid #e3e8f2;
    border-radius: 24px;
    background: white;
    box-shadow: 0 18px 50px rgba(28, 40, 68, .08);
    text-align: center;
    vertical-align: center;
}

.brand-mark {
    width: 58px;
    height: 58px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #172033;
    color: white;
    font-weight: 800;
}

.login-card h1 {
    margin: 0 0 12px;
}

.login-card p {
    margin: 0 0 28px;
    color: #68738a;
    line-height: 1.6;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
}

.button.primary {
    background: #172033;
    color: white;
}

.button.secondary {
    background: white;
    border: 1px solid #d8dfeb;
}

.button.synchro {
    background: #26cc4a;
    color: white;
}

.button.init {
    background: #2884f6;
    color: white;
}

.button:disabled {
    opacity: .55;
    cursor: wait;
}

.topbar {
    height: 68px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4e8f0;
    background: white;
}

.subtitle {
    margin-left: 8px;
    color: #8a94a8;
    font-size: 13px;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user a {
    margin-left: 10px;
    color: #68738a;
}

.app-shell {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 2px 0 80px;
}

.hero h1 {
    margin: 0 0 0px;
    font-size: clamp(30px, 5vw, 36px);
    letter-spacing: -.04em;
}

.hero p {
    margin: 0;
    color: #68738a;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px 180px auto;
    gap: 10px;
    margin-top: 34px;
}

input,
select {
    min-height: 48px;
    width: 100%;
    padding: 0 14px;
    border: 1px solid #d8dfeb;
    border-radius: 12px;
    background: white;
    color: #172033;
    font: inherit;
    outline: none;
}

input:focus,
select:focus {
    border-color: #8fa1bd;
    box-shadow: 0 0 0 3px rgba(143, 161, 189, .16);
}

.status {
    min-height: 24px;
    margin: 16px 2px 12px;
    color: #7b869a;
    font-size: 13px;
}

.results {
    display: grid;
    gap: 10px;
}

.result-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 17px 18px;
    border: 1px solid #e2e7ef;
    border-radius: 15px;
    background: white;
}

.result-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f5f7fb;
}

.result-icon img {
    max-width: 24px;
    max-height: 24px;
}

.result-title {
    display: block;
    overflow: hidden;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.result-title:hover {
    text-decoration: underline;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    color: #7b869a;
    font-size: 13px;
}

.open-link {
    padding: 8px 10px;
    color: #53627b;
    font-size: 13px;
    text-decoration: none;
}

.empty,
.error {
    padding: 30px;
    border: 1px dashed #d8dfeb;
    border-radius: 15px;
    color: #7b869a;
    text-align: center;
}

.error {
    color: #a33a3a;
}

@media (max-width: 840px) {
    .toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .toolbar input {
        grid-column: 1 / -1;
    }

    .topbar {
        padding: 0 18px;
    }

    .user span {
        display: none;
    }
}

@media (max-width: 560px) {
    .toolbar {
        grid-template-columns: 1fr;
    }

    .toolbar input {
        grid-column: auto;
    }

    .result-card {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .open-link {
        grid-column: 2;
        padding-left: 0;
    }

    .login-card {
        padding: 34px 24px;
    }
}

.sync-progress-wrap {
    width: 100%;
    padding: 12px 0 4px;
}
.sync-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 6px;
}
.sync-current {
    margin-bottom: 8px;
    overflow: hidden;
    color: #7b869a;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sync-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ebf2;
}
.sync-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: currentColor;
    transition: width .2s ease;
}
@media (max-width: 640px) {
    .sync-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
.sync-progress-wrap { width: 100%; padding: 12px 0 4px; }
.sync-line { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 6px; }
.sync-current { margin-bottom: 8px; overflow: hidden; color: #7b869a; text-overflow: ellipsis; white-space: nowrap; }
.sync-progress { width: 100%; height: 8px; overflow: hidden; border-radius: 999px; background: #e7ebf2; }
.sync-progress-bar { height: 100%; border-radius: inherit; background: currentColor; transition: width .2s ease; }
.sync-actions { display: flex; gap: 8px; margin-top: 12px; }
.button.danger { border: 1px solid #e4b7b7; background: #fff5f5; color: #a33a3a; }
.sync-retry { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff8e8; color: #7c5a16; font-size: 13px; }
.sync-errors { margin-top: 10px; color: #a33a3a; font-size: 13px; }
@media (max-width: 640px) { .sync-line { align-items: flex-start; flex-direction: column; gap: 4px; } }

/* V4 - onglets par Drive */

.drive-tabs-wrap {
    position: relative;
    margin-top: 14px;
}

.drive-tabs-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42px;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(245, 247, 251, 0),
        rgba(245, 247, 251, 1)
    );
}

.drive-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 44px 8px 0;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.drive-tab {
    flex: 0 0 auto;
    max-width: 260px;
    min-height: 38px;
    padding: 0 14px;
    overflow: hidden;
    border: 1px solid #d8dfeb;
    border-radius: 999px;
    background: #fff;
    color: #53627b;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .15s ease;
}

.drive-tab:hover {
    border-color: #b7c3d6;
    transform: translateY(-1px);
}

.drive-tab.active {
    border-color: #172033;
    background: #172033;
    color: #fff;
}

.drive-tab:focus-visible {
    outline: 3px solid rgba(23, 32, 51, .16);
    outline-offset: 2px;
}

/* Desktop : on privilégie les onglets */
@media (min-width: 841px) {
    #drive {
        display: none;
    }

    .toolbar {
        grid-template-columns: minmax(300px, 1fr) 180px auto;
    }
}

/* Mobile/tablette : on garde le select et on masque les onglets */
@media (max-width: 840px) {
    .drive-tabs-wrap {
        display: none;
    }

    #drive {
        display: block;
    }
}

/* V5 - explorateur de dossiers */

.folder-browser-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin: 18px 0 14px;
}

.folder-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    min-width: 0;
}

.folder-crumb {
    padding: 0;
    border: 0;
    background: transparent;
    color: #233a63;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.folder-crumb:hover {
    text-decoration: underline;
}

.folder-separator {
    color: #9aa5b7;
}

.folder-search-all {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #d8dfeb;
    border-radius: 10px;
    background: #fff;
    color: #53627b;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.folder-section {
    margin: 18px 0 24px;
}

.folder-section h2 {
    margin: 0 0 10px;
    color: #64738c;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

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

.folder-card {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dbe2ed;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.folder-card:hover {
    border-color: #b9c5d7;
    box-shadow: 0 5px 18px rgba(31, 48, 78, .06);
    transform: translateY(-1px);
}

.folder-card-icon {
    flex: 0 0 auto;
    font-size: 26px;
    line-height: 1;
}

.folder-card-main {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.folder-card-main strong {
    overflow: hidden;
    color: #111c31;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-card-main small {
    color: #8793a7;
}

.folder-card-arrow {
    flex: 0 0 auto;
    color: #8793a7;
    font-size: 22px;
}

.folder-files {
    display: grid;
    gap: 10px;
}

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

@media (max-width: 640px) {
    .folder-browser-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .folder-grid {
        grid-template-columns: 1fr;
    }

    .folder-search-all {
        width: 100%;
    }
}

/* V6 - informations sync incrémentale */
.sync-v6-note {
    margin: 7px 0 9px;
    color: #66758d;
    font-size: 13px;
}

/* V7 - indexation du contenu */

.content-index-button {
    white-space: nowrap;
}

.content-index-status {
    margin: 6px 0 18px;
}

.content-index-card {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid #dbe2ed;
    border-radius: 12px;
    background: #fff;
    color: #65738a;
    font-size: 13px;
}

.content-index-card strong {
    margin-right: 8px;
    color: #172033;
}

.content-index-idle,
.content-index-done {
    padding: 7px 2px;
    color: #7b869a;
    font-size: 13px;
}

.content-index-done {
    color: #456b54;
}

.content-index-errors {
    flex-basis: 100%;
    color: #9b4a4a;
    font-size: 12px;
}

@media (max-width: 840px) {
    .content-index-button {
        width: 100%;
    }
}

/* V8 - recherche rapide de Drive */

.drive-finder-bar {
    position: relative;
    width: min(440px, 100%);
    margin-top: 14px;
}

.drive-finder-bar input {
    width: 100%;
    min-height: 42px;
    padding: 0 42px 0 14px;
    border: 1px solid #d8dfeb;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    font: inherit;
    outline: none;
}

.drive-finder-bar input:focus {
    border-color: #8fa1bd;
    box-shadow: 0 0 0 3px rgba(143, 161, 189, .16);
}

.drive-filter-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #7c879a;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.drive-filter-clear:hover {
    background: #f1f4f8;
    color: #172033;
}

.drive-tab[hidden] {
    display: none !important;
}

.drive-tab-no-result {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    color: #8793a7;
    font-size: 13px;
}

.drive-tabs-filtered {
    padding-right: 0;
}

@media (max-width: 840px) {
    .drive-finder-bar {
        display: none;
    }
}

/* V9 - synchro + indexation unifiées */

#content-index,
#content-index-status {
    display: none !important;
}

/* V10 - select rapide de Drive */

.drive-quick-select-wrap {
    width: min(520px, 100%);
    margin-top: 14px;
}

.drive-quick-select-wrap select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d8dfeb;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    font: inherit;
    cursor: pointer;
    outline: none;
}

.drive-quick-select-wrap select:focus {
    border-color: #8fa1bd;
    box-shadow: 0 0 0 3px rgba(143, 161, 189, .16);
}

/*
Masque l'ancien champ V8 s'il est encore présent dans index.php.
*/
.drive-finder-bar {
    display: none !important;
}

/* V12 - indicateur d'activité synchro */

.sync-activity-v12 {
    margin: 10px 0 18px;
    padding: 14px 16px;
    border: 1px solid #dbe2ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(31, 48, 78, .04);
}

.sync-activity-v12-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sync-spinner-v12 {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 3px solid #dbe2ed;
    border-top-color: #172033;
    border-radius: 50%;
    animation: sync-spin-v12 .8s linear infinite;
}

@keyframes sync-spin-v12 {
    to {
        transform: rotate(360deg);
    }
}

.sync-activity-v12-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}

.sync-activity-v12-main strong {
    color: #172033;
    font-size: 14px;
}

.sync-activity-v12-main span,
.sync-activity-v12-time {
    color: #7b869a;
    font-size: 12px;
}

.sync-activity-v12-time {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.sync-activity-v12-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.sync-activity-v12-grid > div {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f6f8fb;
}

.sync-activity-v12-grid strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #172033;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sync-activity-v12-label {
    color: #8994a8;
    font-size: 11px;
}

.sync-activity-v12-note {
    margin-top: 10px;
    color: #8a94a8;
    font-size: 11px;
}

@media (max-width: 760px) {
    .sync-activity-v12-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .sync-activity-v12-grid {
        grid-template-columns: 1fr;
    }
}

/* V13 - file d'indexation */

.content-queue-v13 {
    margin: 8px 0 18px;
    padding: 12px 14px;
    border: 1px solid #dbe2ed;
    border-radius: 13px;
    background: #fff;
}

.content-queue-v13-head {
    display: flex;
    gap: 10px;
    align-items: center;
}

.content-queue-v13-head > div:last-child {
    display: flex;
    flex-direction: column;
}

.content-queue-v13-head strong {
    color: #172033;
    font-size: 13px;
}

.content-queue-v13-head span {
    color: #8793a7;
    font-size: 11px;
}

.content-queue-v13-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #dbe2ed;
    border-top-color: #172033;
    border-radius: 50%;
    animation: content-queue-v13-spin .8s linear infinite;
}

@keyframes content-queue-v13-spin {
    to {
        transform: rotate(360deg);
    }
}

.content-queue-v13-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.content-queue-v13-grid > div {
    padding: 8px 10px;
    border-radius: 9px;
    background: #f6f8fb;
}

.content-queue-v13-grid span {
    display: block;
    color: #8994a8;
    font-size: 10px;
}

.content-queue-v13-grid strong {
    display: block;
    margin-top: 2px;
    color: #172033;
    font-size: 13px;
}

@media (max-width: 700px) {
    .content-queue-v13-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* V14 - résultats séparés titres / contenu */
.search-result-section { margin: 18px 0 30px; }
.search-result-section-head {
    display:flex; justify-content:space-between; gap:16px; align-items:baseline;
    margin:0 0 10px; padding:0 2px 9px; border-bottom:1px solid #e2e7ef;
}
.search-result-section-head h2 { margin:0; color:#172033; font-size:15px; }
.search-result-section-head span { color:#8793a7; font-size:12px; }
.search-result-section-body { display:grid; gap:10px; }
.content-result-card { align-items:flex-start; }
.content-snippet {
    margin-top:9px; padding:9px 11px; border-left:3px solid #d1d9e6;
    border-radius:0 8px 8px 0; background:#f7f9fc; color:#53627b;
    font-size:12px; line-height:1.55;
}
.content-snippet mark { padding:0 2px; border-radius:3px; background:#fff0a8; color:inherit; }
.login-logo {
    display: block;
    width: min(100%, 320px);
    height: auto;
    margin: 0 auto 4px;
    object-fit: contain;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;  
    background: #eaeaea;  
}

.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    display: block;
    width: auto;
    height: 62px;
    object-fit: contain;
}

.user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user > img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Ajout toolbar + logos */

.toolbar {
    display: grid;
    grid-template-columns:
        minmax(500px, 1fr)
        220px
        220px
        135px;
    gap: 10px;
    align-items: center;
}

.toolbar input,
.toolbar select,
.toolbar button {
    width: 100%;
    height: 48px;
    margin: 0;
}

.login-logo {
    display: block;
    width: min(100%, 520px);
    height: auto;
    margin: 0 auto 24px;
    object-fit: contain;
}

.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    display: block;
    width: auto;
    height: 62px;
    object-fit: contain;
}

@media (max-width: 1150px) {
    .toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .toolbar {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Drives sous forme de cards
   ========================= */

.drives-section {
    margin: 22px 0 26px;
}

.drives-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.drives-section-header h2 {
    margin: 0;
    color: #14213a;
    font-size: 18px;
    font-weight: 700;
}

.drives-section-header p {
    margin: 4px 0 0;
    color: #7a879d;
    font-size: 13px;
}

.drive-all-card {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 18px;

    border: 1px solid #dbe2ed;
    border-radius: 12px;

    background: #fff;
    color: #41516d;

    font-weight: 700;
    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease;
}

.drive-all-card:hover {
    border-color: #9aabc6;
}

.drive-all-card.active {
    border-color: #14213a;
    background: #14213a;
    color: #fff;
}


/* Grille */

.drive-cards {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(245px, 1fr)
        );

    gap: 14px;
}


/* Card */

.drive-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 14px;

    min-width: 0;
    min-height: 96px;

    padding: 17px 16px;

    border: 1px solid #dbe2ed;
    border-radius: 16px;

    background: #fff;
    text-align: left;

    cursor: pointer;

    box-shadow:
        0 3px 10px
        rgba(25, 45, 75, .04);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.drive-card:hover {
    transform: translateY(-2px);

    border-color: #b5c4da;

    box-shadow:
        0 8px 22px
        rgba(25, 45, 75, .09);
}

.drive-card.active {
    border-color: #2979ff;

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #f1f6ff
        );

    box-shadow:
        0 7px 22px
        rgba(41, 121, 255, .13);
}


/* Icône */

.drive-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    border-radius: 14px;

    background: #f1f5fb;

    font-size: 23px;
}

.drive-card.active
.drive-card-icon {
    background: #e6efff;
}


/* Texte */

.drive-card-content {
    min-width: 0;
    flex: 1;
}

.drive-card-title {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #17233b;

    font-size: 14px;
    font-weight: 750;
}

.drive-card-subtitle {
    display: block;

    margin-top: 5px;

    color: #8390a5;

    font-size: 11px;
}


/* Flèche */

.drive-card-arrow {
    flex: 0 0 auto;

    color: #9aa7bb;
    font-size: 18px;

    transition: transform .15s ease;
}

.drive-card:hover
.drive-card-arrow {
    transform: translateX(3px);
}

.drive-card.active
.drive-card-arrow {
    color: #2979ff;
}


/* Responsive */

@media (max-width: 700px) {

    .drives-section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .drive-all-card {
        width: 100%;
    }

    .drive-cards {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   V15 - Drives sous forme de cards
   ========================================================= */

.drive-tabs-hidden-v15 {
    display: none !important;
}

.drive-cards-section-v15 {
    margin: 22px 0 26px;
}

.drive-cards-header-v15 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.drive-cards-header-v15 h2 {
    margin: 0;
    color: #14213a;
    font-size: 18px;
    font-weight: 750;
}

.drive-cards-header-v15 p {
    margin: 4px 0 0;
    color: #7b879b;
    font-size: 12px;
}

.drive-card-all-v15 {
    min-height: 40px;
    padding: 0 17px;
    border: 1px solid #d7dfeb;
    border-radius: 12px;
    background: #fff;
    color: #43516a;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .15s ease,
        border-color .15s ease,
        background .15s ease,
        color .15s ease;
}

.drive-card-all-v15:hover {
    transform: translateY(-1px);
    border-color: #aebcd0;
}

.drive-card-all-v15.active {
    border-color: #15213a;
    background: #15213a;
    color: #fff;
}


/* Grille */

.drive-cards-v15 {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}


/* Carte */

.drive-card-v15 {
    --drive-accent: #377dff;
    --drive-accent-soft: #edf4ff;

    position: relative;
    min-width: 0;
    min-height: 142px;
    padding: 17px;
    overflow: hidden;

    border: 1px solid #dce3ed;
    border-radius: 16px;

    background: #fff;
    color: inherit;
    text-align: left;
    font: inherit;

    cursor: pointer;

    box-shadow:
        0 3px 12px rgba(24, 43, 72, .045);

    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.drive-card-v15::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--drive-accent);
    opacity: .9;
}

.drive-card-v15[data-accent="2"] {
    --drive-accent: #7956d8;
    --drive-accent-soft: #f3efff;
}

.drive-card-v15[data-accent="3"] {
    --drive-accent: #24a064;
    --drive-accent-soft: #ecf8f2;
}

.drive-card-v15[data-accent="4"] {
    --drive-accent: #dc8126;
    --drive-accent-soft: #fff4e9;
}

.drive-card-v15[data-accent="5"] {
    --drive-accent: #1995a5;
    --drive-accent-soft: #eaf8fa;
}

.drive-card-v15[data-accent="6"] {
    --drive-accent: #d8537c;
    --drive-accent-soft: #fff0f5;
}

.drive-card-v15:hover {
    transform: translateY(-3px);
    border-color: #b9c6d9;
    box-shadow:
        0 10px 28px rgba(24, 43, 72, .10);
}

.drive-card-v15.active {
    border-color: var(--drive-accent);
    background:
        linear-gradient(
            145deg,
            #fff 0%,
            var(--drive-accent-soft) 150%
        );

    box-shadow:
        0 9px 26px rgba(24, 43, 72, .11);
}


/* Haut */

.drive-card-top-v15 {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.drive-card-icon-v15 {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    flex: 0 0 44px;

    border-radius: 13px;

    background: var(--drive-accent-soft);
    color: var(--drive-accent);
}

.drive-card-icon-v15 svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.drive-card-title-wrap-v15 {
    min-width: 0;
    flex: 1;
}

.drive-card-title-v15 {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #17233b;
    font-size: 13px;
    font-weight: 750;
}

.drive-card-google-v15 {
    display: block;
    margin-top: 4px;
    color: #8591a4;
    font-size: 10px;
}

.drive-card-arrow-v15 {
    flex: 0 0 auto;
    color: #9ba7b9;
    font-size: 18px;
    transition:
        transform .15s ease,
        color .15s ease;
}

.drive-card-v15:hover
.drive-card-arrow-v15 {
    transform: translateX(3px);
}

.drive-card-v15.active
.drive-card-arrow-v15 {
    color: var(--drive-accent);
}


/* Statistiques */

.drive-card-stats-v15 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;

    color: #647087;
    font-size: 11px;
}

.drive-card-stats-v15 strong {
    color: #25324a;
    font-weight: 750;
}

.drive-card-dot-v15 {
    color: #b1bac8;
}

.drive-card-total-v15 {
    margin-top: 8px;
    color: #919bad;
    font-size: 10px;
}


/* États */

.drive-cards-loading-v15,
.drive-cards-error-v15 {
    grid-column: 1 / -1;
    padding: 22px;
    border: 1px dashed #d5deea;
    border-radius: 14px;
    color: #7c889b;
    text-align: center;
    font-size: 12px;
}

.drive-cards-error-v15 {
    color: #b54747;
}


/* Responsive */

@media (max-width: 760px) {
    .drive-cards-header-v15 {
        align-items: stretch;
        flex-direction: column;
    }

    .drive-card-all-v15 {
        width: 100%;
    }

    .drive-cards-v15 {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Drive Finder V15b
   - masque l'ancien affichage des Drives
   - conserve uniquement les cards V15
   - affiche toutes les cards sur UNE SEULE LIGNE
   ========================================================= */

/*
 * Ancien système de cards ajouté précédemment.
 */
.drives-section,
.drive-cards:not(.drive-cards-v15),
.drive-tabs-wrap {
    display: none !important;
}


/* Nouveau bloc V15 */

.drive-cards-section-v15 {
    margin: 20px 0 26px;
    width: 100%;
}


/* Titre + bouton Tous */

.drive-cards-header-v15 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.drive-cards-header-v15 h2 {
    margin: 0;
    color: #14213a;
    font-size: 18px;
    font-weight: 750;
}

.drive-cards-header-v15 p {
    margin: 4px 0 0;
    color: #7b879b;
    font-size: 12px;
}

.drive-card-all-v15 {
    flex: 0 0 auto;
}


/* =========================================================
   UNE SEULE LIGNE
   ========================================================= */

.drive-cards-v15 {
    display: flex !important;
    flex-wrap: nowrap !important;

    gap: 14px;

    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 2px 2px 12px;

    scroll-behavior: smooth;
    scrollbar-width: thin;

    -webkit-overflow-scrolling: touch;
}


/* Chaque card garde une largeur fixe */

.drive-card-v15 {
    flex: 0 0 270px;
    width: 270px;
    min-width: 270px;
    min-height: 142px;
}


/* Scrollbar plus discrète */

.drive-cards-v15::-webkit-scrollbar {
    height: 7px;
}

.drive-cards-v15::-webkit-scrollbar-track {
    background: transparent;
}

.drive-cards-v15::-webkit-scrollbar-thumb {
    background: #cbd4e1;
    border-radius: 999px;
}

.drive-cards-v15::-webkit-scrollbar-thumb:hover {
    background: #aeb9c9;
}


/* Mobile */

@media (max-width: 760px) {
    .drive-cards-header-v15 {
        align-items: stretch;
        flex-direction: column;
    }

    .drive-card-all-v15 {
        width: 100%;
    }

    .drive-card-v15 {
        flex-basis: 245px;
        width: 245px;
        min-width: 245px;
    }
}




