/* ===== Blackbird Widgets — Shared Styles ===== */

/* Force full-width for all BB widgets */
[class*="elementor-widget-bb-"] > .elementor-widget-container {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
[class*="elementor-widget-bb-"] {
    max-width: none !important;
    width: 100% !important;
}

:root {
    --bb-dark: #050506;
    --bb-dark-alt: #0b0b0e;
    --bb-red: #E1352A;
    --bb-blue: #1E6FE6;
    --bb-text: #e9e7e2;
    --bb-muted: #a9a9b0;
    --bb-border: rgba(255,255,255,.08);
    --bb-pad: 56px;
}

/* ---- Tag ---- */
.bb-tag {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: .3em;
    font-size: 14px;
    color: var(--bb-red);
    font-weight: 600;
    line-height: 1;
}

/* ---- Heading ---- */
.bb-heading {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: #f4f2ee;
    margin: 0;
    line-height: 1;
}

/* ---- Body text ---- */
.bb-body {
    font-family: 'Barlow', sans-serif;
    color: var(--bb-muted);
    font-size: 17px;
    line-height: 1.6;
}

/* ---- Buttons ---- */
.bb-btn-primary,
.bb-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 30px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s;
}
.bb-btn-primary { background: var(--bb-red); color: #fff; }
.bb-btn-primary:hover { opacity: .88; color: #fff; }
.bb-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.bb-btn-outline:hover { border-color: rgba(255,255,255,.55); color: #fff; }

/* ---- Nav link pill ---- */
.bb-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 15px;
    font-weight: 500;
}
.bb-nav-pill:hover { border-color: rgba(255,255,255,.55); color: #fff; }

/* ---- Scroll-snap slider ---- */
.bb-slider-viewport {
    overflow: hidden;
    border-radius: 6px;
}
.bb-slider-track {
    display: flex;
    scrollbar-width: none;
}
.bb-slider-track::-webkit-scrollbar { display: none; }
.bb-slider-slide {
    position: relative;
    flex: 0 0 100%;
}
.bb-slider-slide.bb-reveal {
    opacity: 1;
    transform: none;
}

/* ---- Service card hover ---- */
.bb-services-card:hover {
    border-color: var(--bb-red) !important;
}
.bb-services-card img {
    transition: transform .6s ease;
}
.bb-services-card:hover img {
    transform: scale(1.05);
}

/* ---- Team member hover ---- */
#equipe .bb-grid-2 > div {
    transition: transform .3s ease, box-shadow .3s ease;
}
#equipe .bb-grid-2 > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(225,53,42,.12);
}
#equipe .bb-grid-2 > div img {
    transition: transform .6s ease;
}
#equipe .bb-grid-2 > div:hover img {
    transform: scale(1.05);
}

/* ---- Locaux equipment cards hover ---- */
.bb-locaux-grid > div {
    transition: border-color .4s ease, transform .4s cubic-bezier(.25,.46,.45,.94);
}
.bb-locaux-grid > div:hover {
    border-color: var(--bb-red) !important;
    transform: translateY(-2px);
}
.bb-locaux-grid > div svg {
    transition: transform .4s ease;
}
.bb-locaux-grid > div:hover svg {
    transform: scale(1.1);
}

/* ---- Locaux photos hover zoom ---- */
.bb-locaux-photos > div {
    overflow: hidden;
}
.bb-locaux-photos > div img {
    transition: transform .6s ease;
}
.bb-locaux-photos > div:hover img {
    transform: scale(1.06);
}


/* ---- Button glow on hover ---- */
.bb-btn-primary {
    transition: opacity .2s, box-shadow .3s, transform .2s;
}
.bb-btn-primary:hover {
    opacity: 1 !important;
    box-shadow: 0 6px 28px rgba(225,53,42,.4);
    transform: translateY(-2px);
}
.bb-btn-outline {
    transition: border-color .2s, transform .2s, box-shadow .3s;
}
.bb-btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,.06);
}

