/* themes.css - BM Menuiseries Nouvelle Charte Graphique */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
    /* ==========================================
       BM MENUISERIES - PALETTE ORIGINALE
       ========================================== */

    /* Couleurs principales */
    --bm-primary: #0f1629;
    /* Bleu Nuit - Fond principal */
    --bm-primary-light: #1a2744;
    /* Bleu Nuit clair */
    --bm-accent: #c9a86c;
    /* Or Bronze - Accents */
    --bm-accent-dark: #b08d4f;
    /* Or Bronze foncé */
    --bm-accent-light: #d4bc8a;
    /* Or Bronze clair */

    /* Couleurs neutres */
    --bm-white: #ffffff;
    --bm-light: #fafafa;
    /* Blanc cassé - Fonds clairs */
    --bm-gray-100: #f8fafc;
    --bm-gray-200: #f1f5f9;
    --bm-gray-300: #e2e8f0;
    --bm-gray: #64748b;
    /* Gris Ardoise - Textes secondaires */
    --bm-gray-dark: #475569;
    --bm-text: #1e293b;
    /* Texte principal */

    /* Couleurs d'état */
    --bm-success: #10b981;
    --bm-danger: #ef4444;
    --bm-warning: #f59e0b;

    /* Legacy variables (compatibilité) */
    --bg-primary: var(--bm-white);
    --bg-secondary: var(--bm-light);
    --text-primary: var(--bm-text);
    --text-secondary: var(--bm-gray);
    --accent-navy: var(--bm-primary);
    --accent-navy-light: var(--bm-primary-light);
    --accent-crimson: var(--bm-accent);
    --accent-crimson-dark: var(--bm-accent-dark);

    /* Layout */
    --max-width: 1200px;
    --transition-speed: 0.3s;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #adb5bd;
    --accent-navy: #38bdf8;
    --accent-crimson: var(--bm-accent);
}

/* BASE STYLES */

html {
    scroll-behavior: smooth;
}

html {
    max-width: 100%;
    overflow-x: clip;
}

body {
    max-width: 100%;
    overflow-x: clip;
}

html.menu-open,
body.menu-open {
    overflow: hidden !important;
    height: 100% !important;
    position: fixed !important;
    width: 100% !important;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Fix pour les écrans tablette (iPad, 1024x1366, etc.) - Commenté car peut casser l'alignement Bootstrap */
/* 
.row {
    margin-left: 0;
    margin-right: 0;
}
*/

.container,
.container-fluid {
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--bm-gray);
    line-height: 1.7;
    background-color: var(--bm-white);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2 {
    font-family: 'Outfit', sans-serif;
    color: var(--bm-text);
    font-weight: 700;
}

a {
    transition: all 0.3s ease;
}

/* ==========================================
   HEADER & NAVIGATION - BM STYLE
   ========================================== */


.header-top {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bm-gray-200);
    z-index: 1030;
    transition: all 0.3s ease;
    height: 130px;
    overflow: visible;
}

.header-top .container {
    height: 100%;
}

.header-top .navbar-brand {
    margin-top: -15px;
}

/* Header réduit au scroll */
.header-top.header-scrolled {
    padding: 0.25rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top.header-scrolled .navbar-brand img {
    height: 60px !important;
    max-height: 60px !important;
}

/* Header Logo */
.header-logo {
    height: 160px !important;
    width: auto !important;
    max-height: 160px !important;
    object-fit: contain !important;
    transition: height 0.3s ease;
}

@media (max-width: 992px) {
    .header-logo {
        height: 130px !important;
        max-height: 130px !important;
        margin-top: -15px !important;
        /* Pour centrer le grand logo dans un petit header */
    }

    .header-top {
        padding: 0 !important;
        height: 100px !important;
        min-height: 100px !important;
        position: relative !important;
        background: #fff !important;
        z-index: 1050 !important;
        display: flex !important;
        align-items: center !important;
        overflow: visible !important;
        /* Permet au logo de déborder légèrement si besoin */
    }

    .header-top .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 100% !important;
    }

    .nav-bar-main {
        position: sticky !important;
        top: 0 !important;
        z-index: 1040 !important;
        background: var(--bm-primary) !important;
    }

    body {
        padding-top: 0 !important;
    }

    /* Menu Mobile - décalage pour voir l'ACCUEIL */
    .navbar-collapse {
        max-height: 85vh !important;
        overflow-y: auto !important;
        background: var(--bm-primary);
        padding-top: 25px !important;
        /* Espace pour dégager le premier item */
        padding-bottom: 2rem;
    }

    .navbar-nav {
        padding-top: 10px !important;
        width: 100%;
    }

    /* Garantie de visibilité de l'Accueil */
    .navbar-nav .nav-item:first-child {
        display: block !important;
        margin-bottom: 5px !important;
    }
}

