/* =========================================================
   STOKOLM — Styles globaux
   Body, typographie, navbar, top-bar, footer, utilitaires.
   ========================================================= */

body {
    font-family: var(--stk-font);
    font-size: var(--stk-text-base);
    line-height: var(--stk-leading-normal);
    color: var(--stk-ink-900);
    background: var(--stk-cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--stk-font);
    font-weight: 500;
    color: var(--stk-ink-900);
    letter-spacing: var(--stk-tracking-tight);
    line-height: var(--stk-leading-tight);
    text-wrap: balance;
}
h1 { font-size: var(--text-h1); letter-spacing: var(--stk-tracking-tighter); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -0.02em; line-height: var(--stk-leading-snug); }
h4 { font-size: var(--text-h4); letter-spacing: -0.01em; line-height: var(--stk-leading-snug); }

p {
    line-height: var(--stk-leading-normal);
    text-wrap: pretty;
    max-width: 65ch;
}

strong { font-weight: 500; color: var(--stk-ink-900); }

a {
    color: var(--stk-forest-500);
    text-decoration: none;
    transition: color var(--stk-t-fast) var(--stk-ease);
}
a:hover { color: var(--stk-forest-700); }

::selection { background: var(--stk-forest-200); color: var(--stk-ink-900); }

/* ---------- Focus accessible ---------- */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--stk-solar-400);
    outline-offset: 3px;
    border-radius: var(--stk-radius-sm);
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 12px 20px;
    background: var(--stk-forest-900);
    color: var(--stk-cream-50);
    border-radius: var(--stk-radius-md);
    font-weight: 500;
    transition: top var(--stk-t-medium) var(--stk-ease);
}
.skip-link:focus {
    top: 16px;
    color: var(--stk-cream-50);
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--stk-container-max);
    margin-inline: auto;
    padding-inline: var(--stk-container-pad);
}

/* ---------- Section ---------- */
.section {
    padding-block: var(--stk-section-y);
}
.section--alt  { background: var(--stk-cream-100); }
.section--dark {
    background: var(--stk-forest-900);
    color: var(--stk-cream-100);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--stk-cream-50); }
.section--dark .section-header__eyebrow,
.section--dark .stk-eyebrow { color: var(--stk-solar-400); }

/* ---------- Eyebrow (sur-titre) ---------- */
.stk-eyebrow,
.section-header__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--stk-tracking-wide);
    color: var(--stk-forest-500);
    margin-bottom: var(--stk-space-3);
}

/* ---------- Section header ---------- */
.section-header {
    max-width: 880px;
    margin-inline: auto;
    margin-bottom: var(--stk-space-16);
    text-align: left;
}
.section-header__title {
    font-size: clamp(32px, 4vw, 56px);
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: var(--stk-space-4);
}
.section-header__lead {
    font-size: var(--stk-text-lg);
    color: var(--stk-stone-600);
    max-width: 65ch;
}
@media (min-width: 768px) {
    .section-header.text-center { text-align: center; margin-inline: auto; }
    .section-header.text-center .section-header__lead { margin-inline: auto; }
}

/* ---------- Utilitaires ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.text-center { text-align: center; }
.text-muted  { color: var(--stk-stone-600); }
.text-blue,
.text-red    { color: var(--stk-forest-500); }

.mt-4 { margin-top: 16px; }   .mt-6 { margin-top: 24px; }   .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }

/* ---------- Image placeholder (Stokolm signature) ---------- */
.stk-img-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--stk-cream-100);
    border-radius: inherit;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stk-img-placeholder svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.stk-img-placeholder__label {
    position: relative;
    font-family: var(--stk-mono);
    font-size: 12px;
    color: var(--stk-forest-500);
    background: var(--stk-cream-50);
    padding: 6px 12px;
    border-radius: var(--stk-radius-sm);
    border: 1px solid var(--stk-cream-200);
}

