/* =====================================================
   BEMACO - Site institutionnel
   Design : industriel agricole, rouge BELARUS, navy
   Polices : Oswald (titres) + Inter (corps)
   ===================================================== */

:root {
    /* Couleurs principales - inspirées des logos */
    --red: #C8102E;
    --red-dark: #9B0C23;
    --red-light: #E30613;
    --navy: #0D1B2A;
    --navy-mid: #1B2838;
    --navy-light: #2A3A4E;
    --steel: #415A77;
    --cream: #F5F3EF;
    --off-white: #FAFAF8;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --white: #FFFFFF;
    --black: #0A0A0A;

    /* Typo */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Espacements */
    --container: 1180px;
    --radius: 6px;
    --shadow: 0 4px 24px rgba(13, 27, 42, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--navy);
    background: var(--off-white);
    overflow-x: hidden;
}

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

a {
    color: var(--red);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--red-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Accessibilité */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    background: var(--red);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* ========== HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-top {
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy) 100%);
    border-bottom: 3px solid var(--red);
    padding: 0.75rem 0;
}

.header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-main {
    max-height: 72px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Navigation */
.main-nav {
    background: var(--navy-mid);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    gap: 1rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-list a {
    display: block;
    padding: 0.85rem 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
    color: white;
    border-bottom-color: var(--red);
    background: rgba(200, 16, 46, 0.1);
}

.btn-nav {
    background: var(--red);
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background var(--transition), transform var(--transition);
}

.btn-nav:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    color: white !important;
}

/* Burger mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: white;
    transition: var(--transition);
}

/* ========== HERO SLIDER ========== */
.hero {
    position: relative;
    min-height: 58vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.1s ease-in-out;
    will-change: opacity;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.92) 0%, rgba(27, 40, 56, 0.85) 50%, rgba(200, 16, 46, 0.35) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    color: white;
    max-width: 680px;
}

.hero-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    margin-bottom: 1.25rem;
    border-radius: 2px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.hero h1 span {
    color: var(--red-light);
}

.hero-lead {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Navigation du slider */
.hero-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-prev,
.hero-next {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: rgba(13, 27, 42, 0.45);
    color: white;
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.08);
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.hero-dot.is-active {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.2);
}

.hero-dot:hover {
    border-color: white;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: white;
    color: var(--navy);
    border-color: white;
}

/* ========== SECTIONS ========== */
.section {
    padding: 3.25rem 0;
}

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

.section-header .eyebrow {
    display: inline-block;
    color: var(--red);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* About / Présentation cards */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--steel);
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(13, 27, 42, 0.7));
}

/* Vision */
.vision-section {
    background: var(--navy);
    color: white;
    position: relative;
    overflow: hidden;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.15) 0%, transparent 70%);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.vision-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
}

.vision-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.vision-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vision-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.1rem 1.25rem;
    border-left: 4px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.vision-point .num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--red);
    min-width: 1.8rem;
}

.vision-point p {
    margin: 0;
    opacity: 0.95;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(13, 27, 42, 0.18);
}

.product-card .card-image {
    height: 220px;
    overflow: hidden;
    background: var(--navy-light);
}

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

.product-card:hover .card-image img {
    transform: scale(1.06);
}

.product-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-cat {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
}

.product-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.product-card p {
    color: var(--steel);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1.25rem;
}

.features-list {
    margin: 0.75rem 0 1.25rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--steel);
    margin-bottom: 0.4rem;
}

.features-list li::before {
    content: '▸';
    color: var(--red);
    font-weight: 700;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--red);
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: rgba(200, 16, 46, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--red);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--navy);
}

.service-card p {
    color: var(--steel);
    font-size: 0.95rem;
}

/* Stats bar */
.stats-bar {
    background: var(--red);
    color: white;
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item .number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-item .label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
}