@media (max-width: 576px) {
    .header-logo {
        height: 110px !important;
        max-height: 110px !important;
    }

    .header-top .container {
        min-height: 90px !important;
    }
}

/* Landscape mode - smaller logo */
@media (orientation: landscape) and (max-height: 500px) {
    .header-logo {
        height: 55px !important;
        max-height: 55px !important;
    }

    .header-top {
        padding: 0.5rem 0;
    }
}

/* Navbar principale - STICKY */
.nav-bar-main {
    background: var(--bm-primary);
    padding: 0;
    position: sticky !important;
    top: 0 !important;
    z-index: 1030;
}

.nav-bar-main .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 1.1rem 1.25rem !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-bar-main .nav-link:hover,
.nav-bar-main .nav-link.active,
.nav-bar-main .show>.nav-link {
    color: #fff !important;
    background: rgba(201, 168, 108, 0.1);
    border-bottom-color: var(--bm-accent);
}

/* Cart icon dans navbar */
.nav-bar-main .nav-link .fa-cart-shopping {
    font-size: 1.1rem;
}

.cart-badge {
    background: #c9a86c !important;
    color: #0f1629 !important;
    font-weight: 700;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 4px;
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 10;
    border: 1px solid #1a2744;
}

.navbar-nav {
    justify-content: center;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--bm-text);
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bm-gray-100);
    color: var(--bm-accent-dark);
    padding-left: 1.75rem;
}

/* ==========================================
   DROPDOWN ON HOVER (Desktop uniquement)
   ========================================== */

@media (min-width: 992px) {

    /* Afficher le dropdown au survol */
    .nav-bar-main .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Animation d'apparition du dropdown */
    .nav-bar-main .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.25s ease;
        pointer-events: none;
    }

    /* Activer les interactions quand visible */
    .nav-bar-main .nav-item.dropdown:hover>.dropdown-menu {
        pointer-events: auto;
    }

    /* Style du lien dropdown au survol */
    .nav-bar-main .nav-item.dropdown:hover>.nav-link {
        color: #fff !important;
        background: rgba(201, 168, 108, 0.15);
        border-bottom-color: var(--bm-accent);
    }
}

/* ==========================================
   BUTTONS - BM STYLE
   ========================================== */

/* Bouton principal (Or Bronze) */
.btn-bm-primary,
.btn-crimson,
.btn-crimson-cta {
    background: #c9a86c !important;
    color: #0f1629 !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    padding: 0.9rem 2rem !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    text-transform: none;
    text-decoration: none;
}

.btn-bm-primary:hover,
.btn-crimson:hover,
.btn-crimson-cta:hover {
    background: #b08d4f !important;
    color: #0f1629 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 108, 0.3);
    text-decoration: none;
}

/* Bouton secondaire (Bleu Nuit) */
.btn-bm-secondary,
.btn-navy-cta {
    background: #0f1629 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    padding: 0.9rem 2rem !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    text-decoration: none;
}

.btn-bm-secondary:hover,
.btn-navy-cta:hover {
    background: #1a2744 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 22, 41, 0.3);
    text-decoration: none;
}