/* ---------- Top-bar (Particulier / Professionnel) ---------- */
.topbar {
    background: var(--stk-forest-900);
    color: var(--stk-cream-100);
    font-size: 13px;
    border-bottom: 1px solid rgba(251, 248, 242, 0.06);
    display: none;
}
@media (min-width: 768px) {
    .topbar { display: block; }
}
.topbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    gap: var(--stk-space-4);
}
.topbar__left {
    display: flex;
    align-items: center;
    gap: var(--stk-space-4);
}
.topbar__contact {
    display: inline-flex;
    align-items: center;
    gap: var(--stk-space-2);
    color: var(--stk-cream-50);
    font-weight: 500;
    transition: color var(--stk-t-fast);
}
.topbar__contact:hover { color: var(--stk-solar-400); }
.topbar__separator { color: rgba(251, 248, 242, 0.3); }
.topbar__hours {
    display: inline-flex;
    align-items: center;
    gap: var(--stk-space-2);
    color: var(--stk-cream-100);
    opacity: 0.7;
    font-family: var(--stk-mono);
    font-size: 12px;
}
.topbar__profile {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(251, 248, 242, 0.06);
    border: 1px solid rgba(251, 248, 242, 0.1);
    border-radius: var(--stk-radius-pill);
    padding: 3px;
}
.topbar__profile-label {
    color: var(--stk-cream-100);
    opacity: 0.6;
    padding-left: var(--stk-space-3);
    padding-right: var(--stk-space-1);
    font-family: var(--stk-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.topbar__profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    color: var(--stk-cream-100);
    opacity: 0.7;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--stk-radius-pill);
    cursor: pointer;
    transition: all var(--stk-t-fast) var(--stk-ease);
}
.topbar__profile-btn[aria-pressed="true"] {
    background: var(--stk-cream-50);
    color: var(--stk-forest-900);
    opacity: 1;
}
.topbar__profile-btn:not([aria-pressed="true"]):hover {
    color: var(--stk-cream-50);
    opacity: 1;
    background: rgba(251, 248, 242, 0.04);
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: var(--stk-z-navbar);
    height: 72px;
    background: rgba(251, 248, 242, 0.85);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--stk-cream-200);
    transition: box-shadow var(--stk-t-medium) var(--stk-ease);
}
.navbar.is-scrolled { box-shadow: var(--stk-shadow-sm); }

.navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--stk-space-8);
}
.navbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--stk-ink-900);
    letter-spacing: -0.03em;
}
.navbar__brand::before { display: none; }
.navbar__logo-text {
    font-family: var(--stk-font);
    font-size: 20px;
    font-weight: 500;
    color: var(--stk-ink-900);
    letter-spacing: -0.03em;
}
.navbar__logo-text::before,
.navbar__logo-text::after { display: none; } /* anciens accents bleu/rouge supprimés */
.navbar__logo-dot { color: var(--stk-forest-700); }

.navbar__logo-img {
    display: block;
    height: 32px;
    width: auto;
}
.footer__logo-img {
    display: block;
    height: 32px;
    width: auto;
}

.navbar__nav { display: none; }
.navbar__list {
    display: flex;
    gap: var(--stk-space-8);
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar__link {
    font-size: 15px;
    font-weight: 400;
    color: var(--stk-ink-900);
    padding: 8px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--stk-t-fast) var(--stk-ease);
}
.navbar__link:hover,
.navbar__link.is-active { color: var(--stk-forest-500); }
.navbar__link::after { display: none; } /* underline animée supprimée — design plus calme */

.navbar__caret {
    margin-left: 2px;
    transition: transform var(--stk-t-fast) var(--stk-ease);
    color: var(--stk-stone-400);
}
.navbar__item--has-dropdown:hover .navbar__caret,
.navbar__item--has-dropdown:focus-within .navbar__caret { transform: rotate(180deg); color: var(--stk-forest-500); }

