/* ===================================================
   Logistiparts — CGV — Charte : #ffffff / #ec8934 / #010101
   =================================================== */

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

:root {
        --bg:          #ffffff;
        --bg-alt:      #f8f6f3;
        --bg-card:     rgba(0, 0, 0, 0.028);
        --border:      rgba(0, 0, 0, 0.10);
        --border-alt:  rgba(0, 0, 0, 0.16);
        --black:       #010101;
        --accent:      #ec8934;
        --accent-dim:  rgba(236, 137, 52, 0.12);
        --accent-glow: rgba(236, 137, 52, 0.06);
        --text:        #010101;
        --text2:       #444444;
        --text3:       #888888;
        --radius:      10px;
        --radius-lg:   16px;
}

html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px;
}

body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        background: var(--bg);
        color: var(--text);
        min-height: 100vh;
        line-height: 1.6;
        font-size: 15px;
}

/* ---------- Background ---------- */
.bg-grid {
        position: fixed;
        inset: 0;
        background-image:
                linear-gradient(rgba(0,0,0,0.032) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0,0,0,0.032) 1px, transparent 1px);
        background-size: 60px 60px;
        z-index: 0;
        pointer-events: none;
}

.bg-glow {
        position: fixed;
        bottom: -200px;
        right: -200px;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(236,137,52,0.07) 0%, transparent 70%);
        z-index: 0;
        pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--black);
        border-bottom: 3px solid var(--accent);
}

.header-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
        height: 64px;
        display: flex;
        align-items: center;
        gap: 16px;
}

.logo-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        flex-shrink: 0;
}

.logo {
        height: 36px;
        width: auto;
        object-fit: contain;
}

.header-tag {
        flex: 1;
        font-size: 12px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.45);
        font-weight: 500;
}

.btn-print {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: rgba(236, 137, 52, 0.15);
        border: 1px solid rgba(236, 137, 52, 0.45);
        border-radius: var(--radius);
        color: var(--accent);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        transition: background 0.2s, border-color 0.2s;
        white-space: nowrap;
}

.btn-print:hover {
        background: rgba(236, 137, 52, 0.28);
        border-color: rgba(236, 137, 52, 0.65);
}

/* ---------- Hero ---------- */
.hero {
        position: relative;
        z-index: 1;
        text-align: center;
        padding: 72px 24px 56px;
        background: var(--black);
        border-bottom: 3px solid var(--accent);
}

.hero-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
}

.hero-logo {
        max-width: 320px;
        width: 100%;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 6px 28px rgba(236, 137, 52, 0.3));
}

.hero-baseline {
        font-size: 12px;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--accent);
        font-weight: 600;
}

.hero-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 4px;
}

.badge {
        display: inline-block;
        padding: 4px 14px;
        border: 1px solid rgba(236, 137, 52, 0.35);
        border-radius: 999px;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.65);
        background: rgba(236, 137, 52, 0.08);
        letter-spacing: 0.5px;
}

/* ---------- Main Layout ---------- */
.main-content {
        position: relative;
        z-index: 1;
        max-width: 1200px;
        margin: 0 auto;
        padding: 48px 24px 96px;
        background: var(--bg);
}

.layout {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 32px;
        align-items: start;
}

/* ---------- TOC (Sidebar) ---------- */
.toc {
        position: sticky;
        top: 80px;
}

.toc-inner {
        background: var(--bg-alt);
        border: 1px solid var(--border);
        border-left: 3px solid var(--accent);
        border-radius: var(--radius-lg);
        padding: 24px;
}

.toc-title {
        font-size: 10px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text3);
        font-weight: 700;
        margin-bottom: 14px;
}

.toc-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 2px;
}

.toc-list a {
        display: block;
        font-size: 14px;
        color: var(--text2);
        text-decoration: none;
        padding: 5px 8px;
        border-radius: 6px;
        transition: color 0.2s, background 0.2s;
        line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.active {
        color: var(--accent);
        background: var(--accent-dim);
}

.toc-update {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        gap: 2px;
}

.toc-update span {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text3);
}

.toc-update strong {
        font-size: 12px;
        color: var(--text);
}

/* ---------- CGV Body ---------- */
.cgv-body {
        min-width: 0;
}

.cgv-header {
        margin-bottom: 40px;
        padding-bottom: 28px;
        border-bottom: 2px solid var(--accent);
}

h1 {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.5px;
        color: var(--black);
        margin-bottom: 16px;
}

.cgv-intro {
        font-size: 15px;
        color: var(--text2);
        line-height: 1.75;
        max-width: 680px;
}

/* ---------- Articles ---------- */
.cgv-articles {
        display: flex;
        flex-direction: column;
}

.cgv-article {
        padding: 32px 0;
        border-bottom: 1px solid var(--border);
}

.cgv-article:last-child {
        border-bottom: none;
}

h2 {
        display: flex;
        align-items: baseline;
        gap: 12px;
        font-size: 17px;
        font-weight: 700;
        color: var(--black);
        margin-bottom: 16px;
}

.art-num {
        font-size: 10px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #fff;
        background: var(--accent);
        padding: 3px 10px;
        border-radius: 4px;
        font-weight: 700;
        white-space: nowrap;
        flex-shrink: 0;
}