/* Bouton outline */
.btn-bm-outline,
.btn-navy-outline {
    background: transparent !important;
    border: 2px solid #c9a86c !important;
    color: #c9a86c !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    padding: 0.85rem 2rem !important;
    transition: all 0.3s ease !important;
}

.btn-bm-outline:hover,
.btn-navy-outline:hover {
    background: #c9a86c !important;
    color: #0f1629 !important;
}

/* ==========================================
   HERO CTA BUTTONS - UNIFIED
   ========================================== */

/* Hero button wrapper for centering */
.hero-btn-wrapper {
    display: flex;
    justify-content: flex-start;
}

/* Unified Hero CTA Button */
.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 55px;
    padding: 0 2.5rem;
    background: #c9a86c !important;
    color: #0f1629 !important;
    border: none !important;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-hero-cta:hover {
    background: #b08d4f !important;
    color: #0f1629 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 168, 108, 0.4);
}

/* Portrait mode - center hero buttons */
@media (orientation: portrait),
(max-width: 768px) {
    .hero-btn-wrapper {
        justify-content: center !important;
        width: 100%;
    }

    .btn-hero-cta {
        min-width: 200px;
    }

    /* Center hero text column */
    .hero-section .col-lg-7 {
        text-align: center !important;
    }

    .hero-section .text-crimson,
    .hero-section h1,
    .hero-section p {
        text-align: center !important;
    }
}

.header-top .btn-bm-primary,
.header-top .btn-bm-secondary {
    height: 50px !important;
    min-width: 160px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-content-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 3rem;
    border-left: 5px solid var(--bm-accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-content-box {
        padding: 1.5rem;
        margin-left: 0;
        margin-right: 0;
        border-left: none;
        border-top: 5px solid var(--bm-accent);
    }
}

/* ==========================================
   CARDS - BM STYLE
   ========================================== */

.category-card {
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */

.container {
    max-width: var(--max-width);
}

.py-section {
    padding: 5rem 0;
}

.bg-off-white {
    background-color: var(--bm-light);
}

/* ==========================================
   SERVICE CARDS - HOMEPAGE
   ========================================== */

.bm-services-section {
    position: relative;
}

.bm-link-arrow {
    color: #0f1629;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bm-link-arrow:hover {
    color: #c9a86c;
}

.bm-service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bm-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.bm-service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.bm-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bm-service-card:hover .bm-service-image img {
    transform: scale(1.1);
}

.bm-service-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1629 0%, #1a2744 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-service-placeholder i {
    font-size: 4rem;
    color: #c9a86c;
}

.bm-service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 22, 41, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bm-service-card:hover .bm-service-overlay {
    opacity: 1;
    pointer-events: auto;
}

.bm-service-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bm-service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c9a86c 0%, #b08d4f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    margin-top: -40px;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(201, 168, 108, 0.3);
}

.bm-service-icon i {
    color: #0f1629;
    font-size: 1.25rem;
}

.bm-service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.bm-service-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1rem;
}

.bm-service-link {
    color: #c9a86c;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.bm-service-link:hover {
    color: #b08d4f;
}

.bm-service-link i {
    transition: transform 0.2s ease;
}

.bm-service-link:hover i {
    transform: translateX(5px);
}

/* Portrait mode centering for services */
@media (orientation: portrait),
(max-width: 768px) {
    .bm-service-content {
        text-align: center;
    }

    .bm-service-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .bm-service-link {
        justify-content: center;
    }
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: var(--bm-primary);
    color: white;
}

/* ==========================================
   SECTION HEADERS - BM STYLE
   ========================================== */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    color: var(--bm-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bm-text);
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--bm-accent);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--bm-accent);
    margin: 0 auto;
}

/* ==========================================
   FORM STYLES
   ========================================== */

