/* =========================================
   LES BUREAUX DE BRUNO - Industriel Chic + Jaune signature
   Palette préservée :
     primary  #1C1C1C  (noir entrepôt)
     accent   #F1C40F  (jaune signature)
   ========================================= */

:root {
    --primary-color:   #1C1C1C;
    --primary-soft:    #2a2a2a;
    --secondary-color: #1a252f;
    --accent-color:    #F1C40F;
    --accent-deep:     #8f6f00;
    --text-color:      #1f2421;
    --text-light:      #4f5752;
    --bg-light:        #f4f3ef;
    --bg-beige:        #f9f7f1;
    --bg-band:         #fbf9f3;
    --border-color:    #d8d4cb;
    --line-strong:     #1C1C1C;
    --success-color:   #27ae60;
    --danger-color:    #c0392b;
    --header-safe-offset: 75px;
    --focus-color:     #8f6f00;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* A11y - focus visible global */
*:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
    border-radius: 2px;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    padding: 10px 14px;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--focus-color);
    border-radius: 4px;
    transform: translateY(-140%);
    transition: transform 0.15s ease;
}
.skip-link:focus-visible { transform: translateY(0); }

/* Utilitaires */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-fluid { max-width: 100%; padding: 0 40px; }
.text-center { text-align: center; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Eyebrow / kicker - petit liseré jaune décoratif */
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 12px;
    margin-bottom: 18px;
}

/* Titres de section */
.section-title,
.page-header-modern h1,
.hero-content-modern h1 {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.05;
}
.section-title {
    font-size: 2.4rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 18px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--accent-color);
}

/* =========================================
   2. BOUTONS
   ========================================= */
.btn-devis-header, .btn-hero, .btn-primary, .btn-secondary, .btn-voir-plus,
.btn-submit, .btn-submit-contact, .btn-devis-product, .btn-reset-filters,
.btn-service, .btn-facebook-marketplace {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}