.footer-main {
    padding: 3.5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--red-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.footer-desc {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--red-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-legal {
    margin-top: 0.25rem;
}

/* ========== PAGE SPECIFICS ========== */
.page-hero {
    background: var(--navy);
    color: white;
    padding: 2rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, rgba(200, 16, 46, 0.2));
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb a:hover {
    color: white;
}

/* Réduction des grands espaces vides */
.about-grid {
    gap: 2rem;
}

.about-image img {
    height: 320px;
}

.product-detail {
    margin-bottom: 2.5rem !important;
    gap: 2rem;
}

.product-detail .detail-image img {
    height: 300px;
}

.vision-section .section,
.vision-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.contact-grid {
    gap: 2rem;
}

.footer-main {
    padding: 2.5rem 0 2rem;
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-detail .detail-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-detail .detail-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.product-detail h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.product-detail .features-list {
    margin: 1.25rem 0;
}

/* Admin simple */
.admin-body {
    background: #f0f2f5;
}

.admin-header {
    background: var(--navy);
    color: white;
    padding: 1rem 0;
}

.admin-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.admin-table th {
    background: var(--cream);
    font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {

    .about-grid,
    .vision-grid,
    .contact-grid,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-mid);
        flex-direction: column;
        padding: 1rem 0;
        display: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list a {
        width: 100%;
        text-align: center;
        border-bottom: none;
    }

    .btn-nav {
        display: none;
    }

    .hero {
        min-height: 60vh;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =====================================================================
   Réclamations client 21/10/2026 – images entières, gammes, galerie
   ===================================================================== */

/* Images produits : toujours visibles en entier (plus de recadrage) */
.product-card .card-image {
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--gray-light);
}

.product-card .card-image img {
    object-fit: contain;
    padding: 0.5rem;
}

.product-card:hover .card-image img {
    transform: scale(1.03);
}

/* Image pleine (non recadrée) dans les blocs texte + image */
.about-image.about-image--full img {
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    background: var(--cream);
}

.about-image.about-image--full::after {
    display: none;
}

/* Badges de puissance */
.power-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: var(--red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.power-pill {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.model-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
}

.model-chips li {
    background: var(--cream);
    border: 1px solid var(--gray-light);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.8rem;
    color: var(--steel);
}

.model-chips li strong {
    color: var(--navy);
}

/* Page Produits : onglets par gamme */
.gamme-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 2rem;
    scroll-margin-top: 90px;
}

.gamme-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 200px;
    padding: 0.8rem 1.4rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    background: #fff;
    color: var(--navy);
    text-align: center;
    transition: all var(--transition);
}

.gamme-tab strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.gamme-tab span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
}

.gamme-tab:hover {
    border-color: var(--red);
}

.gamme-tab.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.gamme-tab.is-active span {
    color: #ff8a98;
}

.js-tabs .gamme-panel {
    display: none;
}

.js-tabs .gamme-panel.is-active {
    display: block;
    animation: gammeIn 0.35s ease;
}

@keyframes gammeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.gamme-panel {
    margin-bottom: 3rem;
}

.gamme-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.gamme-head h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    margin: 0.25rem 0 0.75rem;
}

.gamme-desc {
    color: var(--steel);
    margin-bottom: 0.75rem;
}

.gamme-head-image {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: flex;
    justify-content: center;
}

.gamme-head-image img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
}

.gamme-subtitle {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 2.5rem 0 1.25rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--red);
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.model-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.model-img {
    position: relative;
    height: 210px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--gray-light);
}

.model-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.model-body {
    padding: 1.1rem 1.2rem 1.3rem;
}

.model-ref {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.25rem;
}

.model-body h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.acc-desc {
    font-size: 0.9rem;
    color: var(--steel);
    margin-bottom: 0.75rem;
}

.model-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--red);
}

.model-link:hover {
    text-decoration: underline;
}

details.specs {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    background: var(--off-white);
}

details.specs summary {
    cursor: pointer;
    padding: 0.55rem 0.8rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--navy);
}

details.specs[open] summary {
    border-bottom: 1px solid var(--gray-light);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    margin: 0.4rem 0;
}

.specs-table th,
.specs-table td {
    padding: 0.35rem 0.8rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--gray-light);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table th {
    font-weight: 500;
    color: var(--steel);
    width: 52%;
}

.specs-table td {
    font-weight: 600;
    color: var(--navy);
}