.form-control:focus {
    border-color: var(--bm-accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--bm-text);
    margin-bottom: 0.5rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 992px) {
    .nav-bar-main .nav-link {
        padding: 1rem 1.25rem !important;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .nav-bar-main .nav-link:hover,
    .nav-bar-main .nav-link.active {
        border-left-color: var(--bm-accent);
        border-bottom: none;
    }

    .btn-navy-cta,
    .btn-crimson-cta {
        min-width: 160px;
        height: 45px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .py-section {
        padding: 3.5rem 0;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ==========================================
   TEXT COLORS - BM STYLE
   ========================================== */

.text-bm-primary {
    color: var(--bm-primary) !important;
}

.text-bm-accent {
    color: var(--bm-accent) !important;
}

.text-bm-gray {
    color: var(--bm-gray) !important;
}

.text-navy {
    color: var(--bm-primary) !important;
}

/* ==========================================
   BACKGROUNDS - BM STYLE
   ========================================== */

.bg-bm-primary {
    background-color: var(--bm-primary) !important;
}

.bg-bm-accent {
    background-color: var(--bm-accent) !important;
}

.bg-bm-light {
    background-color: var(--bm-light) !important;
}

/* ==========================================
   GLOBAL PORTRAIT/MOBILE CENTERING
   ========================================== */

/* Portrait mode - center everything */
@media (orientation: portrait),
(max-width: 768px) {

    /* Page titles and subtitles */
    .bm-page-title,
    .bm-page-subtitle,
    .bm-highlight {
        text-align: center !important;
    }

    .bm-page-hero .row,
    .bm-page-hero .col-lg-8 {
        text-align: center !important;
    }

    /* Breadcrumb */
    .breadcrumb {
        justify-content: center !important;
    }

    /* Section headers */
    .bm-section-label,
    .bm-section-title,
    .section-header,
    .section-title,
    .section-label {
        text-align: center !important;
    }

    /* Content sections */
    .bm-sidebar-title,
    .bm-sidebar-text,
    .bm-form-title,
    .bm-contact-sidebar {
        text-align: center !important;
    }

    /* Cards */
    .bm-content-card,
    .bm-info-card,
    .bm-value-card {
        text-align: center !important;
    }

    .bm-card-content,
    .bm-info-content {
        text-align: center !important;
    }

    /* Product cards */
    .bm-product-content,
    .bm-product-title,
    .bm-product-desc {
        text-align: center !important;
    }

    /* Center flex containers */
    .bm-info-card {
        flex-direction: column !important;
        align-items: center !important;
    }

    .bm-content-card {
        flex-direction: column !important;
        align-items: center !important;
    }

    .bm-card-icon,
    .bm-info-icon {
        margin: 0 auto 1rem auto !important;
    }

    /* Form elements */
    .bm-form-header {
        text-align: center !important;
    }

    .bm-form-footer {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Hero content */
    .bm-hero-content {
        text-align: center !important;
    }

    /* Buttons container */
    .bm-btn-group,
    .bm-product-actions {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    /* Price box */
    .bm-product-price-box {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Features */
    .bm-product-features {
        justify-content: center !important;
    }

    /* Info lists */
    .bm-info-list {
        text-align: left !important;
    }

    /* Social links */
    .bm-social-links,
    .bm-social-section {
        text-align: center !important;
    }

    .bm-social-links {
        justify-content: center !important;
    }

    /* Contact info */
    .bm-contact-sidebar p,
    .bm-sidebar-text {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* General text */
    .bm-section p,
    .bm-section .lead {
        text-align: center !important;
    }

    /* Center columns */
    .bm-section .row>div {
        text-align: center !important;
    }

    /* Sidebar */
    .bm-sidebar-section {
        text-align: center !important;
    }

    .bm-category-list {
        align-items: center !important;
    }
}

/* Extra small screens */
@media (max-width: 576px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        text-align: center !important;
    }

    p {
        text-align: center !important;
    }

    .container {
        text-align: center !important;
    }

    .row>div {
        text-align: center !important;
    }
}

/* ==========================================
   REALISATIONS PAGE - PREMIUM STYLES
   ========================================== */

/* Hero Section with Background */
.realisations-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bm-primary) 0%, var(--bm-primary-light) 100%);
    overflow: hidden;
}

.realisations-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/background.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.realisations-hero .container {
    position: relative;
    z-index: 2;
}

.realisations-hero h1 {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.realisations-hero h1 span {
    color: var(--bm-accent);
}

.realisations-hero .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    line-height: 1.8;
}

/* Decorative element */
.hero-decoration {
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 400px;
    height: 400px;
    border: 3px solid var(--bm-accent);
    border-radius: 50%;
    opacity: 0.1;
}

/* Statistics Section */
.stats-section {
    background: var(--bm-primary);
    padding: 3rem 0;
    margin-top: -1px;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--bm-accent);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filter Buttons */
.filter-section {
    padding: 3rem 0 2rem;
    background: var(--bm-light);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--bm-gray-300);
    background: #fff;
    color: var(--bm-gray);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--bm-accent);
    color: var(--bm-accent);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--bm-primary);
    border-color: var(--bm-primary);
    color: #fff;
    box-shadow: 0 5px 20px rgba(15, 22, 41, 0.3);
}

/* Portfolio Grid */
.portfolio-section {
    padding: 4rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Card */
.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: #fff;
}

.portfolio-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.15);
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 22, 41, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay-content {
    transform: translateY(0);
}

