﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Public privacy policy (User/Confidentialite). Standalone: loads no other app stylesheet. */

:root {
    --pp-teal: #008aad;
    --pp-teal-dark: #0f728b;
    --pp-teal-tint: #e6f4f8;
    --pp-bg: #f5fbfc;
    --pp-surface: #ffffff;
    --pp-text: #18181b;
    --pp-text-soft: #3f3f46;
    --pp-muted: #63636b;
    --pp-border: #e4e4e7;
    --pp-header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--pp-bg);
    color: var(--pp-text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: var(--pp-teal-dark);
    text-underline-offset: 2px;
}

    a:hover {
        color: var(--pp-text);
    }

    a:focus-visible,
    summary:focus-visible {
        outline: 3px solid rgba(0, 138, 173, 0.45);
        outline-offset: 2px;
        border-radius: 4px;
    }

.pp-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10;
    padding: 8px 14px;
    background: var(--pp-surface);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

    .pp-skip:focus {
        top: 12px;
    }

/* Header */
.pp-header {
    position: sticky;
    top: 0;
    z-index: 5;
    height: var(--pp-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 max(24px, calc((100% - 1120px) / 2));
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--pp-border);
}

.pp-header__brand img {
    display: block;
    width: 150px;
    height: auto;
}

.pp-header__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--pp-border);
    border-radius: 999px;
    background: var(--pp-surface);
    color: var(--pp-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease;
}

    .pp-header__back:hover {
        border-color: var(--pp-teal);
        color: var(--pp-teal-dark);
    }

/* Layout */
.pp-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 24px 24px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

/* Table of contents: a sticky rail here, a collapsed block below 900px. */
.pp-toc {
    position: sticky;
    top: calc(var(--pp-header-h) + 24px);
    max-height: calc(100vh - var(--pp-header-h) - 48px);
    overflow-y: auto;
}

    .pp-toc summary {
        list-style: none;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--pp-muted);
        margin-bottom: 10px;
        pointer-events: none;
    }

        .pp-toc summary::-webkit-details-marker {
            display: none;
        }

    .pp-toc ol {
        list-style: none;
        counter-reset: toc;
        margin: 0;
        padding: 0;
        border-left: 2px solid var(--pp-border);
    }

    .pp-toc li {
        counter-increment: toc;
    }

    .pp-toc a {
        display: flex;
        gap: 8px;
        margin-left: -2px;
        padding: 6px 12px;
        border-left: 2px solid transparent;
        color: var(--pp-muted);
        font-size: 14px;
        line-height: 1.4;
        text-decoration: none;
        transition: color 0.15s ease, border-color 0.15s ease;
    }

        .pp-toc a::before {
            content: counter(toc) ".";
            min-width: 1.5em;
            font-variant-numeric: tabular-nums;
        }

        .pp-toc a:hover {
            color: var(--pp-text);
        }

        .pp-toc a[aria-current] {
            color: var(--pp-teal-dark);
            border-left-color: var(--pp-teal);
            font-weight: 500;
        }

/* Document */
.pp-doc {
    max-width: 72ch;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    padding: 48px 56px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    scroll-margin-top: calc(var(--pp-header-h) + 16px);
}

    .pp-doc:focus {
        outline: none;
    }

    .pp-doc h1 {
        margin: 0;
        font-size: 32px;
        line-height: 1.2;
        font-weight: 600;
        letter-spacing: -0.01em;
    }

.pp-updated {
    display: inline-block;
    margin: 12px 0 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--pp-teal-tint);
    color: var(--pp-teal-dark);
    font-size: 13px;
    font-weight: 500;
}

.pp-doc section {
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--pp-border);
    scroll-margin-top: calc(var(--pp-header-h) + 16px);
}

.pp-doc h2 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
}

.pp-num {
    color: var(--pp-teal);
    margin-right: 4px;
}

.pp-doc h3 {
    margin: 20px 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.pp-doc p,
.pp-doc li {
    color: var(--pp-text-soft);
}

.pp-doc p {
    margin: 0 0 12px;
}

.pp-doc ul {
    margin: 0 0 12px;
    padding-left: 22px;
}

.pp-doc li {
    margin-bottom: 6px;
}

    .pp-doc li::marker {
        color: var(--pp-teal);
    }

.pp-contact {
    font-style: normal;
    color: var(--pp-text-soft);
    padding: 16px 20px;
    background: var(--pp-bg);
    border-radius: 10px;
    line-height: 1.8;
}

    .pp-contact strong {
        color: var(--pp-text);
    }

.pp-ack {
    margin-top: 32px !important;
    padding-top: 24px;
    border-top: 1px solid var(--pp-border);
    font-size: 14px;
    font-style: italic;
}

.pp-top {
    margin: 0 !important;
    font-size: 14px;
}

/* Column 2, same width as the document card, so the line centres under it. */
.pp-footer {
    grid-column: 2;
    max-width: 72ch;
    text-align: center;
    padding: 0 0 32px;
}

    .pp-footer p {
        margin: 0;
        color: var(--pp-muted);
        font-size: 12px;
    }

/* Phone and narrow tablet: one column, the contents fold into a "Sommaire" block. */
@media (max-width: 899px) {
    :root {
        --pp-header-h: 60px;
    }

    .pp-header {
        padding: 0 16px;
    }

    .pp-header__brand img {
        width: 112px;
    }

    .pp-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 16px 16px 8px;
    }

    .pp-toc {
        position: static;
        max-height: none;
        overflow: visible;
    }

        .pp-toc details {
            background: var(--pp-surface);
            border: 1px solid var(--pp-border);
            border-radius: 12px;
        }

        .pp-toc summary {
            pointer-events: auto;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 48px;
            margin: 0;
            padding: 0 16px;
            font-size: 15px;
            letter-spacing: 0;
            text-transform: none;
            color: var(--pp-text);
            font-weight: 600;
        }

            .pp-toc summary::after {
                content: "";
                width: 8px;
                height: 8px;
                border-right: 2px solid var(--pp-muted);
                border-bottom: 2px solid var(--pp-muted);
                transform: rotate(45deg) translateY(-2px);
                transition: transform 0.2s ease;
            }

        .pp-toc details[open] summary::after {
            transform: rotate(-135deg) translateY(-2px);
        }

        .pp-toc ol {
            border-left: none;
            border-top: 1px solid var(--pp-border);
            padding: 6px 0;
        }

        .pp-toc a {
            margin-left: 0;
            border-left: none;
            padding: 10px 16px;
            font-size: 15px;
        }

            .pp-toc a[aria-current] {
                border-left: none;
            }

    .pp-doc {
        max-width: none;
        padding: 28px 20px;
        border-radius: 12px;
    }

        .pp-doc h1 {
            font-size: 26px;
        }

        .pp-doc section {
            padding-top: 24px;
            margin-top: 24px;
        }

        .pp-doc h2 {
            font-size: 18px;
        }

    .pp-footer {
        grid-column: auto;
        max-width: none;
        padding-bottom: 24px;
    }
}

@media (max-width: 380px) {
    .pp-header__back {
        padding: 0 12px;
        font-size: 13px;
    }
}

@media print {
    .pp-header,
    .pp-toc,
    .pp-top,
    .pp-skip {
        display: none;
    }

    body {
        background: #fff;
    }

    .pp-layout {
        display: block;
        padding: 0;
    }

    .pp-doc {
        border: none;
        box-shadow: none;
        padding: 0;
        max-width: none;
    }
}
