/*
Theme Name: Société Bâtiment & Construction Custom Theme
Theme URI: https://sbc-batiment.fr/
Author: Nicolas BECQUEREL
Author URI: https://nico-dev.fr/
Description: Thème WordPress classique pour Société Bâtiment & Construction — site vitrine d'entreprise de maçonnerie et second œuvre. Esthétique sobre « chantier-premium ». Entièrement personnalisable via le Customizer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sbc
Tags: business, classic, customizer, construction
*/

/* ============================================================
   Société Bâtiment & Construction — site vitrine
   Esthétique : sobre, solide, chantier-premium.
   ============================================================ */

:root {
    --bg: #F5F5F4;
    --bg-2: #FAFAF9;
    --ink: #0F172A;
    --ink-2: #1E293B;
    --muted: #64748B;
    --concrete: #9CA3AF;
    --sand: #E7E5E4;
    --rule: #D1D5DB;
    --blue: #2563EB;
    --blue-hover: #1D4ED8;
    --blue-dark: #1E3A8A;
    --blue-soft: #DBEAFE;
    --sans: 'Manrope', -apple-system, blinkmacsystemfont, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
    --mx: clamp(20px, 5vw, 80px);
    --section: clamp(88px, 12vh, 140px);
    --r: 3px;
    --r-lg: 6px;
}

* {
    box-sizing: border-box
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
}

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizelegibility;
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    cursor: pointer
}

::selection {
    background: var(--blue);
    color: #fff
}

h1, h2, h3, h4 {
    font-family: var(--sans);
    color: var(--ink);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance
}

p {
    text-wrap: pretty;
    margin: 0
}

.shell {
    max-width: 1440px;
    margin: 0 auto;
    padding-inline: var(--mx)
}

section {
    padding-block: var(--section)
}

.mono {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400
}

.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--blue)
}

/* screen-reader only */
.screen-reader-text {
    position: absolute !important;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    margin: -1px;
    padding: 0;
    border: 0
}

/* ============ NAV ============ */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    background: color-mix(in oklab, var(--bg) 90%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--rule);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 18px;
    gap: 32px
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px
}

.brand-logo-img {
    max-height: 42px;
    width: auto;
    display: block
}

.logo-sbc {
    width: 42px;
    height: 42px;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    border-radius: var(--r);
    font-family: var(--mono);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .04em;
    position: relative;
    overflow: hidden;
}

.logo-sbc::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 6px;
    background: var(--blue)
}

.brand-name {
    font-weight: 700;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    display: block
}

.brand-name-short {
    display: none
}

@media (width <= 600px) {
    .brand-name-long {
        display: none
    }

    .brand-name-short {
        display: block
    }
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0
}

.nav-links a {
    font-size: 14px;
    color: var(--ink-2);
    font-weight: 500;
    padding-block: 6px
}

.nav-links a:hover {
    color: var(--blue)
}

.nav-cta {
    font-size: 13px;
    padding: 11px 20px;
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: var(--r);
    transition: background .2s;
    font-weight: 600;
    letter-spacing: .01em;
    display: inline-block;
}

.nav-cta:hover {
    background: var(--blue-hover);
    color: #fff
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--ink);
    border-radius: var(--r);
    padding: 8px 12px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase
}

@media (width <= 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px var(--mx);
        gap: 16px;
        border-bottom: 1px solid var(--rule);
    }

    .nav-links.open {
        display: flex
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        margin-left: auto
    }

    .nav-cta {
        display: none
    }
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding-block: clamp(60px, 8vh, 100px) clamp(80px, 10vh, 120px);
    overflow: hidden
}

.hero-grid {
    display: grid;
    grid-template-columns:1.15fr .85fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center
}

@media (width <= 960px) {
    .hero-grid {
        grid-template-columns:1fr
    }
}

.hero-eyebrow {
    margin-bottom: 28px
}

.hero h1 {
    font-size: clamp(44px, 7.5vw, 108px);
    line-height: .96;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin: 0 0 28px;
}