/* ---------- Dropdown desktop ---------- */
.navbar__item--has-dropdown { position: relative; }
.navbar__dropdown {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 300px;
    background: var(--stk-cream-50);
    border: 1px solid var(--stk-cream-200);
    border-radius: var(--stk-radius-lg);
    box-shadow: var(--stk-shadow-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
        opacity var(--stk-t-fast) var(--stk-ease),
        transform var(--stk-t-fast) var(--stk-ease),
        visibility 0s var(--stk-t-fast);
    z-index: var(--stk-z-navbar);
}
.navbar__dropdown::before {
    content: '';
    position: absolute;
    top: -8px; left: 0; right: 0;
    height: 8px;
}
.navbar__item--has-dropdown:hover .navbar__dropdown,
.navbar__item--has-dropdown:focus-within .navbar__dropdown {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}
.navbar__dropdown-link {
    display: block;
    padding: 14px 16px;
    border-radius: var(--stk-radius-md);
    color: var(--stk-ink-900);
    transition: background var(--stk-t-fast), color var(--stk-t-fast);
}
.navbar__dropdown-link:hover {
    background: var(--stk-cream-100);
    color: var(--stk-forest-700);
}
.navbar__dropdown-title {
    display: block;
    font-weight: 500;
    font-size: 15px;
    color: inherit;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.navbar__dropdown-desc {
    display: block;
    color: var(--stk-stone-600);
    font-size: 13px;
    line-height: var(--stk-leading-snug);
}

.navbar__actions { display: none; align-items: center; gap: var(--stk-space-4); }
.navbar__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--stk-ink-900);
    font-weight: 500;
    font-size: 14px;
}
.navbar__phone:hover { color: var(--stk-forest-500); }

.navbar__burger {
    width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--stk-radius-md);
    background: transparent;
    border: 0;
    cursor: pointer;
}
.navbar__burger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--stk-ink-900);
    border-radius: 2px;
    transition: transform var(--stk-t-medium) var(--stk-ease), opacity var(--stk-t-fast);
}
.navbar.is-menu-open .navbar__burger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar.is-menu-open .navbar__burger-line:nth-child(2) { opacity: 0; }
.navbar.is-menu-open .navbar__burger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed;
    inset: 72px 0 0;
    z-index: var(--stk-z-mobile-menu);
    background: var(--stk-cream-50);
    overflow-y: auto;
    padding: var(--stk-space-8) var(--stk-container-pad);
    transform: translateX(100%);
    transition: transform var(--stk-t-medium) var(--stk-ease),
                visibility var(--stk-t-medium) var(--stk-ease);
    visibility: hidden;
    pointer-events: none;
}
.mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}
@media (min-width: 1024px) {
    .mobile-menu { display: none; }
}
.mobile-menu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0 0 var(--stk-space-8);
    padding: 0;
}
.mobile-menu__link {
    display: block;
    padding: var(--stk-space-4) 0;
    font-family: var(--stk-font);
    font-size: 22px;
    font-weight: 500;
    color: var(--stk-ink-900);
    border-bottom: 1px solid var(--stk-cream-200);
    letter-spacing: -0.02em;
}
.mobile-menu__sublist {
    list-style: none;
    padding: 0 0 var(--stk-space-4) var(--stk-space-4);
    border-bottom: 1px solid var(--stk-cream-200);
    margin-top: -1px;
}
.mobile-menu__sublink {
    display: block;
    padding: var(--stk-space-2) 0;
    color: var(--stk-stone-600);
    font-size: 15px;
}
.mobile-menu__sublink:hover { color: var(--stk-forest-500); }
.mobile-menu__actions {
    display: flex;
    flex-direction: column;
    gap: var(--stk-space-3);
}

