/* Styles spécifiques pour les Guides & Articles Slice (inspiré de Shine.fr) */

/* Offset global pour les ancres (#) sous la navbar fixed/blurred */
html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 100px;
}

.guide-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 120px 24px 80px 24px;
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1.0625rem;
}

/* Breadcrumbs */
.guide-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.guide-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.guide-breadcrumb a:hover {
    color: var(--primary);
}

.guide-breadcrumb span.sep {
    color: #C0BEBA;
}

/* Header & Meta */
.guide-header {
    margin-bottom: 40px;
}

.guide-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #EFEFEA;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.guide-header h1 {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin: 0 0 16px 0;
}

.guide-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.guide-meta .author-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.guide-meta .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1E1912;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* En bref / TL;DR Box (Inspiré Shine / IA Friendly) */
.guide-tldr {
    background: #FFF9E6;
    border: 1px solid #FFE082;
    border-left: 5px solid #FFB300;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0 40px 0;
}

.guide-tldr-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    color: #5D4037;
    margin-bottom: 12px;
}

.guide-tldr ul {
    margin: 0;
    padding-left: 20px;
    color: #4E342E;
}

.guide-tldr li {
    margin-bottom: 8px;
}

.guide-tldr li:last-child {
    margin-bottom: 0;
}

/* Table of Contents */
.guide-toc {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 24px;
    margin: 32px 0 48px 0;
}

.guide-toc-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-main);
}

.guide-toc ol,
.guide-toc ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.guide-toc li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.guide-toc li:last-child {
    margin-bottom: 0;
}

.guide-toc a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.guide-toc a:hover {
    color: #38A1F3;
    text-decoration: underline;
}

/* Content formatting */
.guide-content h2 {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 56px 0 20px 0;
    padding-top: 16px;
    color: var(--text-main);
    border-top: 1px solid #EBEBEA;
}

.guide-content h2:first-of-type {
    border-top: none;
    margin-top: 24px;
}

.guide-content h3 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 32px 0 14px 0;
    color: var(--text-main);
}

.guide-content p {
    margin: 0 0 20px 0;
    color: #2D2721;
}

.guide-content ul, .guide-content ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.guide-content li {
    margin-bottom: 10px;
}

.guide-content strong {
    font-weight: 700;
    color: var(--text-main);
}

/* Callout boxes */
.guide-callout {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 22px;
    margin: 28px 0;
    font-size: 1rem;
}

.guide-callout-notaire {
    background: #F4F7FB;
    border: 1px solid #D2E3FC;
    border-left: 4px solid #38A1F3;
    border-radius: 10px;
    padding: 22px 24px;
    margin: 32px 0;
}

.guide-callout-notaire .callout-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1967D2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.guide-callout-warning {
    background: #FDF4F4;
    border: 1px solid #FCDAD7;
    border-left: 4px solid #FF5252;
    border-radius: 10px;
    padding: 20px 22px;
    margin: 28px 0;
}

/* Modern Clean Tables (Shine style) */
.guide-table-wrapper {
    overflow-x: auto;
    margin: 32px 0;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: #FFFFFF;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.guide-table th {
    background: #F4F4F2;
    padding: 14px 18px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--surface-border);
}

.guide-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--surface-border);
    vertical-align: top;
}

.guide-table tr:last-child td {
    border-bottom: none;
}

/* Steps block */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
}

.guide-step-card {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 22px 26px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.guide-step-num,
.guide-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--text-main);
    color: #FFF;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-step-body h3,
.guide-step-body h4 {
    margin: 0 0 6px 0;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
}

.guide-step-body p {
    margin: 0;
    font-size: 0.975rem;
    color: #4A4742;
}

/* CTA Card */
.guide-cta-card {
    background: #1E1912;
    color: #FFFFFF;
    border-radius: 16px;
    padding: 36px 32px;
    margin: 56px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guide-cta-card h3 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 12px 0;
}

.guide-cta-card p {
    color: #C0BEBA;
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 24px auto;
}

.guide-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.guide-cta-card .btn-light {
    background: #FFFFFF;
    color: #1E1912;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.15s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.guide-cta-card .btn-light:hover {
    transform: translateY(-2px);
    background: #F0F0EE;
}

