/* @font-face déclarés directement dans les layouts via ASSETS_URL absolu */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 240px;
    height: calc(100vh - 24px);
    background-color: #dddddd;
    border-radius: 16px;
    padding: 16px;
    margin: 12px 0 12px 12px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.main-content-public {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    padding: 12px;
}

/* ===== HERO ===== */
.hero {
    width: 100%;
}

.hero-card {
    background-color: #2e2e55;
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
}

.hero-logo {
    height: 36px;
    width: auto;
    display: block;
    margin-bottom: 32px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.hero-btn--primary {
    background-color: #b0a0ff;
    color: #000000;
}

.hero-btn--primary:hover {
    background-color: #9d8df5;
}

.hero-btn--secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.hero-btn--secondary:hover {
    background-color: #5c5ca8;
    border-color: transparent;
}

@media (max-width: 600px) {
    .hero-card {
        padding: 32px 24px;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== SIDEBAR LOGO ===== */
.sidebar-logo {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: transparent;
    box-sizing: border-box;
}

.sidebar-logo img {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    filter: brightness(0);
}

.sidebar-logo span {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    color: #111111;
}

/* ===== SIDEBAR NAV ===== */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.sidebar-bottom {
    width: 100%;
    flex-shrink: 0;
}

/* ===== NAV BUTTONS ===== */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 16px;
    background-color: transparent;
    color: #111111;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-btn i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.nav-btn img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: brightness(0);
}

.nav-btn:hover {
    background-color: #bbbbbb;
}

.nav-btn.active {
    background-color: #111111;
    color: #ffffff;
    pointer-events: none;
}

.nav-btn.active img {
    filter: brightness(0) invert(1);
}

/* Profil : fond transparent sauf hover */
.nav-btn--profil,
.nav-btn--profil.active {
    background-color: transparent !important;
    color: #111111;
}

.nav-btn--profil.active img {
    filter: brightness(0);
}

.nav-btn--profil:hover {
    background-color: #bbbbbb !important;
}

/* Premium : toujours #ffc107, même actif */
.nav-btn--premium,
.nav-btn--premium.active {
    background-color: #ffc107 !important;
    color: #000000 !important;
    margin-bottom: 6px;
}

.nav-btn--premium:hover {
    background-color: #ffc107 !important;
}

.nav-btn--premium img,
.nav-btn--premium.active img {
    filter: brightness(0) !important;
}

/* ===== DASHBOARD HERO ===== */
.dashboard-hero {
    background-image: linear-gradient(rgba(221,221,221,0.75), rgba(221,221,221,0.75)),
                      url('../images/background_banner.webp');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 80px 40px;
    margin: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.premium-page-hero {
    background-image: linear-gradient(rgba(221,221,221,0.75), rgba(221,221,221,0.75)),
                      url('../images/background_banner3.webp');
}

.dashboard-hero__content {
    text-align: center;
    width: 100%;
}

.dashboard-hero__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 10px;
}

.dashboard-hero__desc {
    font-size: 0.95rem;
    color: rgba(17, 17, 17, 0.65);
    margin-bottom: 28px;
    line-height: 1.6;
}

.dashboard-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.dash-btn img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dash-btn--create {
    background-color: #111111;
    color: #ffffff;
}

.dash-btn--create img {
    filter: brightness(0) invert(1);
}

.dash-btn--open {
    background-color: transparent;
    color: #111111;
    border: 1.5px solid #bbbbbb;
}

.dash-btn--open img {
    filter: brightness(0);
}

.dash-btn--open:hover {
    background-color: #bbbbbb;
    border-color: #bbbbbb;
}

.dash-btn--gold {
    background-color: #ffc107;
    color: #000000;
}

.dash-btn--gold img {
    filter: brightness(0);
}


/* ===== PREMIUM BANNER ===== */
.premium-banner {
    display: grid;
    grid-template-columns: 25% 1fr;
    align-items: center;
    gap: 24px;
    margin: 24px 12px 12px;
}

.premium-banner__left {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.premium-banner__left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.premium-banner__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 8px 0;
}

.premium-banner__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111111;
    margin: 0;
}

.premium-banner__desc {
    font-size: 0.88rem;
    color: rgba(17,17,17,0.65);
    line-height: 1.6;
    margin: 0;
}

.premium-banner__btn {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 10px 22px;
    border-radius: 16px;
    background-color: #ffc107;
    color: #000000;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* ===== STATS RAPIDES ===== */
.stats-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #dddddd;
    border-radius: 16px;
    padding: 16px;
    margin: 24px 12px 0;
}

.stats-wrap__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stats-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-card__icon {
    width: 20px;
    height: 20px;
    filter: brightness(0);
    flex-shrink: 0;
}

.stats-card__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #111111;
}

.stats-card__value {
    font-size: 2rem;
    font-weight: 800;
    color: #111111;
    line-height: 1;
}

/* ===== DOC SECTION ===== */
.doc-section {
    padding: 24px 0 12px;
    margin: 0 12px;
}

.doc-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.doc-section__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
}

.doc-section__more {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666666;
    text-decoration: none;
}

.doc-section__empty {
    font-size: 0.9rem;
    color: #666666;
    padding: 8px 0;
}

