/* Documentation HolyCloud (contenu intégré au layout site) */

.doc-layout {
    background: #f8fafc;
    padding: 2rem 0 4rem;
    min-height: 50vh;
}

/* ——— Page d'accueil documentation ——— */
.doc-index-hero {
    background: linear-gradient(160deg, #18316a 0%, #1e3a5f 100%);
    padding: 3.25rem 0 3rem;
    color: #fff;
}

.doc-index-hero__badge {
    display: inline-block;
    background: #fff;
    color: #18316a;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    margin-bottom: 1.25rem;
}

.doc-index-hero__title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.doc-index-hero__lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 1.75rem;
}

.doc-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.doc-search__icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

.doc-search__input {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 1rem 1.25rem 1rem 3rem;
    font-size: 1rem;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.doc-search__input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.doc-search__input::placeholder {
    color: #94a3b8;
}

.doc-index-body {
    background: #f1f5f9;
    padding: 2.5rem 0 4rem;
}

.doc-index-block {
    margin-bottom: 2.75rem;
}

.doc-index-block:last-child {
    margin-bottom: 0;
}

.doc-index-block__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 1.25rem;
}

.doc-index-no-results {
    text-align: center;
    color: #64748b;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.doc-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.doc-theme-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.doc-theme-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.doc-theme-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    background: #f1f5f9;
    color: #475569;
}