p {
        font-size: 15px;
        line-height: 1.75;
        color: var(--text2);
        margin-bottom: 12px;
}

p:last-child {
        margin-bottom: 0;
}

ul {
        margin: 12px 0 16px 0;
        padding-left: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 8px;
}

ul li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 15px;
        color: var(--text2);
        line-height: 1.6;
}

ul li::before {
        content: "—";
        color: var(--accent);
        flex-shrink: 0;
        font-weight: 700;
        margin-top: 1px;
}

/* Services list */
.services-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 16px 0;
}

.services-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        background: var(--bg);
        border: 1px solid var(--border);
        border-left: 3px solid var(--accent);
        border-radius: var(--radius);
        padding: 14px 16px;
        font-size: 14px;
        line-height: 1.5;
}

.services-list li::before {
        display: none;
}

.service-icon {
        font-size: 20px;
        flex-shrink: 0;
        line-height: 1;
        margin-top: 1px;
}

.services-list strong {
        color: var(--black);
        display: block;
        margin-bottom: 2px;
        font-size: 14px;
}

/* Definitions */
.definitions {
        display: flex;
        flex-direction: column;
}

.definitions dt {
        font-size: 14px;
        font-weight: 700;
        color: var(--black);
        margin-top: 16px;
        margin-bottom: 4px;
}

.definitions dt:first-child {
        margin-top: 0;
}

.definitions dd {
        font-size: 14px;
        color: var(--text2);
        padding-left: 16px;
        border-left: 2px solid var(--accent);
        line-height: 1.65;
}

/* Responsabilité grid */
.resp-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin: 16px 0;
}

.resp-card {
        background: var(--bg);
        border: 1px solid var(--border);
        border-top: 3px solid var(--accent);
        border-radius: var(--radius);
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 4px;
}

.resp-card strong {
        font-size: 13px;
        font-weight: 700;
        color: var(--black);
}

.resp-card span {
        font-size: 11px;
        color: var(--accent);
        font-weight: 600;
}

.resp-card small {
        font-size: 11px;
        color: var(--text3);
        margin-top: 4px;
}

/* Footer note */
.cgv-footer-note {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-top: 40px;
        padding: 16px 20px;
        background: var(--accent-glow);
        border: 1px solid rgba(236, 137, 52, 0.22);
        border-radius: var(--radius);
        font-size: 13px;
        color: var(--text3);
        line-height: 1.6;
}

.cgv-footer-note svg {
        flex-shrink: 0;
        color: var(--accent);
        margin-top: 1px;
}

/* ---------- Site Footer ---------- */
.site-footer {
        position: relative;
        z-index: 1;
        background: var(--black);
        border-top: 3px solid var(--accent);
        padding: 48px 24px;
        text-align: center;
}

.footer-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
}

.footer-logo {
        height: 32px;
        width: auto;
        object-fit: contain;
        margin-bottom: 4px;
        opacity: 0.85;
}

.site-footer p {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.45);
        margin: 0;
}

.footer-sub {
        font-size: 11px !important;
        letter-spacing: 1px;
        opacity: 0.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
        .layout {
                grid-template-columns: 1fr;
        }

        .toc {
                position: static;
                order: -1;
        }

        .toc-list {
                display: grid;
                grid-template-columns: 1fr 1fr;
        }

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

        .services-list {
                grid-template-columns: 1fr;
        }
}

@media (max-width: 600px) {
        .header-tag {
                display: none;
        }

        .hero {
                padding: 48px 16px 40px;
        }

        .hero-logo {
                max-width: 220px;
        }

        .main-content {
                padding: 32px 16px 64px;
        }

        h1 {
                font-size: 22px;
        }

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

        .toc-list {
                grid-template-columns: 1fr;
        }

        .cgv-article {
                padding: 24px 0;
        }
}

/* ---------- Print ---------- */
@media print {
        .bg-grid,
        .bg-glow,
        .btn-print,
        .toc {
                display: none !important;
        }

        body {
                background: white;
                color: black;
                font-size: 13px;
        }

        .site-header {
                position: static;
                background: white;
                border-bottom: 2px solid #ec8934;
        }

        .logo { height: 40px; }
        .header-tag { color: #666; }

        .hero {
                background: white;
                border-bottom: 2px solid #ec8934;
                padding: 24px;
        }

        .hero-logo { max-width: 200px; filter: none; }
        .hero-baseline { color: #ec8934; }
        .badge { color: #333; border-color: #ccc; background: #f5f5f5; }

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

        h1, h2 { color: black; }
        p, li { color: #333; }

        .services-list li {
                background: #fafafa;
                border-color: #ddd;
                border-left-color: #ec8934;
        }

        .resp-card {
                background: #fafafa;
                border-color: #ddd;
                border-top-color: #ec8934;
        }

        .cgv-footer-note {
                background: #fff8f0;
                border-color: #fcd9b0;
                color: #666;
        }

        .site-footer {
                background: white;
                border-top: 2px solid #ec8934;
        }

        .site-footer p { color: #555; }

        .cgv-article { break-inside: avoid; }
}