.hero h1 .accent {
    color: var(--blue);
    position: relative;
    display: inline-block
}

.hero h1 .accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.08em;
    height: .12em;
    background: var(--blue);
    opacity: .18;
}

.hero-lede {
    font-size: clamp(17px, 1.4vw, 20px);
    color: var(--ink-2);
    max-width: 48ch;
    line-height: 1.55;
    margin-bottom: 36px
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--r);
    transition: all .22s cubic-bezier(.2, .8, .2, 1);
    letter-spacing: .01em;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    border: 1.5px solid var(--blue)
}

.btn-primary:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
    transform: translateY(-1px);
    color: #fff
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink)
}

.btn-ghost:hover {
    background: var(--ink);
    color: #fff
}

.arrow {
    display: inline-block;
    transition: transform .22s
}

.btn:hover .arrow {
    transform: translateX(3px)
}

.hero-visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--sand);
    margin: 0
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-visual-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fff;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 10px 14px;
    border-radius: var(--r);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-visual-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%
}

.hero-visual-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--ink);
    color: #fff;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: var(--r);
}

/* Ticker bar */
.ticker {
    background: var(--ink);
    color: #fff;
    padding: 18px 0;
    border-block: 1px solid var(--ink);
    overflow: hidden;
}

.ticker-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase
}

.ticker-track span {
    display: inline-flex;
    align-items: center;
    gap: 48px
}

.ticker-track .dot {
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    display: inline-block
}

@keyframes ticker {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* ============ SECTION HEAD ============ */
.s-head {
    display: grid;
    grid-template-columns:1fr 1.3fr;
    gap: 48px;
    margin-bottom: 64px;
    align-items: end
}

@media (width <= 900px) {
    .s-head {
        grid-template-columns:1fr;
        gap: 24px
    }
}

.s-head h2 {
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1;
    letter-spacing: -0.025em
}

.s-head h2 .blue {
    color: var(--blue)
}

.s-intro {
    color: var(--ink-2);
    max-width: 52ch;
    font-size: 17px;
    line-height: 1.55
}

/* ============ 3 PÔLES ============ */
.poles {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 20px
}

@media (width <= 900px) {
    .poles {
        grid-template-columns:1fr
    }
}

.pole {
    background: #fff;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
    position: relative;
}

.pole:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgb(15 23 42 / 18%)
}

.pole-media {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--sand);
    position: relative
}

.pole-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1)
}

.pole:hover .pole-media img {
    transform: scale(1.05)
}

.pole-num {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff;
    color: var(--ink);
    padding: 6px 12px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 500;
    border-radius: var(--r);
}

.pole-body {
    padding: 28px 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1
}

.pole-title {
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.015em
}

.pole-desc {
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.55
}

.pole-ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--rule);
    padding-top: 16px
}

.pole-ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-2)
}

.pole-ul li::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    margin-top: 7px;
}

.pole-foot {
    margin-top: auto;
    padding-top: 20px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

/* ============ RÉALISATIONS ============ */
.rea-section {
    background: #fff;
    border-block: 1px solid var(--rule);
}

.rea-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px
}

.rf {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 9px 18px;
    border: 1.5px solid var(--rule);
    background: #fff;
    color: var(--ink-2);
    border-radius: 100px;
    transition: all .2s;
}

.rf:hover {
    border-color: var(--ink)
}

.rf.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink)
}

/* Pinterest-style masonry. The column count + gap live here as custom
   properties (single source of truth for the breakpoints); main.js reads
   them and absolutely positions each card so heights stay natural, the
   space is packed with no gaps, and a .feat card spans 2 columns.
   Cards keep a normal stacked flow until JS adds .is-masonry (no-JS safety). */
.rea {
    position: relative;

    --rea-cols: 3;
    --rea-gap: 16px;
}

@media (width <= 900px) {
    .rea {
        --rea-cols: 2
    }
}

@media (width <= 560px) {
    .rea {
        --rea-cols: 1
    }
}

.rea-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--sand);
    cursor: pointer;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    margin: 0 0 16px;
}