.portfolio-overlay .view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bm-accent);
    color: var(--bm-primary);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.portfolio-overlay .view-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Portfolio Badge */
.portfolio-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--bm-accent);
    color: var(--bm-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    z-index: 2;
}

/* Portfolio Content */
.portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    color: var(--bm-accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bm-text);
    margin-bottom: 0.75rem;
}

.portfolio-description {
    color: var(--bm-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Lightbox Modal - Premium Redesign */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    animation: lightboxPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxPop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lightbox-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.lightbox-content:hover .lightbox-image {
    transform: scale(1.05);
}

.lightbox-info {
    background: #fff;
    padding: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.lightbox-info h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bm-primary);
    margin-bottom: 0.75rem;
}

.lightbox-info p {
    font-size: 1.05rem;
    color: var(--bm-gray);
    line-height: 1.6;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--bm-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--bm-accent);
    color: var(--bm-primary);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--bm-primary);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-nav:hover {
    background: var(--bm-accent);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 992px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content {
        max-width: 100%;
        border-radius: 16px;
    }
}

/* Expertise Section */
.expertise-section {
    background: var(--bm-light);
    padding: 5rem 0;
}

.expertise-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bm-primary) 0%, var(--bm-primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.expertise-icon i {
    font-size: 2rem;
    color: var(--bm-accent);
}

.expertise-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bm-text);
    margin-bottom: 1rem;
}