/* JAUNE - bouton principal */
.btn-devis-header, .btn-hero, .btn-primary, .btn-submit-contact,
.btn-devis-product, .btn-service {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}
.btn-devis-header:hover, .btn-hero:hover, .btn-primary:hover,
.btn-submit-contact:hover, .btn-devis-product:hover, .btn-service:hover {
    background: var(--primary-color);
    color: var(--accent-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* NOIR - bouton secondaire */
.btn-secondary, .btn-voir-plus, .btn-submit {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.btn-secondary:hover, .btn-voir-plus:hover, .btn-submit:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* TRANSPARENT - reset */
.btn-reset-filters {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}
.btn-reset-filters:hover {
    border-color: var(--primary-color);
}
.btn-facebook-marketplace {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-facebook-marketplace:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.14);
}

/* États supplémentaires des boutons */
.btn-devis-header:disabled, .btn-hero:disabled, .btn-primary:disabled,
.btn-secondary:disabled, .btn-voir-plus:disabled, .btn-submit:disabled,
.btn-submit-contact:disabled, .btn-devis-product:disabled, .btn-service:disabled, .btn-facebook-marketplace:disabled,
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.btn-devis-header:active, .btn-hero:active, .btn-primary:active,
.btn-secondary:active, .btn-voir-plus:active, .btn-submit:active,
.btn-submit-contact:active, .btn-devis-product:active, .btn-service:active, .btn-facebook-marketplace:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

.btn-submit, .btn-submit-contact, .btn-devis-product, .btn-reset-filters, .btn-facebook-marketplace { width: 100%; }
.btn-hero { padding: 18px 38px; font-size: 1rem; }

/* =========================================
   3. INPUTS
   ========================================= */
input[type="text"], input[type="number"], input[type="email"], input[type="tel"],
input[type="file"], select, textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: var(--text-color);
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
textarea { min-height: 120px; resize: vertical; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Actions header (téléphone + devis) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}
.header-phone:hover {
    background: var(--bg-band);
    color: var(--accent-deep);
}
.header-phone-icon { font-size: 1.05rem; }
@media (max-width: 992px) {
    .header-phone-num { display: inline; }
    .header-phone {
        padding: 9px 11px;
        font-size: 0.78rem;
        background: var(--primary-color);
        color: white;
        letter-spacing: 0.06em;
    }
    .header-phone-icon { display: none; }
    .header-phone:hover {
        background: var(--primary-soft);
        color: var(--accent-color);
    }
}

/* =========================================
   4. HEADER & NAV
   ========================================= */
.site-header {
    background: white;
    box-shadow: 0 1px 0 var(--border-color);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 32px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon {
    font-size: 2rem;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.logo-text span {
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

/* Nav */
nav {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}
nav a {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    color: var(--primary-color);
    padding: 8px 0;
}
nav a:hover, nav a.active { color: var(--accent-deep); }
nav a.active::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 0;
    height: 3px;
    background: var(--accent-color);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 22px;
}
.dropdown-menu {
    position: absolute; top: calc(100% + 18px); left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s;
    z-index: 1000;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow { transform: rotate(180deg); display: inline-block; }
.dropdown-menu a { display: block; padding: 10px 22px; font-size: 0.85rem; }
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary-color); }
.dropdown-menu a::after { display: none; }

/* =========================================
   5. SECTIONS GLOBALES
   ========================================= */
section { padding: 90px 0; }

/* Hero */
.hero-modern {
    position: relative;
    min-height: 640px;
    height: auto;
    overflow: hidden;
    background: var(--primary-color);
}
.hero-image, .hero-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    background: linear-gradient(110deg, rgba(28,28,28,0.88) 0%, rgba(28,28,28,0.74) 60%, rgba(28,28,28,0.58) 100%);
}
.hero-content-modern {
    position: relative; z-index: 10;
    min-height: 640px;
    display: flex;
    align-items: center;
}
.hero-content-modern .container { width: 100%; }
.hero-content-modern .eyebrow {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}
.hero-content-modern h1 {
    color: white;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 24px;
    max-width: 900px;
}
.hero-content-modern h1 .accent { color: var(--accent-color); }
.hero-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 1.15rem;
    margin-bottom: 36px;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.hero-content-modern .hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Page Header */
.page-header, .page-header-modern {
    background: var(--primary-color);
    color: white;
    padding: 90px 0 80px;
    text-align: center;
    border-bottom: none;
    position: relative;
}
.page-header h1, .page-header-modern h1 {
    font-size: 3rem;
    margin-bottom: 12px;
    color: white;
}
.page-header-modern h1::after,
.page-header h1::after {
    content: '';
    display: block;
    width: 60px; height: 3px;
    background: var(--accent-color);
    margin: 22px auto 0;
}

/* Stats strip - variante sombre (par défaut) */
.stats-strip {
    background: var(--primary-color);
    color: white;
    padding: 50px 0;
    border-top: 4px solid var(--accent-color);
}
.stats-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}
.stats-strip > .container > div { padding: 0 30px; border-right: 1px solid #333; }
.stats-strip > .container > div:last-child { border-right: 0; }
.stat-num {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: -0.02em;
    line-height: 1;
    display: block;
}
.stat-lbl {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.78);
    margin-top: 8px;
    display: block;
}

/* Stats strip - variante claire (utilisée après le hero pour respirer) */
.stats-strip--light {
    background: var(--bg-band);
    color: var(--primary-color);
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
}
.stats-strip--light > .container > div { border-right: 1px solid var(--border-color); }
.stats-strip--light > .container > div:last-child { border-right: 0; }
.stats-strip--light .stat-num { color: var(--accent-deep); }
.stats-strip--light .stat-lbl { color: var(--text-light); }

/* =========================================
   6. CARTES PARTAGÉES
   ========================================= */
.advantage-box, .category-card, .product-card,
.service-card, .category-filter-block {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s;
}

/* Avantages / Services accueil */
.advantages-modern { background: var(--bg-band); padding: 90px 0; }
.advantages-cards, .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.advantage-box, .service-card {
    padding: 42px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
}
.advantage-box::before, .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}
.advantage-box:hover, .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(28,28,28,0.08);
}
.advantage-box:hover::before, .service-card:hover::before {
    transform: scaleX(1);
}
.advantage-icon-modern, .service-icon {
    font-size: 3rem;
    margin-bottom: 18px;
    color: var(--primary-color);
    display: inline-block;
}
.advantage-box h3, .service-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}
.service-card p, .advantage-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Catégories sur l'accueil */
.categories-section { background: white; padding: 90px 0; }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.category-card {
    background: var(--bg-band);
    border: 1px solid var(--border-color);
    padding: 36px 14px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    text-decoration: none;
    color: inherit;
}
.category-card::after {
    content: '→';
    position: absolute;
    top: 50%; right: 14px;
    transform: translateY(-50%) translateX(8px);
    color: var(--accent-color);
    font-weight: 700;
    opacity: 0;
    transition: all 0.2s;
}
.category-card:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.category-card:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.category-card h3 {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}
.category-card:hover h3 { color: white; }