/* ===== MODAL NOUVEAU DOCUMENT ===== */
.ndoc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndoc-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ndoc-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
}

.ndoc-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ndoc-modal__input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dddddd;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: #111111;
    outline: none;
    transition: border-color 0.15s;
}

.ndoc-modal__input:focus {
    border-color: #111111;
}

.ndoc-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ndoc-modal__btn {
    padding: 9px 20px;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
}

.ndoc-modal__btn--cancel {
    background: #eeeeee;
    color: #111111;
}

.ndoc-modal__btn--cancel:hover {
    background: #dddddd;
}

.ndoc-modal__btn--create {
    background: #111111;
    color: #ffffff;
}

.ndoc-modal__btn--create:hover {
    background: #333333;
}

/* ===== MODAL TOUS LES MODÈLES ===== */
.tpl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.tpl-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 1200px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tpl-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.tpl-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
}

.tpl-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: #111111;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}

.tpl-modal__close:hover {
    background: #dddddd;
}

/* ===== DOC CONTEXT MENU ===== */
.doc-ctx-menu {
    position: fixed;
    z-index: 9999;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: 6px;
    display: none;
    flex-direction: column;
    min-width: 200px;
    gap: 2px;
}

.doc-ctx-menu__item {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.12s;
}

.doc-ctx-menu__item:hover {
    background: #dddddd;
}

button.doc-ctx-menu__item {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Nunito', sans-serif;
}

.doc-ctx-menu__item--delete {
    color: #e03e3e;
}

.doc-ctx-menu__item--delete:hover {
    background: rgba(224, 62, 62, 0.1);
}

.doc-ctx-menu__item--delete-folder {
    color: #e03e3e;
}

.doc-ctx-menu__item--delete-folder:hover {
    background: rgba(224, 62, 62, 0.1);
}

.doc-ctx-menu__item--restore {
    color: #2e7d32;
}

.doc-ctx-menu__item--restore:hover {
    background: rgba(46, 125, 50, 0.1);
}

/* ===== MOVE FOLDER LIST ===== */
.move-folder-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.move-folder-item {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #111111;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s;
}

.move-folder-item:hover {
    background: #dddddd;
}

/* grid 4 colonnes */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* une seule ligne visible */
.doc-grid--one-row {
    grid-template-rows: auto;
    grid-auto-rows: 0;
    overflow: hidden;
}

.doc-card {
    background: transparent;
    border-radius: 14px;
    padding: 0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s, padding 0.2s;
}

.doc-card:hover {
    background: #bbbbbb;
    padding: 6px;
}

.doc-card__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #dddddd;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-radius 0.2s ease;
}

.doc-card:hover .doc-card__thumb {
    transform: scale(0.93);
    border-radius: 8px;
}

/* Carte dossier — icône centrée, sans preview */
.doc-card--folder .doc-card__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.doc-card__folder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48%;
    aspect-ratio: 1 / 1;
}

.doc-card__folder-icon img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(40%);
    object-fit: contain;
}

.doc-card__preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 700px;
    transform-origin: top left;
    pointer-events: none;
    font-size: 14px;
    line-height: 1.5;
    color: #111111;
    word-break: break-word;
    padding: 16px;
    box-sizing: border-box;
}

.doc-card__preview h1,
.doc-card__preview h2,
.doc-card__preview h3 {
    font-weight: 700;
    margin-bottom: 4px;
}

.doc-card__preview h1 { font-size: 22px; }
.doc-card__preview h2 { font-size: 18px; }
.doc-card__preview h3 { font-size: 15px; }

.doc-card__preview p,
.doc-card__preview li { margin-bottom: 4px; }

.doc-card__preview ul,
.doc-card__preview ol {
    padding-left: 20px;
    margin-bottom: 6px;
}

.doc-card__preview ul { list-style: disc; }
.doc-card__preview ol { list-style: decimal; }

.doc-card__preview img {
    height: auto;
    display: block;
    margin: 6px 0;
    max-width: 100%;
}

.doc-card__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 2px;
}

.doc-card__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #111111;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-card__date {
    font-size: 0.78rem;
    color: #666666;
}

/* Grand écran : 6 colonnes */
@media (min-width: 1400px) {
    .doc-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Très grand écran : 8 colonnes */
@media (min-width: 2000px) {
    .doc-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* tablette : 3 colonnes */
@media (max-width: 1024px) {
    .doc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* mobile : 2 colonnes */
@media (max-width: 768px) {
    .doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== PAGE DOCUMENTS / PARTAGÉS ===== */
.docpage {
    padding: 28px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Barre de recherche documents ── */
.docsearch-wrap {
    margin: 12px;
}

/* ===== PROFIL HERO ===== */
.profil-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    background: #dddddd;
    padding: 24px;
    margin: 12px 12px 0;
    border-radius: 16px;
}

.profil-hero__avatar-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.profil-hero__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.profil-hero__avatar--placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #dddddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profil-hero__avatar--placeholder img {
    width: 38px;
    height: 38px;
    filter: brightness(0) saturate(100%) invert(40%);
}

.profil-hero__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profil-hero__email {
    font-size: 0.95rem;
    font-weight: 500;
    color: #666666;
}

.profil-hero__name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111111;
}


.folder-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 12px 4px;
    flex-wrap: wrap;
}

.folder-page-header__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.folder-page-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: none;
    flex-shrink: 0;
    transition: background 0.15s;
}