.rea.is-masonry .rea-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 0; /* real width set by main.js */
    margin: 0;
}

.rea-card:hover {
    transform: translateY(-3px)
}

.rea-media {
    overflow: hidden
}

.rea-media img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1)
}

.rea-card:hover .rea-media img {
    transform: scale(1.04)
}

.rea-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px 20px;
    background: linear-gradient(to top, rgb(15 23 42 / 92%), rgb(15 23 42 / 0%));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.rea-overlay .t {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px
}

.rea-overlay .k {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .8
}

.rea-overlay .cat {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 500;
    background: var(--blue);
    color: #fff;
    padding: 5px 9px;
    border-radius: var(--r);
    white-space: nowrap;
}

/* ============ ENTREPRISE ============ */
.ent-grid {
    display: grid;
    grid-template-columns:1.2fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center
}

@media (width <= 900px) {
    .ent-grid {
        grid-template-columns:1fr
    }
}

.ent-txt h2 {
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 24px
}

.ent-txt h2 .blue {
    color: var(--blue)
}

.ent-txt p {
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.65;
    max-width: 52ch;
    margin-bottom: 16px
}

.ent-stats {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 0;
    margin-top: 36px;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink)
}

.stat {
    padding: 24px 20px;
    border-right: 1px solid var(--rule)
}

.stat:last-child {
    border-right: none
}

.stat .n {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: block;
    margin-bottom: 6px
}

.stat .l {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted)
}

.ent-img {
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: var(--r-lg);
    margin: 0
}

.ent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.guarantees {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px
}

@media (width <= 700px) {
    .guarantees {
        grid-template-columns:1fr
    }
}

.g {
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    gap: 6px
}

.g .g-t {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 500
}

.g .g-v {
    font-size: 16px;
    font-weight: 600
}

/* ============ SISTER ============ */
.sister {
    background: var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.sister::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), #60A5FA, var(--blue));
}

.sister-grid {
    display: grid;
    grid-template-columns:.9fr 1.1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center
}

@media (width <= 900px) {
    .sister-grid {
        grid-template-columns:1fr
    }
}

.sister-eyebrow {
    color: #93C5FD
}

.sister-eyebrow::before {
    background: #93C5FD
}

.sister h2 {
    color: #fff;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 18px 0 24px
}

.sister h2 em {
    font-style: normal;
    color: #93C5FD;
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400
}

.sister-key {
    padding: 22px 26px;
    border-left: 3px solid #93C5FD;
    margin: 24px 0 32px;
    font-size: 19px;
    line-height: 1.4;
    color: #E2E8F0;
    background: rgb(147 197 253 / 8%);
    font-style: italic;
}

.sister p {
    color: #CBD5E1;
    font-size: 16px;
    line-height: 1.6;
    max-width: 52ch;
    margin-bottom: 18px
}

.sister-metiers {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 12px;
    margin: 28px 0 32px
}

.sm {
    padding: 16px 18px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: var(--r);
    background: rgb(255 255 255 / 3%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sm-n {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .15em;
    color: #93C5FD;
    font-weight: 500
}

.sm-t {
    font-size: 15px;
    font-weight: 600;
    color: #fff
}

.sm-d {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.4
}

.sister-cta {
    background: #fff;
    color: var(--ink);
    border-color: #fff
}

.sister-cta:hover {
    background: #93C5FD;
    border-color: #93C5FD;
    color: var(--ink)
}

.sister-visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 15%);
    margin: 0;
}

.sister-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05)
}

.sister-logo-mark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #000;
    display: grid;
    place-items: center;
    border-radius: var(--r);
}

.sister-logo-mark img {
    width: 32px;
    height: 32px;
    filter: brightness(10)
}