/* Produits */
.featured-products-modern, .related-products-modern {
    background: var(--bg-light);
    padding: 90px 0;
}
.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}
.product-card {
    border: 1px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    background: white;
    transition: all 0.25s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(28,28,28,0.12);
    border-color: var(--primary-color);
}
.product-image-container {
    position: relative;
    height: 260px;
    background: var(--bg-band);
    overflow: hidden;
}
.product-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover .product-image { transform: scale(1.04); }
.related-products-modern .product-image {
    object-fit: contain;
    background: var(--bg-band);
}
.related-products-modern .product-card:hover .product-image {
    transform: none;
}
.product-image-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(28,28,28,0.08) 25%, transparent 25%) 0 0 / 18px 18px,
        var(--bg-band);
    color: var(--primary-color);
    text-align: center;
    border: 1px dashed var(--border-color);
}
.product-image-empty span {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}
.product-image-empty small {
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.product-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.product-details { padding: 22px 22px 24px; }
.product-details h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--primary-color);
    min-height: 48px;
    line-height: 1.3;
}
.product-card .description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-details .price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.product-stock, .product-stock-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    width: fit-content;
    background: #dff7ea;
    color: #064e3b;
    border: 1px solid #a7e7c3;
    border-radius: 2px;
    padding: 5px 10px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.product-stock-badge {
    display: inline-block;
}
.description { color: var(--text-light); font-size: 0.9rem; }

/* =========================================
   7. CATALOGUE
   ========================================= */
.catalog-section { padding: 70px 0 100px; }
.catalog-seo-intro {
    max-width: 920px;
    margin: 0 auto 36px;
    padding: 28px 30px;
    background: var(--bg-band);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
}
.catalog-seo-outro {
    margin: 46px auto 0;
}
.catalog-seo-intro p {
    color: var(--text-light);
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0;
}
.catalog-seo-intro p + p {
    margin-top: 14px;
}
.catalog-seo-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.catalog-text-link,
.catalog-priority-links a {
    color: var(--primary-color);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.catalog-priority-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}
.catalog-help-block {
    margin-top: 46px;
    padding: 30px;
    background: white;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
}
.catalog-help-block h2 {
    font-size: 1.35rem;
    margin-bottom: 18px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.catalog-help-block ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.catalog-help-block li {
    color: var(--text-light);
    line-height: 1.65;
}
.catalog-categories-blocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 40px;
}
.category-filter-block {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}
.category-filter-block:hover { border-color: var(--primary-color); }
.category-filter-block.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.category-filter-block h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.25;
    margin: 0;
}
.category-filter-block.active h3 { color: var(--accent-color); }