.folder-page-header__back:hover {
    background: #dddddd;
}

.folder-page-header__back img {
    width: 18px;
    height: 18px;
    filter: brightness(0);
}

.folder-page-header__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111111;
}

.folder-page-header__right .docsearch {
    min-width: 240px;
}

.docsearch {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #dddddd;
    border-radius: 16px;
    padding: 10px 16px;
    transition: background 0.2s;
}

.docsearch__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.docsearch__icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(40%);
}

.docsearch__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111111;
    min-width: 0;
}

.docsearch__input::placeholder {
    color: #666666;
}

.docpage__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.docpage__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.docpage__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.docpage__search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2e2e55;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 8px 14px;
    color: rgba(255,255,255,0.4);
    transition: border-color 0.2s;
}

.docpage__search:focus-within {
    border-color: #b0a0ff;
    color: rgba(255,255,255,0.7);
}

.docpage__search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    width: 200px;
}

.docpage__search-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.docpage__create-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: #b0a0ff;
    color: #000000;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.docpage__create-btn:hover {
    background: #9d8df5;
}

.docpage__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.docpage__card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #2e2e55;
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.docpage__card:hover {
    background: #3a3a6e;
    transform: translateY(-1px);
}

.docpage__card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(176,160,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.docpage__card-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(70%) sepia(40%) saturate(500%) hue-rotate(210deg);
}

.docpage__card-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docpage__card-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docpage__card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.docpage__card-meta span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

.docpage__card-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

.docpage__card-arrow {
    color: rgba(255,255,255,0.2);
    flex-shrink: 0;
    transition: color 0.15s;
}

.docpage__card:hover .docpage__card-arrow {
    color: rgba(255,255,255,0.6);
}

.docpage__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

.docpage__empty p {
    font-size: 0.93rem;
}

.docpage__count {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
}

/* ===== BOUTON NOUVEAU DOSSIER ===== */
.docpage__newfolder-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    border: 1.5px solid rgba(176,160,255,0.35);
    color: #b0a0ff;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}