/* Galerie photos clients */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.gallery-item {
    margin: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.gallery-item a {
    display: block;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item a {
    overflow: hidden;
}

.gallery-item figcaption {
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
    color: var(--steel);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(13, 27, 42, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox .lb-img {
    max-width: 90vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox button {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox button:hover {
    background: var(--red);
}

.lightbox .lb-close {
    top: 1rem;
    right: 1rem;
}

.lightbox .lb-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox .lb-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 900px) {
    .gamme-head {
        grid-template-columns: 1fr;
    }

    .gamme-head-image {
        order: -1;
    }
}

/* =====================================================================
   Toutes les images : affichées en entier (jamais recadrées) et agrandies
   ===================================================================== */
.about-image img,
.about-image.about-image--full img {
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    background: var(--cream);
}

.about-image::after {
    display: none;
}

.product-card .card-image {
    height: 280px;
}

.model-img {
    height: 280px;
}

.gamme-head-image img {
    max-height: 480px;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    align-items: start;
}

.gallery-item img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
    background: var(--cream);
}

.product-detail .detail-image img {
    height: auto;
    object-fit: contain;
}

/* Galerie clients : mosaïque (photos de formats différents, affichées en entier) */
.gallery-grid {
    display: block;
    column-width: 300px;
    column-gap: 1.1rem;
}

.gallery-item {
    break-inside: avoid;
    margin: 0 0 1.1rem;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 0.9rem 0.7rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(13, 27, 42, 0.85));
    pointer-events: none;
}

.gallery-count {
    text-align: center;
    color: var(--steel);
    margin: -1rem 0 1.75rem;
    font-size: 0.95rem;
}


/* Refonte catalogue produits BEMACO : cartes plus lisibles, fiches dédiées */
.page-produits .section-header {
    max-width: 850px;
    margin-inline: auto;
    text-align: center;
}

.page-produits .gamme-tabs {
    justify-content: flex-start;
    gap: .8rem;
    margin: 0 0 2.5rem;
}

.page-produits .gamme-tab {
    flex: 1 1 220px;
    align-items: flex-start;
    text-align: left;
    border: 1px solid #e0e5ec;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    box-shadow: 0 6px 22px rgba(24, 39, 61, .06);
}

.page-produits .gamme-tab:hover,
.page-produits .gamme-tab:focus-visible {
    transform: translateY(-2px);
    border-color: var(--red);
    box-shadow: 0 10px 28px rgba(24, 39, 61, .11);
}

.page-produits .gamme-panel {
    margin: 0 0 4rem;
    padding: 2rem;
    background: #f8fafc;
    border: 1px solid #e6eaf0;
    border-radius: 22px;
    scroll-margin-top: 100px;
}

.page-produits .gamme-head {
    gap: clamp(1.5rem, 4vw, 4rem);
}

.page-produits .gamme-head-image {
    min-height: 280px;
    border: 1px solid #edf0f4;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(18, 32, 54, .08);
}

.page-produits .gamme-head-image img {
    max-height: 330px;
}

.page-produits .gamme-subtitle {
    margin-top: 2.6rem;
}

.page-produits .model-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
    gap: 1.25rem;
}

.page-produits .model-card {
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    box-shadow: 0 7px 24px rgba(18, 32, 54, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.page-produits .model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(18, 32, 54, .12);
}

.page-produits .model-img {
    height: 225px;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.page-produits .model-img-link {
    display: flex;
    position: relative;
}

.page-produits .model-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-produits .model-body {
    padding: 1.25rem;
}

.page-produits .model-body h4 {
    font-size: 1.22rem;
    line-height: 1.35;
}

.page-produits .model-body h4 a {
    color: var(--navy);
    text-decoration: none;
}

.page-produits .model-body h4 a:hover {
    color: var(--red);
}

.product-highlights {
    list-style: none;
    padding: 0;
    margin: .8rem 0 1rem;
    display: grid;
    gap: .55rem;
}

.product-highlights li {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid #edf0f4;
    font-size: .84rem;
}

.product-highlights li span {
    color: var(--steel);
}

.product-highlights li strong {
    text-align: right;
    color: var(--navy);
}

.product-spec-count {
    color: var(--steel);
    font-size: .85rem;
    margin: .8rem 0;
}

.page-produits .model-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding-top: .2rem;
}

.product-detail-hero .breadcrumb {
    margin-bottom: 1rem;
}

.product-detail-hero .breadcrumb a,
.product-detail-hero p a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-detail-hero h1 {
    max-width: 900px;
}

.product-detail-section {
    background: #fff;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.product-detail-visual {
    overflow: hidden;
    background: linear-gradient(145deg, #fff, #f2f5f8);
    border: 1px solid #e6eaf0;
    border-radius: 22px;
    padding: clamp(1rem, 3vw, 2rem);
}

.product-detail-visual img {
    display: block;
    width: 100%;
    height: clamp(280px, 36vw, 480px);
    object-fit: contain;
}

.product-detail-visual-caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e1e6ed;
    padding-top: 1rem;
    color: var(--steel);
    font-size: .85rem;
}

.product-detail-visual-caption strong {
    color: var(--navy);
}

.product-detail-intro h2,
.product-section-heading h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    color: var(--navy);
    margin: .5rem 0 1rem;
}

.product-detail-power {
    display: inline-flex;
    background: #fff0f1;
    color: #b21f32;
    border-radius: 999px;
    padding: .45rem .9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-detail-description {
    color: var(--steel);
    line-height: 1.8;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dee7;
    border-radius: var(--radius);
    padding: .75rem 1.1rem;
    color: white;
    font-weight: 600;
}

.btn-outline:hover {
    border-color: var(--navy);
}

.product-specifications {
    margin-top: clamp(3rem, 6vw, 5.5rem);
}

.product-section-heading {
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.product-section-heading p {
    color: var(--steel);
}

.product-spec-table-wrap {
    max-width: 1000px;
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(18, 32, 54, .05);
}

.product-detail-table {
    margin: 0;
    font-size: .96rem;
}

.product-detail-table tr:nth-child(even) {
    background: #f8fafc;
}

.product-detail-table th,
.product-detail-table td {
    padding: .9rem 1.2rem;
    border-bottom: 1px solid #e8edf3;
}

.product-detail-table th {
    width: 38%;
    color: #526175;
}

.product-detail-table td {
    font-weight: 600;
}

.product-detail-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 3.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--navy);
    color: #fff;
    border-radius: 20px;
}

.product-detail-contact h2 {
    color: #fff;
    margin-bottom: .5rem;
}

.product-detail-contact p {
    margin: 0;
    opacity: .82;
}

.product-not-found {
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 760px) {
    .page-produits .gamme-panel {
        padding: 1rem;
        border-radius: 16px;
    }

    .page-produits .gamme-head,
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .page-produits .gamme-head-image {
        order: -1;
        min-height: 220px;
    }

    .product-detail-visual img {
        height: 280px;
    }

    .product-detail-contact {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-detail-table th,
    .product-detail-table td {
        padding: .7rem .8rem;
    }

    .product-detail-table th {
        width: 44%;
    }
}
/* =====================================================================
   Images sans padding : affichées en entier (object-fit: contain),
   sans marge intérieure ni recadrage
   ===================================================================== */
.product-card .card-image img,
.model-img img,
.page-produits .model-img img,
.about-image img,
.gamme-head-image img,
.page-produits .gamme-head-image img {
    padding: 0;
    object-fit: contain;
}

.gamme-head-image,
.page-produits .gamme-head-image {
    padding: 0;
    overflow: hidden;
}

.gamme-head-image img,
.page-produits .gamme-head-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Fiche produit : l'image occupe tout le cadre, à sa taille naturelle (pas de bandes vides) */
.product-detail-visual {
    padding: 0;
}

.product-detail-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
}

.product-detail-visual-caption {
    padding: 1rem clamp(1rem, 3vw, 2rem);
    margin: 0;
}

@media (max-width: 760px) {
    .product-detail-visual img {
        height: auto;
        max-height: 420px;
    }
}

/* =====================================================================
   Plus de blanc derrière les images : le cadre épouse exactement l'image
   (pas de hauteur fixe, pas de fond, pas de min-height)
   ===================================================================== */
.product-detail-visual {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.product-detail-visual img {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 16px;
}

.product-detail-visual-caption {
    padding: 1rem 0 0;
}

.product-card .card-image,
.model-img,
.page-produits .model-img {
    height: auto;
    min-height: 0;
    background: transparent;
    display: block;
}

.product-card .card-image img,
.model-img img,
.page-produits .model-img img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
}

.page-produits .model-img-link {
    display: block;
}

.gamme-head-image,
.page-produits .gamme-head-image {
    min-height: 0;
    background: transparent;
    display: block;
}

.gamme-head-image img,
.page-produits .gamme-head-image img {
    max-height: none;
}

@media (max-width: 760px) {
    .product-detail-visual img {
        height: auto;
        max-height: none;
    }

    .page-produits .gamme-head-image {
        min-height: 0;
    }
}