/* Simulateur Fiscal Interactif (Guides) */
.guide-simulator {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    padding: 28px 32px;
    margin: 36px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.sim-header {
    margin-bottom: 24px;
}

.sim-header h3 {
    margin: 0 0 6px 0;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}

.sim-header p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.sim-controls {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 28px;
}

.sim-field label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.sim-field .sim-val-display {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1E1912;
    background: #F4F4F2;
    padding: 2px 10px;
    border-radius: 8px;
}

.sim-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #E8E8E7;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.sim-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text-main);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s;
}

.sim-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.sim-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text-main);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sim-segmented {
    display: flex;
    background: #F4F4F2;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.sim-seg-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.sim-seg-btn.active {
    background: #FFFFFF;
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sim-results {
    background: #F8F8F7;
    border-radius: 14px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
}

.sim-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sim-col-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sim-col-val {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.sim-highlight-col {
    grid-column: 1 / -1;
    background: #E8F5E9;
    border: 1px solid #C8E6C9;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.sim-saving-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2E7D32;
}

.sim-saving-val {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1B5E20;
}

@media (max-width: 600px) {
    .guide-simulator {
        padding: 20px 16px;
    }
    .sim-results {
        grid-template-columns: 1fr;
    }
    .sim-highlight-col {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Sources en bas de page */
.guide-sources {
    background: #F4F4F2;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 48px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.guide-sources-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    margin-top: 6px;
}

.guide-sources a {
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.2s;
}

.guide-sources a:hover {
    color: var(--text-main);
}

.guide-sources .bullet-sep {
    color: #B0AEA8;
}

@media (max-width: 768px) {
    .guide-wrapper {
        padding: 90px 18px 60px 18px;
    }
    .guide-step-card {
        flex-direction: column;
        gap: 12px;
    }
    .guide-cta-card {
        padding: 28px 20px;
    }
}

/* =========================================================
   HUB GUIDES & RESSOURCES (Inspiration Shine.fr)
   ========================================================= */

.guides-hub-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 120px 24px 80px 24px;
    color: var(--text-main);
}

.hub-header {
    margin-bottom: 36px;
}

.hub-header h1 {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin: 12px 0 16px 0;
}

.hub-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.hub-scope-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    background: #F8F7F4;
    border: 1px solid #E5E4DF;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4A463F;
    max-width: 820px;
}

.hub-scope-note .scope-icon {
    font-size: 1.05rem;
    line-height: 1.3;
    flex-shrink: 0;
}

/* Filter Pills */
.hub-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 32px 0 44px 0;
}

.hub-filter-pill {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 100px;
    padding: 8px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.hub-filter-pill:hover {
    color: var(--text-main);
    border-color: #C0BEBA;
}

.hub-filter-pill.active {
    background: var(--text-main);
    color: #FFFFFF;
    border-color: var(--text-main);
}

/* Section Title */
.hub-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.hub-section-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hub-section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Outils & Simulateurs Grid */
.hub-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 56px;
}

.hub-tool-card {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.hub-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07);
    border-color: #CBC9C4;
}

.hub-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.hub-tool-badge.badge-simulator {
    background: #FFF4D9;
    color: #8C5B00;
}

.hub-tool-badge.badge-template {
    background: #E8F5E9;
    color: #1B5E20;
}

.hub-tool-badge.badge-legal {
    background: #E3F2FD;
    color: #0D47A1;
}

.hub-tool-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text-main);
    margin: 0 0 10px 0;
}

.hub-tool-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0 0 20px 0;
}

.hub-tool-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: auto;
    transition: gap 0.2s ease;
}

.hub-tool-card:hover .hub-tool-cta {
    gap: 10px;
}

/* Articles & Guides Grid */
.hub-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 24px;
}

.hub-article-card {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.hub-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #CBC9C4;
}

.hub-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hub-category-tag {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: #F1F0EB;
    color: var(--text-main);
}

.hub-article-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--text-main);
    margin: 0 0 10px 0;
}

.hub-article-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 18px 0;
}

.hub-article-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1E1912;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.hub-article-card:hover .hub-article-link {
    gap: 10px;
}