.docpage__newfolder-btn:hover { background: rgba(176,160,255,0.12); border-color: #b0a0ff; }

/* ===== LIGNE CRÉATION DOSSIER ===== */
.folder-create-row {
    margin-bottom: 8px;
}
.folder-create-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2e2e55;
    border: 1.5px solid rgba(176,160,255,0.4);
    border-radius: 10px;
    padding: 10px 14px;
}
.folder-create-input-wrap svg { color: #b0a0ff; flex-shrink: 0; }
.folder-name-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
}
.folder-name-input::placeholder { color: rgba(255,255,255,0.3); }
.folder-create-ok {
    padding: 4px 14px;
    background: #b0a0ff;
    color: #1b1b2f;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.folder-create-ok:hover { background: #c4b8ff; }
.folder-create-cancel {
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s;
}
.folder-create-cancel:hover { color: rgba(255,255,255,0.75); }

/* ===== SECTION DOSSIER ===== */
.folder-section {
    margin-bottom: 6px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.06);
    background: rgba(46,46,85,0.4);
}
.folder-section--none {
    background: transparent;
    border-color: transparent;
}
.folder-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    border-radius: 10px;
    transition: background 0.15s;
}
.folder-header:hover { background: rgba(255,255,255,0.04); }
.folder-header--none { padding-left: 4px; }
.folder-icon { color: #b0a0ff; flex-shrink: 0; }
.folder-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    outline: none;
}
.folder-name.editing {
    background: rgba(176,160,255,0.12);
    border-radius: 4px;
    padding: 1px 6px;
    white-space: normal;
    overflow: visible;
}
.folder-count {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
    background: rgba(255,255,255,0.07);
    padding: 2px 8px;
    border-radius: 20px;
}
.folder-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}
.folder-header:hover .folder-actions { opacity: 1; }
.folder-action-btn {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.folder-action-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.folder-delete-btn:hover { background: rgba(255,80,80,0.15); color: #ff8080; }
.folder-chevron {
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.folder-section.open .folder-chevron { transform: rotate(180deg); }
.folder-grid {
    display: none;
    padding: 0 12px 12px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.folder-section.open .folder-grid { display: grid; }
.folder-section--none.open .folder-grid { padding-left: 0; padding-right: 0; }
.folder-empty {
    grid-column: 1 / -1;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.2);
    padding: 8px 0 4px;
    font-style: italic;
}

/* ===== CARTE DOC AVEC BOUTON DÉPLACER ===== */
.docpage__card-wrap {
    position: relative;
}
.doc-move-wrap {
    position: absolute;
    top: 50%;
    right: 44px;
    transform: translateY(-50%);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.15s;
}
.docpage__card-wrap:hover .doc-move-wrap { opacity: 1; }
.doc-move-btn {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(27,27,47,0.85);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    backdrop-filter: blur(4px);
}
.doc-move-btn:hover { background: #2e2e55; color: #b0a0ff; }
.doc-move-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #252545;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 100;
}
.doc-move-dropdown.open { display: block; }
.move-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s;
    font-family: inherit;
}
.move-opt:hover { background: rgba(255,255,255,0.08); color: #fff; }
.move-opt--active { color: #b0a0ff; }
.move-opt svg { flex-shrink: 0; color: rgba(255,255,255,0.35); }
.move-opt--active svg { color: #b0a0ff; }

@media (max-width: 600px) {
    .folder-grid { grid-template-columns: 1fr; }
    .folder-actions { opacity: 1; }
    .doc-move-wrap { opacity: 1; }
}

.role-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

@media (max-width: 600px) {
    .docpage__search-input { width: 140px; }
    .docpage__grid { grid-template-columns: 1fr; }
}

/* ===== AUTH PAGES (inscription / connexion) ===== */
.auth-card {
    background-color: #2e2e55;
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

body.auth-page .main-content-public {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo {
    height: 32px;
    width: auto;
    display: block;
    margin-bottom: 28px;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 28px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.form-group input {
    background-color: #1b1b2f;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #b0a0ff;
}

.form-group input[type="file"] {
    padding: 8px 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
}

.form-hint {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
}

.form-error {
    font-size: 0.8rem;
    color: #ff7b7b;
}

.form-alert {
    background-color: rgba(255, 100, 100, 0.12);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    color: #ff9090;
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.auth-btn {
    margin-top: 8px;
    padding: 11px 24px;
    border-radius: 16px;
    background-color: #b0a0ff;
    color: #000000;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-btn:hover {
    background-color: #9d8df5;
}

.auth-switch {
    margin-top: 20px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.auth-switch a {
    color: #b0a0ff;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .auth-card {
        padding: 32px 20px;
    }
}

/* ===== EDITEUR ===== */
.editor-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 24px);
    padding: 0;
    margin: 0;
    background: #ffffff;
    border-radius: 0;
}

.editor-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px 8px;
    background: #dddddd;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
    margin: 12px 12px 0;
}

.editor-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #111111;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s;
}

.editor-back img {
    width: 18px;
    height: 18px;
    filter: brightness(0);
}

.editor-back:hover {
    background: #bbbbbb;
}

.editor-docname {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
    outline: none;
    border: none;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: text;
    border-radius: 8px;
    padding: 4px 8px;
    transition: background 0.15s;
}

.editor-docname:focus {
    background: #bbbbbb;
    white-space: nowrap;
    overflow: visible;
}

.editor-status {
    font-size: 0.78rem;
    font-weight: 500;
    flex-shrink: 0;
    color: transparent;
    transition: color 0.2s;
}

.editor-status--saving { color: rgba(0,0,0,0.35); }
.editor-status--saved  { color: #27ae60; }
.editor-status--error  { color: #e74c3c; }

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    background: #dddddd;
    border-radius: 0 0 16px 16px;
    margin: 0 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(0,0,0,0.6);
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.toolbar-btn:hover {
    background: rgba(0,0,0,0.07);
    color: #111111;
}

.toolbar-btn.active {
    background: rgba(0,0,0,0.12);
    color: #111111;
}

.toolbar-color {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0 6px;
    height: 30px;
    border-radius: 8px;
    transition: background 0.15s;
}
.toolbar-color:hover {
    background: rgba(0,0,0,0.07);
}
.toolbar-color-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: rgba(0,0,0,0.6);
    font-family: 'Nunito', sans-serif;
    pointer-events: none;
}
.toolbar-color-input {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.toolbar-color-input::-webkit-color-swatch-wrapper {
    padding: 1px;
}
.toolbar-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}
.toolbar-color-input::-moz-color-swatch {
    border: none;
    border-radius: 4px;
}

.toolbar-sep {
    width: 1px;
    height: 20px;
    background: rgba(0,0,0,0.15);
    margin: 0 4px;
}

.editor-area {
    flex: 1;
    overflow-y: auto;
    outline: none;
    color: #1a1a2e;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 40px 60px 60px;
    caret-color: #333333;
    width: 100%;
    background: #ffffff;
}

.editor-area::-webkit-scrollbar { width: 5px; }
.editor-area::-webkit-scrollbar-track { background: transparent; }
.editor-area::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 99px; }

.editor-area h1 { font-size: 1.9rem; font-weight: 700; margin: 24px 0 10px; color: #1a1a2e; }
.editor-area h2 { font-size: 1.4rem; font-weight: 700; margin: 20px 0 8px;  color: #1a1a2e; }
.editor-area h3 { font-size: 1.1rem; font-weight: 700; margin: 16px 0 6px;  color: #2e2e55; }
.editor-area p  { margin: 0 0 10px; color: #2c2c4a; }
.editor-area ul, .editor-area ol { padding-left: 24px; margin: 8px 0 14px; color: #2c2c4a; }
.editor-area li { margin-bottom: 5px; }
.editor-area strong { font-weight: 700; color: #1a1a2e; }
.editor-area em  { font-style: italic; color: #44445a; }
.editor-area u   { text-decoration: underline; }
.editor-area s   { text-decoration: line-through; opacity: 0.6; }

/* Images insérées dans l'éditeur */
.editor-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 12px 0;
    background: transparent;
    cursor: pointer;
    transition: outline 0.1s;
}

.editor-img.img-selected {
    outline: 2px solid #b0a0ff;
    outline-offset: 2px;
}

/* ── Image layout popup ───────────────────────────────────────────── */
.img-layout-popup {
    display: none;
    position: fixed;
    z-index: 400;
    background: #2e2e55;
    border: 1px solid rgba(176,160,255,0.3);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    min-width: 260px;
    user-select: none;
}
.img-layout-popup.visible { display: block; }

.img-layout-popup__title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
    padding: 0 2px;
}

.img-layout-options {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    justify-content: space-between;
}

.img-layout-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 6px 6px;
    cursor: pointer;
    flex: 1;
    transition: background 0.15s, border-color 0.15s;
    color: rgba(255,255,255,0.55);
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    text-align: center;
    line-height: 1.2;
}
.img-layout-opt:hover {
    background: rgba(176,160,255,0.15);
    border-color: rgba(176,160,255,0.4);
    color: #fff;
}
.img-layout-opt.active {
    background: rgba(176,160,255,0.22);
    border-color: #b0a0ff;
    color: #b0a0ff;
}
.img-layout-opt svg {
    display: block;
    flex-shrink: 0;
}

/* Alignment row */
.img-align-row {
    display: flex;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 2px;
}
.img-align-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.img-align-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.img-align-btn.active {
    background: rgba(176,160,255,0.2);
    border-color: #b0a0ff;
    color: #b0a0ff;
}

/* Boutons côté flottement */
.img-float-side-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.img-float-side-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.img-float-side-btn.active {
    background: rgba(176,160,255,0.2);
    border-color: #b0a0ff;
    color: #b0a0ff;
}

/* Margin row */
.img-margin-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 2px;
}
.img-margin-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    white-space: nowrap;
}
.img-margin-input {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #fff;
    font-size: 0.75rem;
    font-family: 'Nunito', sans-serif;
    padding: 3px 6px;
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
}
.img-margin-input:focus { border-color: #b0a0ff; }
.img-margin-unit {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
}

/* Overlay de redimensionnement */
.img-resize-overlay {
    display: none;
    position: fixed;
    z-index: 300;
    pointer-events: none;
    border: 2px solid #b0a0ff;
    border-radius: 4px;
    box-sizing: border-box;
}

.img-resize-overlay.visible {
    display: block;
}

.img-resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #b0a0ff;
    border: 2px solid #1b1b2f;
    border-radius: 2px;
    pointer-events: all;
    box-sizing: border-box;
}

/* Positionnement des 6 poignées */
.img-resize-handle[data-pos="nw"] { top: -6px;  left: -6px;  cursor: nw-resize; }
.img-resize-handle[data-pos="ne"] { top: -6px;  right: -6px; cursor: ne-resize; }
.img-resize-handle[data-pos="se"] { bottom: -6px; right: -6px; cursor: se-resize; }
.img-resize-handle[data-pos="sw"] { bottom: -6px; left: -6px;  cursor: sw-resize; }
.img-resize-handle[data-pos="w"]  { top: 50%; left: -6px;  transform: translateY(-50%); cursor: w-resize; }
.img-resize-handle[data-pos="e"]  { top: 50%; right: -6px; transform: translateY(-50%); cursor: e-resize; }

/* Label dimensions */
.img-resize-label {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(27,27,47,0.92);
    color: #b0a0ff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    font-family: 'Nunito', sans-serif;
}

/* Highlight des caractères insérés par un autre collaborateur */
@keyframes collab-flash {
    0%   { background: rgba(176, 160, 255, 0.5); border-radius: 2px; }
    100% { background: transparent; }
}
.collab-highlight {
    animation: collab-flash 0.8s ease-out forwards;
}

@media (max-width: 600px) {
    .editor-area {
        padding: 20px 16px 40px;
        background: #ffffff;
    }
}

/* ===== SHARE BUTTON ===== */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background-color: transparent;
    color: #111111;
    border: 1.5px solid #bbbbbb;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.share-btn svg {
    stroke: #111111;
}

.share-btn:hover {
    background-color: #bbbbbb;
    border-color: #bbbbbb;
}

/* ===== EXPORT BUTTON + DROPDOWN ===== */
.export-wrap {
    position: relative;
    flex-shrink: 0;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: #111111;
    border: 1.5px solid #111111;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: none;
}

.export-btn svg {
    stroke: #ffffff;
}

.export-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    background: #eeeeee;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 6px;
    min-width: 230px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    z-index: 400;
}

.export-dropdown.open {
    display: block;
}

.export-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #111111;
    font-size: 0.85rem;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    text-align: left;
    justify-content: flex-start;
    transition: background 0.12s;
}

.export-opt img {
    filter: brightness(0);
    flex-shrink: 0;
}

.export-opt:hover {
    background: #dddddd;
    color: #111111;
}

.export-sep {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 4px 0;
}

/* ===== SHARE MODAL ===== */
.share-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.share-modal.open {
    display: flex;
}

.share-modal__box {
    background: #2e2e55;
    border-radius: 16px;
    padding: 28px 24px;
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.share-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-modal__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.share-modal__close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    border-radius: 6px;
    transition: color 0.15s;
}

.share-modal__close:hover {
    color: #ffffff;
}

.share-modal__invite {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-input {
    flex: 1;
    background: #1b1b2f;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 9px 12px;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.share-input:focus {
    border-color: #b0a0ff;
}

.share-select {
    background: #1b1b2f;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 9px 10px;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
}

.share-invite-btn {
    padding: 9px 16px;
    background: #b0a0ff;
    color: #000;
    border: none;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.share-invite-btn:hover   { background: #9d8df5; }
.share-invite-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.share-feedback {
    font-size: 0.82rem;
    min-height: 18px;
    color: transparent;
}

.share-feedback--ok    { color: #7be0a0; }
.share-feedback--error { color: #ff7b7b; }

.share-loading {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 8px 0;
}

.share-modal__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.share-modal__list::-webkit-scrollbar { width: 4px; }
.share-modal__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }

.share-col-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
}

.share-col-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #5c5ca8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.share-col-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.share-col-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-col-email {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-col-role {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}

.role--editor { background: rgba(176,160,255,0.2); color: #b0a0ff; }
.role--viewer { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }

.share-col-remove {
    background: transparent;
    border: none;
    color: rgba(255,100,100,0.5);
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 6px;
    padding: 0 4px;
    transition: color 0.15s;
}

.share-col-remove:hover { color: #ff7b7b; }

.editor-status--sync { color: #b0a0ff; }

@media (max-width: 520px) {
    .share-modal__invite { flex-wrap: wrap; }
    .share-input { min-width: 0; }
}

/* ======================================================
   MODAL INSERTION D'IMAGE
   ====================================================== */
.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.img-modal.open {
    display: flex;
}

.img-modal__box {
    background: #2e2e55;
    border-radius: 16px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 90vh;
    overflow-y: auto;
}

.img-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.img-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.img-modal__close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 6px;
    transition: color 0.15s;
}
.img-modal__close:hover { color: #ffffff; }

/* Onglets */
.img-modal__tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 4px;
}

.img-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.55);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.img-tab--active {
    background: #b0a0ff;
    color: #1b1b2f;
}

/* Panneaux */
.img-panel--hidden { display: none; }

/* Zone drag-and-drop */
.img-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed rgba(176,160,255,0.35);
    border-radius: 12px;
    padding: 32px 20px;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
    position: relative;
}

.img-dropzone:hover,
.img-dropzone--over {
    border-color: #b0a0ff;
    background: rgba(176,160,255,0.08);
    color: rgba(255,255,255,0.8);
}

.img-dropzone svg {
    color: #b0a0ff;
    opacity: 0.75;
}

.img-dropzone small {
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
}

.img-file-hidden {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Ligne URL */
.img-url-row {
    display: flex;
    gap: 10px;
}

.img-url-field {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.875rem;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.15s;
    min-width: 0;
}

.img-url-field:focus { border-color: #b0a0ff; }
.img-url-field::placeholder { color: rgba(255,255,255,0.3); }

.img-url-btn {
    background: #b0a0ff;
    color: #1b1b2f;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.img-url-btn:hover { background: #c4b8ff; }
.img-url-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Prévisualisation */
.img-preview-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.img-preview-wrap--visible {
    display: flex;
}

.img-preview {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.img-insert-btn {
    background: #b0a0ff;
    color: #1b1b2f;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 10px 24px;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
    text-align: center;
}

.img-insert-btn:hover { background: #c4b8ff; }

/* Feedback */
.img-feedback {
    font-size: 0.82rem;
    min-height: 1.2em;
    text-align: center;
}

.img-feedback--error { color: #ff7b7b; }
.img-feedback--info  { color: rgba(255,255,255,0.5); }

/* ======================================================
   MOBILE BOTTOM NAV (base — hidden on desktop/tablet)
   ====================================================== */
.mobile-bottomnav {
    display: none;
}

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 199;
}

.sidebar-overlay.open {
    display: block;
}

/* ======================================================
   RESPONSIVE — max-width: 768px
   ====================================================== */
/* ===== TABLET : sidebar icônes uniquement ===== */
@media (min-width: 769px) and (max-width: 1024px) {

    .sidebar {
        width: 64px;
        padding: 16px 8px;
        align-items: center;
    }

    /* Logo : icône seule, centrée */
    .sidebar-logo {
        justify-content: center;
        padding: 10px 0;
        gap: 0;
    }

    .sidebar-logo span {
        display: none;
    }

    /* Nav : icônes centrées, pas de texte, pas de hover */
    .nav-btn {
        justify-content: center;
        padding: 10px;
        gap: 0;
    }

    .nav-btn:not(.active):hover {
        background-color: transparent;
    }

    /* Pas de hover sur premium et profil en tablette */
    .nav-btn--premium:hover {
        background-color: #ffc107 !important;
    }

    .nav-btn--profil:hover {
        background-color: transparent !important;
    }

    .nav-btn span {
        display: none;
    }

    .sidebar-bottom {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* Hide desktop sidebar */
    .sidebar { display: none; }

    /* Main content adds space for bottom nav */
    .main-content { padding-bottom: 84px; }

    /* Bottom nav */
    .mobile-bottomnav {
        display: flex;
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        height: 60px;
        background-color: #dddddd;
        border-radius: 16px;
        align-items: stretch;
        z-index: 100;
        padding: 4px;
        gap: 2px;
    }

    .mobile-bottomnav__item {
        flex: 1;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        text-decoration: none;
    }

    .mobile-bottomnav__item img {
        width: 22px;
        height: 22px;
        filter: brightness(0);
    }

    .mobile-bottomnav__item.active {
        background-color: #111111;
    }

    .mobile-bottomnav__item.active img {
        filter: brightness(0) invert(1);
    }

    /* Premium : fond transparent au repos, #ffc107 si actif (jamais #111111) */
    .mobile-bottomnav__item--premium {
        background-color: transparent;
    }

    .mobile-bottomnav__item--premium.active {
        background-color: #ffc107 !important;
    }

    .mobile-bottomnav__item--premium.active img {
        filter: brightness(0) !important;
    }

    /* Premium banner */
    .premium-banner {
        grid-template-columns: 1fr;
    }

    .premium-banner__right {
        padding: 4px 0;
    }

    .premium-banner__title {
        font-size: 1.15rem;
    }

    /* Stats rapides */
    .stats-wrap {
        padding: 12px;
        gap: 8px;
    }

    .stats-inner {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stats-card {
        padding: 12px 14px;
    }

    .stats-card__value {
        font-size: 1.5rem;
    }

    /* Dashboard hero */
    .dashboard-hero {
        margin: 12px 12px 0;
        padding: 28px 20px;
    }

    .dashboard-hero__title {
        font-size: 1.35rem;
    }

    .dashboard-hero__desc {
        font-size: 0.85rem;
    }

    .dashboard-hero__actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Document sections */
    .doc-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Docpage header */
    .docpage__header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px 16px 0;
    }

    .docpage__actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .docpage__search {
        max-width: 100%;
    }

    /* Folder create row */
    .folder-create-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    /* Editor: account for mobile topbar */
    .editor-wrapper {
        height: calc(100vh - 52px);
        margin-top: 52px;
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .editor-topbar {
        padding: 8px 12px 6px;
        gap: 6px;
        margin: 0;
        border-radius: 0;
    }

    .editor-docname {
        font-size: 0.9rem;
        min-width: 80px;
        max-width: 150px;
    }

    .editor-status {
        display: none;
    }

    .editor-back {
        width: 30px;
        height: 30px;
    }

    /* Share modal */
    .share-modal {
        margin: auto 12px;
        max-width: calc(100% - 24px);
    }
}

/* ======================================================
   RESPONSIVE — max-width: 480px (very small screens)
   ====================================================== */
@media (max-width: 480px) {

    .dashboard-hero__title {
        font-size: 1.15rem;
    }

    .dashboard-hero {
        padding: 20px 16px;
    }

    .docpage__header h1,
    .docpage__header h2 {
        font-size: 1.1rem;
    }

    .editor-docname {
        max-width: 110px;
        font-size: 0.85rem;
    }

    .folder-create-ok,
    .folder-create-cancel {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ===== PAGE PREMIUM ===== */

/* Plans toggle */
.plans-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.plans-toggle {
    display: inline-flex;
    background-color: #dddddd;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.plans-toggle__btn {
    padding: 6px 18px;
    border-radius: 9px;
    border: none;
    background: transparent;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111111;
    cursor: pointer;
    transition: background 0.18s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.plans-toggle__btn:not(.plans-toggle__btn--active):hover {
    background-color: #bbbbbb;
}

.plans-toggle__btn--active {
    background-color: #111111;
    color: #ffffff;
}

.plans-toggle__btn--active:hover {
    background-color: #111111;
}

.plans-toggle__save {
    background-color: #ffc107;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 100px;
}

.plans-toggle__btn--active .plans-toggle__save {
    background-color: #ffc107;
    color: #000;
}

/* Plans grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 0;
}

.plan-card {
    background-color: #dddddd;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-card--highlighted {
    border: none;
}

.plan-card__top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-card__crown img {
    width: 18px;
    height: 18px;
    filter: brightness(0);
    display: block;
}

.plan-card__tagline {
    font-size: 0.83rem;
    color: #666666;
    line-height: 1.5;
}

.plan-card__price-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
}

.plan-card__amount {
    font-size: 1.9rem;
    font-weight: 800;
    color: #111111;
    transition: opacity 0.15s;
}

.plan-card__period {
    font-size: 0.85rem;
    color: #666666;
}

/* Feature list */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.87rem;
}

.plan-feature--ok {
    color: #111111;
}

.plan-feature--no {
    color: rgba(17,17,17,0.38);
}

.plan-feature__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.plan-feature--ok .plan-feature__icon {
    filter: brightness(0) saturate(100%) invert(30%) sepia(60%) saturate(500%) hue-rotate(90deg);
}

.plan-feature--no .plan-feature__icon {
    filter: brightness(0) saturate(0%) opacity(35%);
}

/* Plan buttons */
.plan-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.15s;
}

.plan-card__btn--disabled {
    background-color: #dddddd;
    color: rgba(17,17,17,0.4);
    cursor: default;
}

.plan-card__btn--dark {
    background-color: #111111;
    color: #ffffff;
}

.plan-card__btn--gold {
    background-color: #ffc107;
    color: #000000;
}

.plan-card__btn--gold img {
    width: 16px;
    height: 16px;
    filter: brightness(0);
}

.plan-card__new {
    font-size: 0.68rem;
    font-weight: 700;
    background-color: #ffc107;
    color: #000000;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 4px;
    align-self: center;
}

/* Plans comparison table */
.plans-table-wrap {
    background-color: #dddddd;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 24px;
}

.plans-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
}

.plans-table thead tr {
    background-color: #aaaaaa;
}

.plans-table th {
    padding: 14px 20px;
    font-weight: 700;
    color: #111111;
    text-align: center;
}

.plans-table th.plans-table__feature-col {
    text-align: left;
}

.plans-table tbody tr:nth-child(odd) {
    background-color: #dddddd;
}

.plans-table tbody tr:nth-child(even) {
    background-color: #bbbbbb;
}

.plans-table td {
    padding: 12px 20px;
    color: #111111;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.07);
}

.plans-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.pt-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.pt-icon--ok {
    filter: brightness(0) saturate(100%) invert(30%) sepia(60%) saturate(500%) hue-rotate(90deg);
}

.pt-icon--no {
    filter: brightness(0) saturate(0%) opacity(35%);
}

.pt-val {
    font-weight: 700;
    color: #111111;
}

@media (max-width: 600px) {
    .plans-table th,
    .plans-table td {
        padding: 10px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 860px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .plans-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.premium-hero {
    background-image: linear-gradient(rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.2)),
                      url('../images/background_banner2.webp');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 80px 40px;
    margin: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.premium-hero__content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.premium-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffc107;
    color: #000000;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    width: fit-content;
}

.premium-hero__badge img {
    width: 14px;
    height: 14px;
    filter: brightness(0);
}

.premium-hero__title {
    font-size: 2rem;
    font-weight: 800;
    color: #111111;
    margin: 0;
    line-height: 1.25;
}

.premium-hero__desc {
    font-size: 0.95rem;
    color: rgba(17, 17, 17, 0.65);
    margin: 0;
    line-height: 1.6;
}

.premium-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* Boutons CTA Premium */
.premium-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.premium-cta:hover {
    opacity: 0.85;
}

.premium-cta--main {
    background-color: #ffc107;
    color: #000000;
}

.premium-cta--main img {
    width: 16px;
    height: 16px;
    filter: brightness(0);
}

.premium-cta--secondary {
    background-color: transparent;
    color: #111111;
    border: 1.5px solid #bbbbbb;
}

.premium-cta--secondary:hover {
    background-color: #dddddd;
    opacity: 1;
}

/* Plans */
.premium-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.premium-plan {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.premium-plan--highlighted {
    border: 2px solid #ffc107;
}

.premium-plan__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.premium-plan__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    width: fit-content;
}

.premium-plan__badge--free {
    background-color: #dddddd;
    color: #111111;
}

.premium-plan__badge--premium {
    background-color: #ffc107;
    color: #000000;
}

.premium-plan__badge--premium img {
    width: 13px;
    height: 13px;
    filter: brightness(0);
}

.premium-plan__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.premium-plan__amount {
    font-size: 2rem;
    font-weight: 800;
    color: #111111;
}

.premium-plan__period {
    font-size: 0.85rem;
    color: rgba(17,17,17,0.55);
}

.premium-plan__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.premium-plan__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #111111;
}

.premium-plan__feature--no {
    color: rgba(17,17,17,0.4);
}

.premium-plan__check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.premium-plan__check--ok {
    background-color: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
}

.premium-plan__check--no {
    background-color: rgba(17,17,17,0.08);
    color: rgba(17,17,17,0.35);
}

.premium-plan__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    width: 100%;
}

.premium-plan__btn--disabled {
    background-color: #dddddd;
    color: rgba(17,17,17,0.45);
    cursor: default;
}

.premium-plan__btn--premium {
    background-color: #ffc107;
    color: #000000;
}

.premium-plan__btn--premium img {
    width: 16px;
    height: 16px;
    filter: brightness(0);
}

.premium-plan__btn--premium:hover {
    opacity: 0.85;
}

/* Feature cards */
.premium-feature-card {
    gap: 12px;
}

.premium-feature-card__icon-wrap {
    width: 40px;
    height: 40px;
    background-color: #dddddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.premium-feature-card__icon-wrap .stats-card__icon {
    width: 22px;
    height: 22px;
}

.premium-feature-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
}

.premium-feature-card__desc {
    font-size: 0.83rem;
    color: rgba(17,17,17,0.6);
    line-height: 1.55;
    margin: 0;
}

/* CTA final */
.premium-cta-final {
    background: #dddddd;
    border-radius: 16px;
    margin: 24px 12px 12px;
    padding: 40px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-cta-final__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 520px;
}

.premium-cta-final__icon {
    width: 40px;
    height: 40px;
    filter: brightness(0);
}

.premium-cta-final__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111111;
    margin: 0;
}

.premium-cta-final__desc {
    font-size: 0.9rem;
    color: rgba(17,17,17,0.6);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .premium-plans {
        grid-template-columns: 1fr;
    }

    .premium-hero__title {
        font-size: 1.5rem;
    }

    .premium-hero {
        padding: 50px 24px;
    }
}

@media (max-width: 600px) {
    .premium-hero__title {
        font-size: 1.25rem;
    }

    .premium-hero__desc br {
        display: none;
    }

    .premium-hero {
        padding: 36px 16px;
    }

    .premium-cta-final {
        padding: 28px 16px;
    }

    .premium-cta-final__title {
        font-size: 1.1rem;
    }
}