/* ============ CONTACT (fond clair) ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "head form"
        "info form";
    gap: 32px 60px;
    align-items: start
}

.contact-head {
    grid-area: head
}

.contact-grid > .contact-info {
    grid-area: info
}

.contact-grid > .form {
    grid-area: form;
    align-self: stretch
}

@media (width <= 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "head"
            "form"
            "info";
        row-gap: 40px
    }
}

.contact h2 {
    font-size: clamp(40px, 5.5vw, 68px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 20px 0 24px
}

.contact h2 .blue {
    color: var(--blue)
}

.contact-lede {
    color: var(--ink-2);
    font-size: 17px;
    max-width: 42ch;
    margin-bottom: 40px
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.info-row {
    display: grid;
    grid-template-columns:120px 1fr;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    color: var(--ink-2)
}

.info-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--blue);
    padding-top: 3px;
    font-weight: 500
}

.info-val {
    font-size: 15px;
    line-height: 1.55
}

.info-val a {
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: border-color .2s
}

.info-val a:hover {
    border-bottom-color: var(--blue);
    color: var(--blue)
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: var(--r-lg)
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.field label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 500
}

.field input, .field select, .field textarea {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rule);
    padding: 10px 2px;
    font: inherit;
    color: var(--ink);
    font-size: 16px;
    transition: border-color .2s;
}

.field select option {
    color: var(--ink)
}

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue)
}

.field input::placeholder, .field textarea::placeholder {
    color: var(--concrete)
}

.field textarea {
    resize: vertical;
    min-height: 100px
}

.field-row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 18px
}

@media (width <= 500px) {
    .field-row {
        grid-template-columns:1fr
    }
}

.form .btn-primary {
    justify-content: center;
    padding: 18px 24px;
    background: var(--blue);
    border-color: var(--blue)
}

/* Formulaire — structure head / fields / foot */
.form-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 4px
}

.form-head-sub {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
    max-width: 42ch
}

.form-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-block: auto
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.form-foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px
}

.form .cf-turnstile {
    align-self: center
}

.form .btn-primary[disabled] {
    opacity: .65;
    cursor: progress
}

.form-consent {
    margin-top: 4px
}

.form-consent-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-2);
    cursor: pointer
}

.form-consent-label input[type="checkbox"] {
    margin: 3px 0 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--blue);
    cursor: pointer
}

.form-consent-text a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px
}

.form-consent-text a:hover {
    color: var(--blue-hover)
}

.form-note {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    line-height: 1.5
}

.form-msg {
    padding: 14px 16px;
    border-radius: var(--r);
    font-size: 14px
}

.form-msg.ok {
    background: var(--blue-soft);
    color: var(--blue-dark);
    border: 1px solid #BFDBFE
}

.form-msg.err {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA
}

/* Contact map card — bandeau cinématique sous la grille */
.contact-map {
    margin-top: clamp(48px, 7vw, 88px);
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--bg-2);
    box-shadow: 0 1px 2px rgb(15 23 42 / 3%);
}

.contact-map-iframe {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    border: 0;
    filter: grayscale(.18) contrast(.97);
}

@media (width <= 900px) {
    .contact-map-iframe {
        aspect-ratio: 16 / 10;
    }
}

@media (width <= 600px) {
    .contact-map-iframe {
        aspect-ratio: 4 / 3;
    }

    .contact-map {
        margin-top: 40px;
    }
}

.contact-map-label {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #fff;
    color: var(--ink);
    padding: 7px 12px;
    border-radius: var(--r);
    border: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 500;
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
    pointer-events: none;
    z-index: 2;
}

.contact-map-pill {
    position: absolute;
    bottom: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
    background: #fff;
    color: var(--ink);
    padding: 10px 14px;
    border-radius: var(--r);
    border: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .08em;
    font-weight: 500;
    box-shadow: 0 6px 16px -4px rgb(15 23 42 / 12%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap .22s, box-shadow .22s, transform .22s;
    z-index: 2;
}

.contact-map-pill:hover,
.contact-map-pill:focus-visible {
    gap: 14px;
    box-shadow: 0 10px 24px -6px rgb(15 23 42 / 20%);
    transform: translateY(-1px);
    outline: 0;
}

.contact-map-dot {
    width: 9px;
    height: 9px;
    background: var(--blue);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 18%);
    animation: sbc-map-pulse 2.2s ease-in-out infinite;
}