.doc-theme-card__icon--vps-linux { background: #f8fafc; color: #334155; }
.doc-theme-card__icon--vps-performance { background: #f8fafc; color: #475569; }
.doc-theme-card__icon--serveurs-dedies { background: #f8fafc; color: #475569; }
.doc-theme-card__icon--vps-windows { background: #f8fafc; color: #475569; }
.doc-theme-card__icon--hebergement-web { background: #f8fafc; color: #475569; }
.doc-theme-card__icon--reseau-datacenter { background: #f8fafc; color: #475569; }

.doc-theme-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.doc-theme-card__desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.doc-theme-card__link {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
}

.doc-articles-grid--index {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.doc-article-card--index {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.doc-article-card--index:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
    transform: none;
}

.doc-index-sitemap-hint {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

.doc-index-sitemap-hint a {
    color: #2563eb;
    text-decoration: none;
}

.doc-index-sitemap-hint a:hover {
    text-decoration: underline;
}

.doc-category-page {
    background: #f1f5f9;
    padding: 2.5rem 0 4rem;
}

.doc-category-page .doc-breadcrumb {
    margin-bottom: 1.25rem;
}

.doc-category-card-premium {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.doc-category-card-premium .doc-category-card__count {
    display: inline-flex;
    align-items: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hc-primary, #2563eb);
}

.doc-breadcrumb {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.doc-breadcrumb a {
    color: #0056B3;
    text-decoration: none;
}

.doc-breadcrumb a:hover {
    text-decoration: underline;
}

.doc-breadcrumb span {
    margin: 0 0.35rem;
}

/* Article */
.doc-article-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

.doc-article-main {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 2rem 2.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.doc-article-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.doc-article-lead {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.doc-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
}

.doc-article-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 1rem;
    scroll-margin-top: 100px;
}

.doc-article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin: 1.5rem 0 0.75rem;
    scroll-margin-top: 100px;
}

.doc-article-body p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.doc-article-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 1rem 0 1.5rem;
}

.doc-article-body code.doc-inline-code {
    background: #f1f5f9;
    color: #be123c;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.88em;
}

.doc-article-body .doc-quote {
    border-left: 4px solid #0056B3;
    background: #f0f9ff;
    padding: 1rem 1.25rem;
    border-radius: 0 12px 12px 0;
    margin: 1.25rem 0;
}

.doc-article-body .doc-list {
    margin: 0 0 1.25rem 1.25rem;
    color: #475569;
    line-height: 1.7;
}

.doc-article-body .doc-link {
    color: #0056B3;
}

/* TOC sidebar */
.doc-toc {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
}

.doc-toc__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 1rem;
}

.doc-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-toc__list a {
    display: block;
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: #475569;
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

.doc-toc__list a:hover,
.doc-toc__list a.is-active {
    color: #0056B3;
    border-left-color: #0056B3;
    background: #f0f9ff;
}

.doc-toc__list li.level-3 a {
    padding-left: 1.25rem;
    font-size: 0.82rem;
}

.doc-toc__top {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #0056B3;
    text-decoration: none;
}

/* En-tête catégorie (fond clair, compact) */
.doc-category-hero {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.doc-category-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 0.65rem;
}

.doc-category-hero__desc {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.55;
    max-width: 720px;
    margin: 0;
}

.doc-category-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.55rem 1.15rem;
    background: var(--hc-primary, #2563eb);
    color: #fff;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.doc-category-hero__cta:hover {
    background: var(--hc-secondary, #18316a);
    color: #fff;
    transform: translateY(-1px);
}

.doc-category-count {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.doc-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.doc-article-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.doc-article-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(0, 86, 179, 0.1);
}

.doc-article-card--premium {
    border-radius: var(--hc-radius, 24px);
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-article-card--premium:hover {
    transform: translateY(-8px);
    border-color: var(--hc-primary, #2563eb);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
}

.doc-article-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.doc-article-card__date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.doc-article-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.doc-article-card__desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    flex: 1;
}

.doc-article-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.doc-article-card__arrow {
    color: #0056B3;
    font-size: 1rem;
}

/* Suite de la lecture (prev / next) */
.doc-reading {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.doc-reading__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.doc-reading__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 99px;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
}

.doc-reading__line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.doc-reading__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .doc-reading__grid {
        grid-template-columns: 1fr;
    }
}

.doc-reading__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.35rem 1rem;
    text-decoration: none;
    color: inherit;
    min-height: 140px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.doc-reading__card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.doc-reading__card--empty {
    visibility: hidden;
    pointer-events: none;
    border: none;
    background: transparent;
    box-shadow: none;
}

.doc-reading__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.doc-reading__card--prev .doc-reading__card-top {
    flex-direction: row;
}

.doc-reading__card--next .doc-reading__card-top {
    flex-direction: row;
}

.doc-reading__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
}

.doc-reading__arrow-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 8px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.doc-reading__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 auto;
    flex: 1;
}

.doc-reading__cta {
    display: block;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.doc-reading__card:hover .doc-reading__cta {
    color: #2563eb;
}

.doc-reading__card--next {
    text-align: right;
}

.doc-reading__card--next .doc-reading__title {
    text-align: right;
}

/* Levels */
.doc-level {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.doc-level--beginner {
    background: #d1fae5;
    color: #047857;
}

.doc-level--intermediate {
    background: #ffedd5;
    color: #c2410c;
}

.doc-level--advanced {
    background: #fee2e2;
    color: #b91c1c;
}

.doc-tag {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-right: 0.35rem;
}

/* Index categories (legacy grid — conservé pour carousel) */
.doc-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.doc-category-card__count {
    font-weight: 600;
    color: var(--hc-primary, #2563eb);
}

/* Carousel (offer pages) */
.doc-carousel-section {
    background: #fff;
    padding: 4rem 0;
}

.doc-carousel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.doc-carousel-nav {
    display: flex;
    gap: 0.5rem;
}

.doc-carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}

.doc-carousel-btn:hover {
    border-color: #0056B3;
    color: #0056B3;
}

.doc-carousel-track-wrap {
    overflow: hidden;
}

.doc-carousel-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.doc-carousel-track::-webkit-scrollbar {
    display: none;
}

.doc-card-mini {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.35rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.doc-card-mini__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.doc-card-mini__icon {
    color: #94a3b8;
    font-size: 1.1rem;
}

.doc-card-mini__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.doc-card-mini__desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-card-mini__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0056B3;
    text-decoration: none;
}

.doc-view-all {
    font-weight: 600;
    color: #0056B3;
    text-decoration: none;
}

@media (max-width: 991px) {
    .doc-article-wrap {
        grid-template-columns: 1fr;
    }
    .doc-toc {
        position: static;
        order: -1;
    }
}

@media (max-width: 576px) {
    .doc-article-main {
        padding: 1.25rem;
    }
}