/* ---- Nav link hover underline (only anchor links, not pills/icons) ---- */
.bb-hero-nav-links a[href^="#"] {
    position: relative;
}
.bb-hero-nav-links a[href^="#"]::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bb-red);
    transition: width .3s ease;
}
.bb-hero-nav-links a[href^="#"]:hover::after,
.bb-hero-nav-links a[href^="#"].bb-nav-active::after {
    width: 100%;
}

/* ---- Scroll reveal animation ---- */
.bb-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.bb-reveal.bb-visible {
    opacity: 1;
    transform: translateY(0);
}
.bb-reveal-delay-1 { transition-delay: .1s; }
.bb-reveal-delay-2 { transition-delay: .2s; }
.bb-reveal-delay-3 { transition-delay: .3s; }

/* ---- Contact sidebar hover ---- */
.bb-contact-sidebar {
    transition: box-shadow .3s ease;
}
.bb-contact-sidebar:hover {
    box-shadow: 0 8px 40px rgba(225,53,42,.08);
}

/* ---- Nav pill social hover ---- */
.bb-navbar a[aria-label]:hover {
    color: var(--bb-red) !important;
}
.bb-contact-sidebar a[aria-label]:hover {
    color: var(--bb-red) !important;
}

/* ---- Form inputs ---- */
.bb-input {
    background: var(--bb-dark);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    padding: 16px 18px;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Barlow', sans-serif;
    width: 100%;
}
.bb-input::placeholder { color: #6a6a72; }
.bb-input:focus { outline: none; border-color: var(--bb-red); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    :root { --bb-pad: 28px; }
    .bb-hero-title { font-size: 48px !important; text-align: center !important; }
    .bb-grid-2 { grid-template-columns: 1fr !important; }
    .bb-grid-3 { grid-template-columns: 1fr !important; }
    .bb-services-card { height: 380px !important; }
    .bb-hero-nav-links { display: none !important; }
    .bb-hamburger { display: flex !important; }
    .bb-mobile-menu.bb-mobile-open { display: flex !important; z-index: 1000; }
    .bb-locaux-photos { grid-template-columns: 1fr !important; grid-template-rows: auto !important; height: auto !important; }
    .bb-locaux-photos > div:first-child { grid-row: auto !important; height: 320px; }
    .bb-locaux-photos > div:nth-child(2),
    .bb-locaux-photos > div:nth-child(3) { height: 240px; }
    .bb-locaux-grid { grid-template-columns: 1fr 1fr !important; }
    .bb-locaux-stats { gap: 30px !important; flex-wrap: wrap; justify-content: center !important; }
    .bb-stats-row { flex-wrap: wrap; gap: 28px !important; justify-content: center !important; }
    .bb-footer-inner { flex-direction: column; gap: 20px; text-align: center; align-items: center !important; }
    .bb-footer-inner > div:last-child { flex-direction: column; align-items: center; gap: 10px !important; }
    .bb-nav-pill { font-size: 13px !important; padding: 8px 14px !important; }
    .bb-contact-sidebar { margin-top: 20px; }
    .bb-tag { text-align: center !important; }
    .bb-heading { text-align: center !important; }
    .bb-body { text-align: center !important; }
    .bb-services-card div:last-child { text-align: center !important; }
    #services > div:first-child { text-align: center !important; }
    #sinistre, #services, #creations, #locaux, #equipe, #histoire, #contact { text-align: center; }
    #sinistre p, #services p, #locaux p, #equipe p, #contact p { text-align: center !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; }
    .bb-hero-title + p { text-align: center !important; max-width: none !important; }
    #histoire > div:nth-child(3) { text-align: center; }
    #histoire p { text-align: center !important; }
    .bb-slider-header { flex-direction: column !important; align-items: center !important; }
    .bb-slider-controls { justify-content: center !important; }
    .bb-slider-slide { height: 400px !important; }
    .bb-slide-info { left: 20px !important; bottom: 24px !important; }
    .bb-slide-name { font-size: 28px !important; }
    .bb-contact-form { align-items: center !important; }
    .bb-btn-primary[type="submit"] { align-self: center !important; }
    .bb-btn-primary, .bb-btn-outline { width: 100% !important; justify-content: center !important; }
}
@media (max-width: 600px) {
    .bb-hero-title { font-size: 36px !important; }
    .bb-heading-lg { font-size: 36px !important; }
    .bb-heading-xl { font-size: 42px !important; }
    .bb-slider-slide { height: 360px !important; }
    .bb-locaux-grid { grid-template-columns: 1fr !important; }
}

/* ===== Blog Card ===== */
.bb-blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--bb-red) !important;
}
.bb-blog-card img {
    transition: transform .6s ease;
}
.bb-blog-card:hover img {
    transform: scale(1.05);
}