@keyframes sbc-map-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgb(37 99 235 / 18%)
    }

    50% {
        box-shadow: 0 0 0 6px rgb(37 99 235 / 6%)
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-map-dot {
        animation: none
    }

    .contact-map-pill {
        transition: none
    }
}

.contact-map-txt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.contact-map-pill .arrow {
    color: var(--blue);
    font-weight: 600;
    flex-shrink: 0;
}

@media (width <= 500px) {
    .contact-map-label {
        font-size: 9px;
        padding: 6px 10px;
        top: 10px;
        left: 10px;
    }

    .contact-map-pill {
        font-size: 10px;
        padding: 8px 12px;
        bottom: 12px;
        left: 12px;
    }

    .contact-map-txt {
        max-width: 160px;
    }
}

/* ============ FAQ (fond foncé) ============ */
.faq-section {
    background: var(--ink);
    color: #fff;
    position: relative
}

.faq-section::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), #60A5FA, var(--blue));
}

.faq {
    display: grid;
    grid-template-columns:1fr 1.5fr;
    gap: 60px;
    align-items: start
}

@media (width <= 900px) {
    .faq {
        grid-template-columns:1fr;
        gap: 32px
    }
}

.faq-section .eyebrow {
    color: #93C5FD
}

.faq-section .eyebrow::before {
    background: #93C5FD
}

.faq h2 {
    color: #fff;
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.025em
}

.faq h2 .blue {
    color: #93C5FD
}

.faq-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgb(255 255 255 / 14%)
}

.faq-item {
    border-bottom: 1px solid rgb(255 255 255 / 14%)
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    font-size: 17px;
    font-weight: 600;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: #fff;
    transition: color .2s;
}

.faq-q:hover {
    color: #93C5FD
}

.faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1.5px solid rgb(255 255 255 / 22%);
    border-radius: 50%;
    color: #93C5FD;
    transition: all .3s;
    font-size: 14px;
    font-weight: 600;
}

.faq-item.open .faq-toggle {
    background: #93C5FD;
    color: var(--ink);
    border-color: #93C5FD;
    transform: rotate(45deg)
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease
}

.faq-a-inner {
    padding: 0 0 24px;
    color: #CBD5E1;
    line-height: 1.6;
    max-width: 60ch;
    font-size: 15px
}

.faq-item.open .faq-a {
    max-height: 800px
}

/* ============ FOOTER ============ */
.site-footer {
    background: #0B1220;
    color: #94A3B8;
    padding-block: 56px 28px
}

.foot-top {
    padding: 24px 28px;
    background: rgb(255 255 255 / 4%);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: var(--r-lg);
    margin-bottom: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap
}

.foot-top-t {
    font-size: 13px;
    color: #CBD5E1
}

.foot-top-t strong {
    color: #fff;
    font-weight: 600
}

.foot-top a {
    color: #93C5FD;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.foot-grid {
    display: grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px
}

@media (width <= 900px) {
    .foot-grid {
        grid-template-columns:1fr 1fr;
        gap: 36px
    }
}

@media (width <= 520px) {
    .foot-grid {
        grid-template-columns:1fr
    }
}

.foot-brand .b-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.01em
}

.foot-brand p {
    max-width: 36ch;
    font-size: 14px;
    line-height: 1.6
}

.foot-col h3 {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #7C8BA0;
    font-weight: 500;
    margin-bottom: 18px
}

.foot-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.foot-col a {
    font-size: 14px;
    color: #CBD5E1;
    transition: color .2s
}

.foot-col a:hover {
    color: #fff
}

.foot-bot {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid rgb(255 255 255 / 10%);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7C8BA0;
}

/* reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1)
}

.reveal.in {
    opacity: 1;
    transform: none
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none
    }

    .ticker-track {
        animation: none
    }
}

/* Material visual strip */
.materials {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 12px;
    margin-top: 48px
}