@media (max-width: 768px) {
    .guides-hub-wrapper {
        padding: 90px 18px 60px 18px;
    }
    .hub-header h1 {
        font-size: 2rem;
    }
    .hub-tools-grid,
    .hub-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   BANDEAU JAUNE STYLE SHINE (Injecté via SliceFooter)
   ========================================================= */

/* Masquage automatique de l'ancienne carte noire codée en dur */
.guide-cta-card {
    display: none !important;
}

.slice-yellow-banner {
    max-width: 1140px;
    margin: 40px auto 70px auto;
    padding: 48px 48px;
    background: #FFDD33;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: #1E1912;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.slice-yellow-banner-visual {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slice-banner-phones-duo {
    position: relative;
    width: 240px;
    height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slice-yellow-banner-phone {
    width: 145px;
    height: auto;
    border-radius: 18px;
    border: 4px solid #1E1912;
    box-shadow: 0 16px 36px rgba(30, 25, 18, 0.22);
    position: absolute;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
}

.slice-yellow-banner-phone.phone-back {
    left: 4px;
    top: 14px;
    transform: rotate(-9deg);
    z-index: 1;
}

.slice-yellow-banner-phone.phone-front {
    right: 4px;
    top: 0;
    transform: rotate(5deg);
    z-index: 2;
}

.slice-yellow-banner:hover .slice-yellow-banner-phone.phone-back {
    transform: rotate(-13deg) translate(-6px, -4px);
}

.slice-yellow-banner:hover .slice-yellow-banner-phone.phone-front {
    transform: rotate(8deg) translate(6px, -2px);
}

.slice-yellow-banner-content {
    flex: 1;
    max-width: 660px;
}

.slice-yellow-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 25, 18, 0.1);
    color: #1E1912;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.slice-yellow-banner-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(1.85rem, 3.4vw, 2.7rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #1E1912;
    margin: 0 0 14px 0;
}

.slice-yellow-banner-desc {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(30, 25, 18, 0.88);
    margin: 0 0 24px 0;
}

.slice-yellow-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1E1912;
    color: #FFFFFF !important;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(30, 25, 18, 0.18);
}

.banner-store-btn:hover {
    background: #3B362F;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 25, 18, 0.25);
    color: #FFFFFF !important;
}

@media (max-width: 820px) {
    .slice-yellow-banner {
        flex-direction: column-reverse;
        text-align: center;
        padding: 36px 20px;
        margin: 40px 16px 50px 16px;
    }
    .slice-yellow-banner-actions {
        justify-content: center;
    }
    .slice-yellow-banner-phone {
        width: 145px;
        transform: rotate(0deg);
    }
}

/* =========================================================
   FEUILLE DE GRILLE D'INVENTAIRE IMPRIMABLE (Format A4)
   ========================================================= */

.printable-sheet-wrapper {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 32px 28px;
    margin: 28px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.printable-sheet-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--surface-border);
    flex-wrap: wrap;
    gap: 12px;
}

.btn-print-template {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1E1912;
    color: #FFFFFF !important;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-print-template:hover {
    background: #3B362F;
    transform: translateY(-2px);
}

.template-header-fields {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px 20px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.template-field-full {
    grid-column: 1 / -1;
}

.template-field-label {
    font-weight: 700;
    color: var(--text-main);
    margin-right: 6px;
}

.template-field-line {
    border-bottom: 1px dotted #A09E99;
    display: inline-block;
    width: 65%;
    vertical-align: bottom;
    height: 1.2em;
}

.template-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    border: 1px solid #D0CECA;
}

.template-table th {
    background: #F1F0EB;
    color: #1E1912;
    font-weight: 700;
    padding: 10px 8px;
    border: 1px solid #D0CECA;
    text-align: left;
    font-size: 0.8125rem;
}

.template-table td {
    padding: 8px 8px;
    border: 1px solid #D0CECA;
    height: 38px;
}

.template-row-example td {
    color: #C0BEBA !important;
    font-style: italic;
    font-size: 0.85rem;
    user-select: none;
}

/* Print Stylesheet for direct printing */
@media print {
    body * {
        visibility: hidden;
    }
    .printable-sheet-wrapper, .printable-sheet-wrapper * {
        visibility: visible;
    }
    .printable-sheet-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }
    .printable-sheet-actions {
        display: none !important;
    }
    .template-row-example td {
        color: #D5D3CF !important;
    }
}