/* ===== Blog Filters ===== */
.bb-blog-filter-btn {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 14px;
    font-weight: 500;
    color: var(--bb-muted);
    background: transparent;
    border: 1px solid var(--bb-border);
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}
.bb-blog-filter-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,.3);
}
.bb-blog-filter-btn.active {
    color: #fff;
    background: var(--bb-red);
    border-color: var(--bb-red);
}

/* ===== Blog Pagination ===== */
.bb-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    border: 1px solid var(--bb-border);
    background: transparent;
    color: var(--bb-muted);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s, border-color .2s, background .2s;
}
.bb-pagination-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,.3);
}
.bb-pagination-btn.active {
    color: #fff;
    background: var(--bb-red);
    border-color: var(--bb-red);
}

/* ===== Article Hero ===== */
.bb-article-title {
    font-size: 52px;
}

/* ===== Article Content Typography ===== */
.bb-article-content h2 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: #f4f2ee;
    font-size: 28px;
    line-height: 1.15;
    margin: 48px 0 18px;
}
.bb-article-content h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #f4f2ee;
    font-size: 20px;
    line-height: 1.3;
    margin: 36px 0 14px;
}
.bb-article-content p {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #c3c3c9;
    margin: 0 0 20px;
}
.bb-article-content a {
    color: var(--bb-red);
    text-decoration: none;
    transition: opacity .2s;
}
.bb-article-content a:hover {
    text-decoration: underline;
}
.bb-article-content strong {
    color: #f4f2ee;
}
.bb-article-content ul,
.bb-article-content ol {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #c3c3c9;
    margin: 0 0 20px;
    padding-left: 24px;
}
.bb-article-content ul li::marker {
    color: var(--bb-red);
}
.bb-article-content ol li::marker {
    color: var(--bb-red);
    font-weight: 600;
}
.bb-article-content blockquote {
    border-left: 3px solid var(--bb-red);
    padding-left: 24px;
    margin: 28px 0;
    font-style: italic;
    color: #c3c3c9;
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    line-height: 1.7;
}
.bb-article-content blockquote p {
    margin: 0;
}
.bb-article-content img {
    width: 100%;
    border-radius: 6px;
    margin: 32px 0;
    height: auto;
}

/* ===== Article Tags ===== */
.bb-article-tags a:hover {
    background: rgba(225,53,42,.1);
    border-color: var(--bb-red);
}

/* ===== Article CTA ===== */
.bb-article-cta .bb-btn-primary {
    display: inline-flex;
}

/* ===== Blog / Article Responsive ===== */
@media (max-width: 991px) {
    .bb-blog-grid { grid-template-columns: 1fr 1fr !important; }
    .bb-article-title { font-size: 38px !important; }
    .bb-article-hero { height: 400px !important; }
    .bb-article-related .bb-grid-3 { grid-template-columns: 1fr !important; }
    .bb-page-header h1 { font-size: 42px !important; }
}
@media (max-width: 600px) {
    .bb-blog-grid { grid-template-columns: 1fr !important; }
    .bb-article-title { font-size: 30px !important; }
    .bb-article-hero { height: 350px !important; }
    .bb-article-content h2 { font-size: 24px; }
    .bb-article-content p,
    .bb-article-content ul,
    .bb-article-content ol,
    .bb-article-content blockquote { font-size: 16px; }
    .bb-page-header h1 { font-size: 32px !important; }
    .bb-page-header { height: 300px !important; }
}