.catalog-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--primary-color);
}
.products-count {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    color: var(--primary-color);
}
.products-sort select {
    width: auto;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 44px;
}
.catalog-load-more {
    margin-top: 34px;
    text-align: center;
}
.catalog-load-more[hidden] {
    display: none;
}
.catalog-load-more .btn-voir-plus {
    min-height: 44px;
    width: auto;
    min-width: min(100%, 220px);
}
.no-products {
    text-align: center;
    padding: 34px 20px;
    color: var(--text-light);
}
.no-products a {
    color: var(--primary-color);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Empty state pour grid produits (home) */
.empty-state-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.05rem;
    background: var(--bg-band);
    border: 1px dashed var(--border-color);
    border-radius: 6px;
}
.empty-state-message a {
    color: var(--accent-deep);
    font-weight: 700;
    text-decoration: underline;
}

/* =========================================
   8. FICHE PRODUIT
   ========================================= */
.breadcrumb-modern {
    background: var(--bg-band);
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}
.breadcrumb-modern a {
    color: var(--text-light);
    transition: color 0.2s;
}
.breadcrumb-modern a:hover { color: var(--primary-color); }
.breadcrumb-modern,
.product-heading-modern h1,
.product-info-modern h1,
.product-details h3,
.contact-item a,
.contact-text a {
    overflow-wrap: anywhere;
}

.product-detail-modern { padding: 36px 0 60px; background: white; }
.product-layout-modern {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-areas: "gallery heading" "gallery purchase" "gallery context";
    grid-template-rows: auto auto 1fr;
    column-gap: 48px;
    align-items: start;
}
.product-heading-modern { grid-area: heading; min-width: 0; margin-bottom: 20px; }
.product-purchase-modern { grid-area: purchase; min-width: 0; overflow-wrap: anywhere; }
.product-context-modern { grid-area: context; min-width: 0; margin-top: 24px; overflow-wrap: anywhere; }
.product-gallery-modern { grid-area: gallery; min-width: 0; position: sticky; top: calc(var(--header-safe-offset) + 24px); height: fit-content; }
.main-image-modern {
    width: 100%;
    height: 520px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    margin-bottom: 16px;
    background: var(--bg-band);
}
.main-image-modern img { width: 100%; height: 100%; object-fit: contain; }
.thumbnail-gallery-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 8px;
}
.thumbnail-button {
    width: 100%;
    height: 72px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
}
.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-band);
}
.thumbnail-button:hover,
.thumbnail-button.active,
.thumbnail-button[aria-current="true"] { border-color: var(--accent-color); }

