:root {
    --bg: #f4f1eb;
    --surface: #ffffff;
    --surface-alt: #f3efe7;
    --dark: #1f2b35;
    --dark-soft: #314250;
    --text: #24313a;
    --muted: #55616b;
    --line: #d8d3ca;
    --blue: #1495c9;
    --orange: #f29a1f;
    --orange-dark: #8a5200; /* orange foncé : texte (≥ 5:1) ; --orange reste réservé aux aplats */
    --blue-text: #0a6590;
    --shadow: 0 18px 34px rgba(27, 39, 49, 0.08);
    --content: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(var(--content), calc(100% - 32px)); margin: 0 auto; }

.topbar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.875rem;
}
.topbar-inner {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.topbar strong { color: #fff; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(31, 43, 53, 0.08);
    backdrop-filter: blur(12px);
}
.header-inner {
    min-height: 94px;
    display: flex;
    align-items: center;
    gap: 26px;
}
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand img { width: 186px; height: auto; }
.menu-toggle {
    display: none;
    margin-left: auto;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(31, 43, 53, 0.55);
    border-radius: 6px;
    background: #fff;
    color: var(--dark);
    font-size: 1.625rem;
    cursor: pointer;
}
.nav-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}
.nav-shell {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}
.nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 18px;
    min-width: 0;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 12px;
    white-space: nowrap;
    color: var(--dark-soft);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
}
.nav-link.is-current,
.nav a.is-current {
    background: #f4ede0;
    color: var(--dark);
    box-shadow: inset 0 0 0 1px rgba(242, 154, 31, 0.2);
}
.header-cta {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
}
.header-cta .cta-short { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}
.btn-primary { background: var(--orange); color: #1f1f1f; }
.btn-dark { background: var(--dark); color: #fff; }

.page-main { padding: 48px 0 72px; }
.page-main .container { width: min(980px, calc(100% - 32px)); }
.page-hero {
    background: #fff;
    border: 1px solid rgba(31, 43, 53, 0.08);
    box-shadow: var(--shadow);
    padding: 34px;
    margin-bottom: 20px;
}
.eyebrow {
    display: inline-block;
    color: var(--orange-dark);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.page-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(1.875rem, 5vw, 2.875rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--dark);
}
.intro {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 1.0625rem;
}
.card {
    background: #fff;
    border: 1px solid rgba(31, 43, 53, 0.08);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 20px;
}
.card h2 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 1.5rem;
}
.card p,
.card li { color: var(--muted); font-size: 1rem; }
.card a { color: var(--blue-text); text-decoration: underline; }
.card ul { margin: 14px 0 0; padding-left: 18px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.related-grid a {
    display: block;
    padding: 14px 16px;
    background: var(--surface-alt);
    border-left: 3px solid var(--orange);
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}
.cta-row { margin-top: 8px; }

.site-footer,
.footer {
    padding: 28px 0 36px;
    background: #fff;
    border-top: 1px solid rgba(31, 43, 53, 0.08);
    color: var(--muted);
    font-size: 0.875rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-zones {
    width: 100%;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.875rem;
}
.footer-zones a { text-decoration: underline; }
.site-footer a[href^="tel"] { text-decoration: underline; }

@media (max-width: 1180px) {
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: 0; }
    .nav-wrap {
        position: absolute;
        top: 94px;
        left: 0;
        right: 0;
        display: none;
        padding: 0 20px 18px;
        z-index: 12;
    }
    .nav-wrap.open { display: block; }
    .nav-shell {
        background: #fff;
        border: 1px solid rgba(31, 43, 53, 0.08);
        box-shadow: var(--shadow);
        padding: 18px;
    }
    .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .nav-link {
        justify-content: flex-start;
        min-height: 48px;
        padding: 0 16px;
    }
    .header-cta { margin-left: auto; }
    .header-cta .btn { min-height: 44px; padding: 0 12px; font-size: 0.9375rem; }
    .header-cta .cta-full { display: none; }
    .header-cta .cta-short { display: inline; }
}

@media (max-width: 720px) {
    .topbar-inner,
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .header-inner { min-height: 82px; }
    .nav-wrap { top: 82px; padding: 0 14px 14px; }
    .nav { grid-template-columns: 1fr; }
    .page-hero,
    .card { padding: 22px; }
    .related-grid { grid-template-columns: 1fr; }
    .brand img { width: 118px; }
}
