/* Perfect Bus Driver — pages légales (confidentialité, CGU, mentions légales) */

:root {
    --navy-900: #0a1628;
    --navy-700: #1a3357;
    --ink: #13213a;
    --ink-soft: #4a5a74;
    --ink-muted: #75839a;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --line: #e3e8f0;
    --teal: #0aa5b8;
    --teal-dark: #087f8f;
    --teal-soft: #e3f6f8;
    --amber: #f59e0b;
    --amber-soft: #fff4dd;
    --red: #e5484d;
    --red-soft: #fdecec;
    --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--teal-dark); }

/* ---------- Header ---------- */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: auto;
}

.logo-icon,
.logo-icon img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--navy-900);
    line-height: 1.1;
}

.header-nav {
    display: flex !important;
    align-items: center;
    gap: 12px !important;
}

.back-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink-soft);
    padding: 8px 14px;
    border-radius: 999px;
    transition: background .2s, color .2s;
}

.back-link:hover {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

/* ---------- Bandeau de titre + contenu ---------- */

.container {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.container::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    margin-top: -56px;
    height: 260px;
    z-index: -1;
    background:
        radial-gradient(700px 300px at 85% 0%, rgba(10, 165, 184, .35), transparent 60%),
        linear-gradient(160deg, var(--navy-900), var(--navy-700));
}

.content {
    position: relative;
    background: var(--surface);
    border-radius: 28px;
    padding: 56px 56px 48px;
    box-shadow: 0 10px 30px rgba(16, 34, 61, .10);
}

.content h1 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -.03em;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.last-update {
    color: var(--ink-muted);
    font-size: 14.5px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.content h2 {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -.02em;
    font-weight: 800;
    color: var(--navy-900);
    margin: 44px 0 16px;
}

.content h3 {
    font-size: 18.5px;
    font-weight: 800;
    color: var(--teal-dark);
    margin: 28px 0 10px;
}

.content p {
    margin-bottom: 14px;
    color: var(--ink-soft);
}

.content p strong,
.content li strong { color: var(--ink); }

.content ul,
.content ol {
    margin: 12px 0 18px 22px;
    color: var(--ink-soft);
}

.content li { margin-bottom: 8px; padding-left: 4px; }
.content ul li::marker { color: var(--teal); }

/* ---------- Encadrés ---------- */

.highlight-box,
.info-box,
.important,
.warning,
.section-card {
    border-radius: 16px;
    padding: 20px 24px;
    margin: 24px 0;
}

.highlight-box,
.info-box {
    background: var(--teal-soft);
    border: 1px solid #bfe8ee;
}

.important {
    background: var(--amber-soft);
    border: 1px solid #f8d590;
}

.warning {
    background: var(--red-soft);
    border: 1px solid #f6c4c5;
}

.section-card {
    background: var(--bg);
    border: 1px solid var(--line);
}

.highlight-box p:last-child,
.info-box p:last-child,
.important p:last-child,
.warning p:last-child,
.section-card p:last-child { margin-bottom: 0; }

.contact-box,
.redirect-notice {
    margin-top: 44px;
    padding: 36px 32px;
    border-radius: 22px;
    text-align: center;
    color: #c9d4e5;
    background:
        radial-gradient(500px 240px at 100% 0%, rgba(10, 165, 184, .4), transparent 60%),
        linear-gradient(150deg, var(--navy-900), var(--navy-700));
}

.contact-box h2,
.redirect-notice h2 {
    color: #fff !important;
    margin-top: 0 !important;
}

.contact-box p,
.redirect-notice p { color: #c9d4e5; }

.content .contact-box strong,
.content .redirect-notice strong { color: #fff; }

.contact-box a,
.redirect-notice a {
    color: #fff;
    font-weight: 700;
    text-decoration-color: var(--teal);
    text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

footer {
    background: var(--navy-900);
    color: #9fb0c8;
    padding: 40px 0 32px;
    font-size: 15px;
    margin-top: auto;
}

.footer-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-links a {
    color: #d6e0ee;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-content > p {
    margin-top: 20px !important;
    font-size: 13.5px;
    color: #6f819c !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
    body { font-size: 16px; }
    .header-content { height: 64px; padding: 0 16px; }
    .logo-text { display: none; }
    .back-link { padding: 8px 10px; font-size: 14px; }
    .container { padding: 32px 16px 48px; }
    .container::before { height: 200px; margin-top: -32px; }
    .content { padding: 32px 22px; border-radius: 22px; }
    .content h2 { font-size: 21px; margin-top: 36px; }
    .content h3 { font-size: 17px; }
    .highlight-box, .info-box, .important, .warning, .section-card { padding: 16px 18px; }
    .contact-box, .redirect-notice { padding: 28px 20px; }
    .footer-content { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