.expertise-text {
    color: var(--bm-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* CTA Section */
.realisations-cta {
    background: linear-gradient(135deg, var(--bm-primary) 0%, var(--bm-primary-light) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.realisations-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/background.jpg') center/cover no-repeat;
    opacity: 0.1;
}

.realisations-cta .container {
    position: relative;
    z-index: 2;
}

.realisations-cta h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.realisations-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Load More Button */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--bm-primary);
    color: var(--bm-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--bm-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 22, 41, 0.3);
}

/* Counter Animation */
.stat-number.counting {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .realisations-hero {
        min-height: 350px;
    }

    .realisations-hero h1 {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}


/* Specific fix for Realisations Hero on Mobile */
@media (max-width: 768px) {
    .realisations-hero h1 {
        font-size: 2rem !important;
        word-break: break-word;
    }

    .realisations-hero .lead {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .portfolio-grid {
        display: block !important;
    }

    .portfolio-card {
        margin-bottom: 2rem;
        width: 100% !important;
    }
}

/* Portfolio Filter Animation - Smooth transitions without layout jumps */
.portfolio-grid {
    transition: all 0.5s ease;
}

.portfolio-card {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

.portfolio-card.filtering {
    opacity: 0;
    transform: scale(0.95);
}

.portfolio-card.filtered-out {
    display: none !important;
}

/* CTA Button Text Centering */
.realisations-cta .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: 60px !important;
    line-height: 1 !important;
    padding: 0 2rem !important;
}

.realisations-cta .btn-bm-outline {
    border-width: 2px !important;
}

.realisations-cta .btn i {
    margin-right: 12px;
    font-size: 1.1rem;
}

/* ==========================================
   FIX TABLETTE 1024px (iPad Pro portrait)
   Navigation trop large - forcer menu burger
   ========================================== */
@media (max-width: 1100px) {

    /* Afficher le bouton burger du header-top sur tablette */
    .header-top .navbar-toggler {
        display: flex !important;
        position: relative;
        z-index: 1100;
        /* Plus haut que le menu overlay */
    }

    .header-top {
        position: relative;
        z-index: 1100;
    }

    /* Cacher le fond de la navbar principale mais garder le contenu pour le toggle */
    .nav-bar-main {
        background: transparent !important;
        box-shadow: none !important;
        height: 0;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Forcer le style menu mobile pour le collapse */
    #navbarNav {
        background: var(--bm-primary);
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        padding: 80px 20px 20px !important;
        overflow-y: auto;
    }

    #navbarNav.collapse:not(.show) {
        display: none !important;
    }

    #navbarNav.collapse.show {
        display: block !important;
    }

    #navbarNav .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    #navbarNav .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #navbarNav .nav-link {
        color: white !important;
        padding: 15px 0 !important;
        font-size: 1.1rem;
    }
}

/* ==========================================
   HERO SLIDER - IMPROVED TEXT READABILITY
   ========================================== */

/* Hero Slider Text Shadow for better readability */
.hero-slider h1,
.hero-slider .display-3 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(0, 0, 0, 0.5);
}

.hero-slider .lead,
.hero-slider p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-slider span.text-crimson,
.hero-slider .text-crimson {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Improved contrast badge */
.hero-slider .letter-spacing-2 {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 700 !important;
}

/* Button visibility enhancement */
.btn-hero-cta {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Dark overlay on images for better text contrast */
.hero-section .position-absolute img+div {
    background: linear-gradient(90deg,
            rgba(15, 22, 41, 0.85) 0%,
            rgba(15, 22, 41, 0.6) 40%,
            rgba(15, 22, 41, 0.3) 70%,
            transparent 100%) !important;
}

/* Mobile: even darker overlay for readability */
@media (max-width: 992px) {
    .hero-section .position-absolute img+div {
        background: linear-gradient(180deg,
                rgba(15, 22, 41, 0.9) 0%,
                rgba(15, 22, 41, 0.7) 50%,
                rgba(15, 22, 41, 0.5) 100%) !important;
    }

    .hero-slider h1,
    .hero-slider .display-3 {
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    }
}

/* ==========================================
   CHECKOUT PAYPAL FIX - Mobile Portrait
   ========================================== */

/* Hide PayPal powered by branding */
#paypal-button-container .paypal-powered-by,
#paypal-button-container [class*="powered-by"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

#paypal-button-container {
    overflow: hidden !important;
    max-height: 130px !important;
    /* Coupe le texte branding */
}

/* Mobile portrait - reduce excessive spacing */
@media (max-width: 991px) {
    #paypal-button-container {
        margin-bottom: 1rem !important;
    }

    .checkout-container .form-section {
        padding-bottom: 2rem !important;
    }
}

/* ==========================================
   ADD TO CART TOAST NOTIFICATION
   ========================================== */

/* Toast slide up animation */
@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast slide down animation */
@keyframes toastSlideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* ==========================================
   SUCCESS PAGE BUTTONS FIX
   ========================================== */

/* Force buttons to stack vertically */
.success-buttons-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
}

.success-buttons-row .btn {
    width: 100% !important;
    text-align: center !important;
}