.product-heading-modern h1,
.product-info-modern h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.product-h1-dimensions {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: max(0.55em, 13px);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}
.product-meta-line {
    margin: 10px 0 0;
    color: var(--text-light);
    font-size: 0.82rem;
}
.product-intro-modern { margin: 12px 0 0; color: var(--text-color); font-size: 0.95rem; line-height: 1.55; }
.product-category-return { margin: -12px 0 28px; text-align: center; font-size: 0.9rem; }
.product-category-return a, .product-condition-content a { text-decoration: underline; text-underline-offset: 3px; }
.related-products-modern .product-stock--notice { color: var(--text-light); }
.product-price-modern {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}
.product-price-unit { font-size: 0.85rem; font-weight: 400; color: var(--text-light); letter-spacing: 0; }
.product-quantity-prices { margin: -8px 0 22px; padding-left: 12px; border-left: 2px solid var(--border-color); }
.product-quantity-prices p { margin: 0 0 4px; font-size: 0.9rem; font-weight: 600; }
.product-quantity-prices small { color: var(--text-light); font-size: 0.78rem; }
.product-specifications { margin: 0 0 22px; border-top: 1px solid var(--border-color); }
.product-specifications > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--border-color); }
.product-specifications dt { color: var(--text-light); font-size: 0.82rem; }
.product-specifications dd { margin: 0; font-weight: 600; font-size: 0.92rem; }
.product-dimension { display: inline-block; }
.product-dimension abbr { text-decoration: none; font-size: 0.75rem; font-weight: 400; color: var(--text-light); }
.product-stock-badge--notice { background: var(--bg-band); color: var(--text-color); border-color: var(--border-color); }
.product-description-modern {
    margin-bottom: 22px;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.65;
}
.product-description-modern h2 { margin: 0 0 8px; color: var(--text-color); font-size: 0.9rem; font-weight: 700; }
.product-description-modern p { white-space: pre-line; }
.contact-icon {
    font-size: 1.3rem;
    color: var(--accent-deep);
}
.product-cta {
    margin: 0;
}
.product-cta .btn-devis-product { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; width: 100%; padding: 14px 18px; font-size: 0.82rem; border-radius: 3px; }
.product-cta .btn-devis-product span { font-size: 1.2rem; }
.product-condition { border-top: 1px solid var(--border-color); }
.product-condition:last-child { border-bottom: 1px solid var(--border-color); }
.product-condition summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 0; list-style: none; cursor: pointer; font-size: 0.9rem; font-weight: 600; }
.product-condition summary::-webkit-details-marker { display: none; }
.product-condition summary:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 3px; border-radius: 3px; }
.product-condition summary span { margin-left: auto; font-weight: 400; color: var(--text-light); font-size: 0.82rem; }
.product-condition summary::after { content: "+"; margin-left: auto; font-size: 1.1rem; }
.product-condition summary:has(span)::after { margin-left: 0; }
.product-condition[open] summary::after { content: "−"; }
.product-condition-content { padding: 0 0 14px; font-size: 0.82rem; color: var(--text-light); line-height: 1.65; }
.product-condition-content p + p { margin-top: 8px; }
.product-delivery-map { display: block; width: 100%; max-width: 420px; height: auto; margin: 10px 0; background: #fbfcfc; border: 1px solid var(--border-color); border-radius: 3px; }
.product-collections { margin-top: 16px; font-size: 0.85rem; color: var(--text-light); line-height: 1.55; }
.product-collections a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
.product-source-link { display: inline-block; margin-top: 16px; font-size: 0.78rem; color: var(--text-light); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================
   9. À PROPOS / CONTACT
   ========================================= */
.about-section { background: var(--bg-band); padding: 90px 0; }
.about-box {
    max-width: 980px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 6px;
    padding: 44px;
    display: flex;
    gap: 36px;
    align-items: flex-start;
}
.about-icon {
    font-size: 3.5rem;
    color: var(--accent-deep);
    flex-shrink: 0;
    line-height: 1;
}
.about-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.about-content p { color: var(--text-light); }

/* Liste de trust signals dans About */
.trust-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
}
.trust-list li {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.92rem;
}
@media (max-width: 768px) {
    .trust-list { grid-template-columns: 1fr; }
}

/* Bandeau Contact (footer-ish, sur accueil) */
.contact-modern {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
    border-top: 4px solid var(--accent-color);
}
.contact-modern .section-title { color: white; }
.contact-modern .section-title::after { background: var(--accent-color); }
.contact-modern-intro {
    max-width: 780px;
    margin: -18px auto 34px;
    color: rgba(255,255,255,0.82);
    text-align: center;
    line-height: 1.7;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.contact-item {
    padding: 30px 24px;
    border: 1px solid #333;
    border-radius: 6px;
    transition: all 0.2s;
}
.contact-item:hover { border-color: var(--accent-color); transform: translateY(-2px); }
.contact-item strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
}
.contact-item p, .contact-item a {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}
.contact-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 0;
}
.contact-item a:hover { color: var(--accent-color); }
.delivery-info { font-size: 0.85rem; color: rgba(255,255,255,0.65); display: block; margin-top: 8px; }

/* Page contact (formulaire) */
.contact-section-page { padding: 80px 0; }
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
}
.contact-info-box { display: flex; flex-direction: column; gap: 28px; }
.contact-detail {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    background: var(--bg-band);
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
}
.contact-text strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    font-weight: 800;
}
.contact-form-box {
    background: white;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 6px;
    padding: 40px;
    scroll-margin-top: calc(var(--header-safe-offset, 90px) + 18px);
}
.contact-form-box h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* =========================================
   10. CTA BAND (bandeau jaune avant footer)
   ========================================= */