@media (width <= 700px) {
    .materials {
        grid-template-columns:repeat(2, 1fr)
    }
}

.mat {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--sand);
    position: relative;
    margin: 0
}

.mat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .8, .2, 1)
}

.mat:hover img {
    transform: scale(1.08)
}

.mat-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgb(255 255 255 / 95%);
    padding: 5px 10px;
    border-radius: var(--r);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 500;
}

/* ============ WordPress generic content (post/page) ============ */
.site-main {
    padding-block: var(--section)
}

.post-article, .page-article {
    max-width: 72ch;
    margin: 0 auto
}

.post-article h1, .page-article h1 {
    font-size: clamp(36px, 5vw, 64px);
    margin-bottom: 24px;
    line-height: 1.02;
    letter-spacing: -0.025em
}

.post-article .entry-meta, .page-article .entry-meta {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 32px
}

.post-article p, .page-article p {
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-2)
}

.post-article h2, .page-article h2 {
    font-size: 32px;
    margin: 48px 0 16px
}

.post-article h3, .page-article h3 {
    font-size: 24px;
    margin: 36px 0 14px
}

.post-article ul, .page-article ul, .post-article ol, .page-article ol {
    margin: 0 0 20px 22px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-2)
}

.post-article img, .page-article img {
    border-radius: var(--r-lg);
    margin-block: 24px
}

.post-article blockquote, .page-article blockquote {
    border-left: 3px solid var(--blue);
    padding: 6px 22px;
    margin: 28px 0;
    font-style: italic;
    color: var(--ink-2)
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase
}

.post-nav a {
    color: var(--ink-2);
    transition: color .2s
}

.post-nav a:hover {
    color: var(--blue)
}

.page-title-bar {
    padding-block: clamp(60px, 8vh, 100px) 40px;
    border-bottom: 1px solid var(--rule)
}

.page-title-bar .eyebrow {
    margin-bottom: 18px
}

.page-title-bar h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.03em
}

.archive-list {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 24px
}

@media (width <= 900px) {
    .archive-list {
        grid-template-columns:1fr
    }
}

.archive-card {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .35s, box-shadow .35s
}

.archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -20px rgb(15 23 42 / 18%)
}

.archive-card .thumb {
    aspect-ratio: 4/3;
    background: var(--sand);
    overflow: hidden
}

.archive-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.archive-card .body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1
}

.archive-card h3 {
    font-size: 20px;
    line-height: 1.2
}

.archive-card .meta {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted)
}

.err-404 {
    text-align: center;
    padding-block: var(--section)
}

.err-404 .code {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--blue);
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 18px
}

.err-404 h1 {
    font-size: clamp(48px, 8vw, 120px);
    line-height: .9;
    letter-spacing: -0.04em;
    margin-bottom: 18px
}

.err-404 p {
    font-size: 18px;
    color: var(--ink-2);
    max-width: 52ch;
    margin: 0 auto 36px
}

.search-form {
    display: flex;
    gap: 8px;
    max-width: 480px
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--rule);
    border-radius: var(--r);
    background: #fff;
    font-size: 15px
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--blue)
}

/* admin bar offset — WP admin bar is fixed on desktop/tablet, absolute on ≤600px */
.admin-bar .nav {
    top: 32px
}

@media (width <= 782px) {
    .admin-bar .nav {
        top: 46px
    }
}

@media (width <= 600px) {
    .admin-bar .nav {
        top: 0
    }
}

/* Placeholder visible sur les pages légales tant que le champ Customizer correspondant n'est pas renseigné. */
.sbc-legal-todo {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.9em;
    font-weight: 500
}

/* ============ Single Réalisation ============ */
.rea-back {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px
}

.rea-back a {
    color: var(--muted);
    transition: color .2s
}

.rea-back a:hover {
    color: var(--blue)
}

.rea-single-meta {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 18px
}

.rea-single-hero {
    margin: 0 auto 40px;
    max-width: 1360px;
}

.rea-single-hero img {
    width: 100%;
    height: auto;
    border-radius: var(--r-lg);
    display: block
}