/* ---------- Floating CTA mobile ---------- */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--stk-z-floating);
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--stk-cream-50);
    box-shadow: 0 -4px 20px rgba(14, 42, 31, 0.12);
    transform: translateY(100%);
    transition: transform var(--stk-t-medium) var(--stk-ease);
}
.floating-cta.is-visible { transform: translateY(0); }
.floating-cta[hidden] { display: none !important; }
.floating-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-weight: 500;
    font-size: 14px;
    min-height: 48px;
}
.floating-cta__btn--call {
    color: var(--stk-ink-900);
    border-right: 1px solid var(--stk-cream-200);
}
.floating-cta__btn--quote {
    background: var(--stk-forest-700);
    color: var(--stk-cream-50);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--stk-forest-900);
    color: var(--stk-cream-100);
    padding: 80px 0 40px;
    margin-top: 0;
}
.footer__top {
    display: grid;
    gap: var(--stk-space-12);
    grid-template-columns: 1fr;
    padding-bottom: var(--stk-space-16);
    border-bottom: 1px solid rgba(251, 248, 242, 0.1);
}
.footer__brand .navbar__logo-text { color: var(--stk-cream-50); }
.footer__tagline {
    color: var(--stk-cream-100);
    opacity: 0.7;
    margin-top: var(--stk-space-4);
    font-size: 14px;
    line-height: var(--stk-leading-loose);
    max-width: 32ch;
}
.footer__certifications {
    display: flex;
    flex-wrap: wrap;
    gap: var(--stk-space-2);
    margin-top: var(--stk-space-6);
}
.footer__cert-badge {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(251, 248, 242, 0.15);
    border-radius: var(--stk-radius-sm);
    font-family: var(--stk-mono);
    font-size: 11px;
    color: var(--stk-cream-50);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer__title {
    color: var(--stk-cream-50);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--stk-space-4);
}
.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--stk-space-3);
    margin: 0;
    padding: 0;
}
.footer__list a {
    color: var(--stk-cream-100);
    opacity: 0.8;
    font-size: 15px;
    transition: opacity var(--stk-t-fast);
}
.footer__list a:hover { opacity: 1; }
.footer__list--contact li,
.footer__address,
.footer__hours {
    display: flex;
    align-items: center;
    gap: var(--stk-space-2);
    color: var(--stk-cream-100);
    opacity: 0.8;
    font-size: 15px;
}
.footer__list--contact li > a {
    display: inline-flex;
    align-items: center;
    gap: var(--stk-space-2);
    line-height: 1.3;
}
.footer__list--contact li svg,
.footer__address svg,
.footer__hours svg {
    flex-shrink: 0;
    color: var(--stk-solar-400);
    opacity: 0.9;
}
.footer__social {
    display: flex;
    gap: var(--stk-space-2);
    margin-top: var(--stk-space-6);
}
.footer__social-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--stk-radius-pill);
    background: transparent;
    border: 1px solid rgba(251, 248, 242, 0.15);
    color: var(--stk-cream-50);
    opacity: 0.7;
    transition: all var(--stk-t-fast) var(--stk-ease);
}
.footer__social-link:hover {
    background: var(--stk-forest-700);
    border-color: var(--stk-forest-700);
    color: var(--stk-cream-50);
    opacity: 1;
}
.footer__bottom {
    margin-top: var(--stk-space-8);
    padding-top: var(--stk-space-6);
    border-top: 1px solid rgba(251, 248, 242, 0.1);
}
.footer__bottom-inner {
    display: flex;
    flex-direction: column;
    gap: var(--stk-space-3);
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
}
.footer__copyright {
    font-size: 13px;
    color: var(--stk-cream-100);
    opacity: 0.6;
}
.footer__legal {
    display: flex;
    gap: var(--stk-space-6);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer__legal a {
    color: var(--stk-cream-100);
    opacity: 0.6;
    transition: opacity var(--stk-t-fast);
}
.footer__legal a:hover { opacity: 1; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: var(--stk-space-6); }
.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--stk-space-2);
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--stk-mono);
    font-size: 12px;
    color: var(--stk-stone-600);
}
.breadcrumb__list a { color: var(--stk-stone-600); }
.breadcrumb__list a:hover { color: var(--stk-forest-500); }
.breadcrumb__item:not(:last-child)::after {
    content: '/';
    margin-left: var(--stk-space-2);
    color: var(--stk-stone-400);
}