.cta-band {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 70px 0;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    border-bottom: 4px solid var(--primary-color);
}
.cta-band h2 {
    font-size: 2.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    line-height: 1.1;
}
.cta-band p {
    margin-bottom: 28px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-band .btn-cta {
    display: inline-block;
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 16px 36px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.2s;
    border: 2px solid var(--primary-color);
}
.cta-band .btn-cta:hover {
    background: white;
    color: var(--primary-color);
}

/* =========================================
   11. FOOTER & ADMIN
   ========================================= */
.footer-modern {
    background: #0d0d0d;
    color: #888;
    padding: 36px 0 28px;
    border-top: 3px solid var(--accent-color);
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-left strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.footer-right p, .footer-left p { color: rgba(255,255,255,0.6); }
.footer-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
.footer-left a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-link-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}
.footer-link-button:hover,
.footer-link-button:focus-visible { color: var(--accent-color); }

.analytics-consent {
    position: fixed;
    z-index: 1200;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: flex;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-color);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.analytics-consent[hidden] { display: none; }
.analytics-consent__content { max-width: 640px; }
.analytics-consent__title { margin: 0 0 6px; font-weight: 800; }
.analytics-consent__content p:last-child { margin: 0; line-height: 1.5; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.analytics-consent__actions a { color: #fff; font-weight: 700; }
.analytics-consent__actions .btn-secondary,
.analytics-consent__actions .btn-primary { min-width: 92px; }
.privacy-content { max-width: 860px; }

/* Admin (résiduel) */
.admin-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 14px 18px;
    border-radius: 4px;
    border-left: 3px solid #10b981;
    text-align: left;
}
.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 4px;
    border-left: 3px solid #ef4444;
    text-align: left;
}

/* =========================================
   12. RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .container-fluid { padding: 0 24px; }
    .header-content { flex-wrap: wrap; gap: 16px; }
    .btn-devis-header { padding: 10px 16px; font-size: 0.8rem; }
    .header-actions { gap: 8px; }
    .advantages-cards, .services-grid, .contact-grid,
    .catalog-layout, .contact-layout {
        grid-template-columns: 1fr;
    }
    .stats-strip .container { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .stats-strip > .container > div { border-right: 0; padding: 0; }
    .product-layout-modern { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "gallery" "purchase" "context"; grid-template-rows: auto auto auto auto; gap: 0; }
    .product-purchase-modern { margin-top: 24px; }
    .product-gallery-modern { position: static; }
    .footer-content { flex-direction: column; text-align: center; }
    .contact-form .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero-modern, .hero-content-modern { min-height: 520px; }
    .hero-content-modern h1 { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.8rem; margin-bottom: 36px; }
    .page-header-modern { padding: 60px 0 50px; }
    .page-header-modern h1 { font-size: 2rem; }
    .catalog-seo-intro,
    .catalog-help-block { padding: 22px; }
    .catalog-help-block ul { grid-template-columns: 1fr; }
    .catalog-seo-actions { align-items: flex-start; flex-direction: column; }
    nav { gap: 1.4rem; font-size: 0.82rem; }
    .about-box { flex-direction: column; padding: 30px 22px; gap: 18px; }
    .products-grid-modern { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-band h2 { font-size: 1.7rem; }
    .main-image-modern { height: 360px; }
    .product-heading-modern h1, .product-info-modern h1 { font-size: 1.7rem; }
    .product-price-modern { font-size: 2rem; }
}
@media (max-width: 576px) {
    .stats-strip .container { grid-template-columns: 1fr; }
}

/* Page introuvable (404.php) */
.not-found { padding: 64px 0 80px; }
.not-found-inner { max-width: 720px; }
.not-found h1 { margin-bottom: 16px; }
.not-found-search { margin: 28px 0; }
.not-found-search label { display: block; font-weight: 700; margin-bottom: 8px; }
.not-found-search-row { display: flex; gap: 8px; }
.not-found-search-row input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #c9c9c3; border-radius: 4px; font: inherit; }
.not-found-search-row button { min-height: 48px; padding: 10px 18px; border: 0; border-radius: 4px; background: var(--primary-color); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.not-found-actions a:not(.btn-devis-product) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .not-found { padding: 40px 0 56px; } }

/* Fiche 2026-11-02: name in sentence case, one technical sheet, centred quote action. */
.product-heading-modern h1 { text-transform: none; letter-spacing: -0.015em; }
.product-cta { display: grid; gap: 10px; margin: 4px 0 18px; }
.product-cta .btn-devis-product { justify-content: center; text-align: center; font-size: 0.95rem; min-height: 56px; }
.product-cta .selection-add { margin-top: 0; }
.product-reassurance { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; font-size: 0.86rem; line-height: 1.45; color: var(--text-color); }
.product-reassurance li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.product-reassurance svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.product-reassurance a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.product-sheet { margin: 0 0 22px; padding: 18px 18px 6px; background: var(--bg-light); border-radius: 4px; }
.product-sheet-title { margin: 0 0 10px; font-size: 0.82rem; font-weight: 700; color: var(--text-light); text-transform: none; letter-spacing: 0; }
.product-dimension-drawing { display: block; width: 100%; max-width: 340px; height: auto; max-height: 230px; margin: 0 auto 10px; overflow: visible; }
.pdd-face { stroke: var(--primary-color); stroke-width: 1.5; stroke-linejoin: round; }
.pdd-front { fill: #fff; }
.pdd-top { fill: #ecebe6; }
.pdd-side { fill: #dcdad3; }
.pdd-rule { fill: none; stroke: var(--text-light); stroke-width: 1; }
.pdd-label { font: 700 13px/1 inherit; font-family: inherit; fill: var(--text-color); }
.product-sheet .product-specifications { margin-bottom: 0; }
.product-sheet .product-specifications > div:last-child { border-bottom: 0; }
.product-sheet .product-meta-line { margin: 0; padding: 10px 0 12px; border-top: 1px solid var(--border-color); font-size: 0.75rem; }
.product-sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--border-color); box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08); }
.product-sticky-bar p { margin: 0; font-size: 1.15rem; }
.product-sticky-bar p span { font-size: 0.75rem; color: var(--text-light); }
.product-sticky-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 3px; background: var(--accent-color); color: var(--primary-color); font-weight: 800; font-size: 0.9rem; }
body.has-product-sticky { padding-bottom: 72px; }
/* A lone thumbnail only repeats the main photo. */
.thumbnail-gallery-modern:has(> :only-child) { display: none; }
@media (min-width: 993px) { .product-sticky-bar { display: none !important; } body.has-product-sticky { padding-bottom: 0; } }

/* Single-column fiche: price and quote action follow the main photo; thumbnails come after. */
@media (max-width: 992px) {
    .product-detail-modern .product-layout-modern { grid-template-areas: "heading" "photo" "purchase" "thumbs" "context"; grid-template-rows: none; }
    .product-gallery-modern { display: contents; }
    .product-gallery-modern .main-image-modern { grid-area: photo; }
    .product-gallery-modern .thumbnail-gallery-modern { grid-area: thumbs; margin-top: 20px; }
    .product-layout-modern .product-purchase-modern { margin-top: 8px; }
    /* The quote action follows the price; specifications stay just below it. */
    .product-detail-modern .product-purchase-modern { display: flex; flex-direction: column; }
    .product-purchase-modern > .product-cta { order: 1; margin: 0 0 14px; }
    .product-purchase-modern > .product-reassurance { order: 2; }
    .product-purchase-modern > .product-sheet { order: 3; }
    .product-purchase-modern > .product-meta-line { order: 4; margin: 16px 0 0; }
}

/* Standalone navigation links keep a 24 px minimum target (WCAG 2.5.8). */
.breadcrumb-modern a,
.catalog-local-page .catalog-local-breadcrumb a,
.page-header-modern p > a:only-child,
.product-category-return a { display: inline-flex; align-items: center; min-height: 24px; }
.product-source-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }
