:root {
    --primary-color: #E31E24;
    --secondary-color: #ba040e;
    --titre-color: #101828;
    --text-color: #101828;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border-color: #cbd5e1;
    --font-main: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-title: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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



body {
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--titre-color);
}

h2 {
    font-size: 3.6rem;
    font-weight: 300;
    margin-bottom: 0px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    letter-spacing: 0.2px;
}

.highlight-red {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4A5565;
    /* max-width: 900px; */
    margin: 0 auto 55px;
    font-weight: 400;
}

/* Grilles communes (philosophie ECV Emballages) */
.contenu {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    scroll-margin-top: 60px;
}

.deux-colonnes {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.deux-colonnes .col1, .deux-colonnes .col2 {
    flex: 1 1 45%;
    min-width: 300px;
}

/* Header & Menu */
header {
    background: transparent;
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    height: 80px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.sticky-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 80px;
    padding: 0.8rem 0;
}

header:not(.sticky-scrolled) nav a {
    color: white;
    text-shadow: 0 1px 3px rgb(0 0 0 / 15%);
}

header:not(.sticky-scrolled) nav a:not(.contact):not(.site-mondial):hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white !important;
}

header.sticky-scrolled nav a:not(.contact):not(.site-mondial):hover {
    background-color: transparent;
    color: var(--primary-color) !important;
}

header:not(.sticky-scrolled) nav a.contact {
    background-color: var(--primary-color);
    color: white;
    text-shadow: none;
}

header:not(.sticky-scrolled) nav a.contact:hover {
    background-color: var(--secondary-color);
}

/* Site Mondial Button Style */
nav a.site-mondial {
    border: 2px solid rgb(255 255 255 / 50%);
    padding: 0.4rem 1.2rem !important;
    /* border-radius: 4px; */
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.25;
    transition: all 0.3s ease;
}

header:not(.sticky-scrolled) nav a.site-mondial {
    border-color: rgb(255 255 255 / 50%);
    color: white !important;
    text-shadow: none !important;
}

header:not(.sticky-scrolled) nav a.site-mondial:hover {
    background-color: white;
    color: var(--titre-color) !important;
}

header.sticky-scrolled nav a.site-mondial {
    border-color: var(--text-color);
    color: var(--text-color) !important;
}

header.sticky-scrolled nav a.site-mondial:hover {
    background-color: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
}

header:not(.sticky-scrolled) .menu-btn {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

header:not(.sticky-scrolled) .menu-btn.active {
    color: var(--text-color);
    text-shadow: none;
}

header:not(.sticky-scrolled) .logo img {
    filter: drop-shadow(0px 0px 12px rgba(255, 255, 255, 0.65));
}

header .contenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header .logo {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

header .logo a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

header .logo img {
    display: block;
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-france {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* border-left: 1px solid rgba(255, 255, 255, 0.35); */
    padding-left: 0px;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 4px;
}

header.sticky-scrolled .logo-france {
    /* border-left-color: rgba(16, 24, 40, 0.25); */
}

header:not(.sticky-scrolled) .logo-france {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

header.sticky-scrolled .logo-france {
    color: var(--text-color);
}

.texte-france {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0;
    font-family: var(--font-title);
    line-height: 1;
}

.drapeau-fr {
    width: 20px;
    height: 13.33px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border-radius: 1px;
    display: block;
}

/* Grand Diaporama (Hero Section) */
.slideshow {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    padding: 0;
}

.slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 18%), rgba(255, 255, 255, 0.7); /* Dégradé noir au-dessus du fond blanc transparent */
    z-index: 2;
    pointer-events: none;
}

.slideshow .flexslider {
    z-index: 1;
}

.slideshow .flexslider, .slideshow .flexslider .slides, .slideshow .flexslider .slides li {
    height: 100%;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slideshow .texte {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    text-align: center;
    padding: 0 25px;
}

.slideshow .texte .titre1 {
    margin-bottom: 2.5rem;
}

.slideshow .texte .titre1 span {
    color: var(--titre-color);
    font-weight: 300;
    font-size: 2.4rem;
    font-family: var(--font-title);
    line-height: 1.7;
    letter-spacing: -0.5px;
}

.slideshow .texte .boutons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

a.bouton-diapo {
    display: inline-block;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    /* border-radius: 6px; */
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.6rem;
}

a.bouton-rouge {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgb(0 0 0 / 28%);
}

a.bouton-rouge:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

a.bouton-contour {
    background-color: transparent;
    color: var(--titre-color);
    border: 2px solid var(--titre-color);
}

a.bouton-contour:hover {
    background-color: var(--titre-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}

.slideshow .fleche-diaporama {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.slideshow .fleche-diaporama img {
    transition: opacity 0.3s ease;
}

.slideshow .fleche-diaporama img:hover {
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

/* Section Nouveautés */
.nouveautes-section {
    background-color: var(--white);
}

.nouveautes-container {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.machine-row {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
}

.machine-row.row-reverse {
    flex-direction: row-reverse;
}

.col-half {
    flex: 1 1 50%;
}

.machine-row .machine-photo {
    flex: 0 0 42%;
    max-width: 42%;
}

.machine-row .machine-details {
    flex: 1 1 50%;
}

.machine-photo img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); */
    display: block;
    transition: transform 0.4s ease;
}

.machine-photo img:hover {
    /* transform: scale(1.02); */
}

.machine-details {
    padding: 20px 0;
}

.machine-title {
    font-size: 2.9rem;
    font-weight: 300;
    margin-bottom: 0px;
    letter-spacing: -0.5px;
    line-height: 4rem;
}

.machine-nouveaute-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 300;
    margin-bottom: 25px;
}

.machine-desc {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 50px;
    line-height: 1.7;
}

.machine-features {
    display: flex;
    gap: 30px;
    margin-bottom: 55px;
}

.feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.feature-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    background: #fef2f2;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.feature-title {
    /* font-weight: 700; */
    display: block;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 6px;
}

.feature-text {
    font-size: 1rem;
    /* color: #64748b; */
    font-weight: 500;
    line-height: 1.3;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-weight: 300;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    background-color: var(--primary-color);
    padding: 0.9rem 2rem;
    box-shadow: 0 4px 15px rgb(0 0 0 / 20%);
}

.btn-more:hover {
    background-color: var(--secondary-color);
}

.btn-more i, .btn-more .fleche-svg, .btn-category-more .fleche-svg, .btn-all-gamme .fleche-svg {
    transition: transform 0.3s ease;
}

.btn-more:hover i, .btn-more:hover .fleche-svg, .btn-category-more:hover .fleche-svg, .btn-all-gamme:hover .fleche-svg {
    transform: translateX(4px);
}

.fleche-svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
}

.btn-category-more .fleche-svg {
    width: 16px;
    height: 16px;
}

/* Section Notre Gamme */
.gamme-section {
    background-color: var(--light-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background-size: cover;
    background-position: center;
    /* border-radius: 12px; */
    height: 325px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-end;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-inner {
    padding: 30px;
    width: 100%;
    z-index: 2;
}

.badge-feature {
    display: inline-block;
    /* background-color: var(--primary-color); */
    color: #D1D5DC;
    font-size: 0.90rem;
    font-weight: 400;
    /* text-transform: uppercase; */
    /* padding: 3px 8px; */
    border-radius: 4px;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.category-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 7px;
}

.category-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-title a:hover {
    /* color: var(--primary-color); */
}

.category-desc {
    color: #E5E7EB;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-category-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    border:  2px solid white;
    padding: 9px 25px;
}

.btn-category-more:hover {
    /* color: #fca5a5; */
}

.gamme-section .section-subtitle {
    margin-bottom: 30px;
}

.gamme-action-container {
    margin-top: 0;
    margin-bottom: 45px;
}

.btn-all-gamme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background-color: var(--titre-color);
    color: white;
    padding: 1rem 2rem;
    font-weight: 400;
    /* border-radius: 6px; */
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-all-gamme:hover {
    background-color: #1e293b;
    /* transform: translateY(-2px); */
}

/* L'Expertise Masterwood */
.expertise-section {
    background-color: var(--white);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.expertise-card {
    display: flex;
    flex-direction: column;
    background-color: var(--light-bg);
    padding: 40px 30px;
    /* border-radius: 12px; */
    transition: transform 0.3s ease, background 0.3s ease;
    border-bottom: 3px solid transparent;
    text-align: left;
}

.expertise-card:hover {
    transform: translateY(-5px);
    background-color: #F9FAFB;
    /* border-bottom: 3px solid var(--primary-color); */
}

.card-icon {
    font-size: 2.9rem;
    color: var(--primary-color);
    margin-bottom: 0px;
}

.expertise-icon {
    width: 48px;
    height: 48px;
    display: inline-block;
}

.expertise-card h3 {
    font-size: 1.55rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.expertise-card p {
    font-size: 0.98rem;
    color: #4A5565;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-accent {
    margin-top: auto;
    font-size: 2.3rem;
    font-weight: 300;
    /* text-transform: uppercase; */
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.excellence-box {
    margin: 60px auto 0;
    max-width: 520px;
    background-color: #F3F4F6;
    border: 1px solid #e2e8f0;
    /* border-radius: 12px; */
    padding: 30px;
}

.excellence-content h4 {
    font-size: 0.9rem;
    /* text-transform: uppercase; */
    color: #4A5565;
    letter-spacing: 1px;
    margin-bottom: 0px;
    font-weight: 400;
}

.excellence-title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--titre-color);
    margin-bottom: 0px;
}

.excellence-title span {
    color: var(--primary-color);
}

.excellence-content p {
    font-size: 0.98rem;
    color: #4A5565;
    font-weight: 400;
}

/* Section Actualités */
.actus-section {
    background-color: var(--light-bg);
}

.actus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Slider Actualités sur la page d'accueil */
.actus-slider-container {
    position: relative;
    margin-top: 40px;
    width: 100%;
}

.actus-slider-viewport {
    overflow: hidden;
    width: 100%;
    padding: 15px 0; /* Prévenir le rognage des ombres portées */
}

.actus-slider-track {
    display: flex !important; /* Force le flex pour le glissement horizontal */
    align-items: stretch; /* Aligner toutes les cartes à la même hauteur */
    gap: 30px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 0 !important;
}

.actus-slider-track .actu-card {
    flex: 0 0 calc((100% - 60px) / 3); /* 3 cartes visibles sur desktop */
    height: auto;
    align-self: stretch;
}

@media (max-width: 991px) {
    .actus-slider-track .actu-card {
        flex: 0 0 calc((100% - 30px) / 2); /* 2 cartes visibles sur tablette */
    }
}

@media (max-width: 767px) {
    .actus-slider-track .actu-card {
        flex: 0 0 100%; /* 1 carte visible sur mobile */
    }
}

/* Boutons de navigation du slider actualités */
.actu-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background-color: var(--titre-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s, opacity 0.3s, transform 0.3s;
}

.actu-slider-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

.actu-slider-btn:hover {
    background-color: var(--primary-color);
}

.actu-prev-btn {
    left: -55px;
}
.actu-prev-btn img {
    transform: rotate(180deg);
}
.actu-prev-btn:hover img {
    /* transform: rotate(180deg) translateX(-3px); */
}

.actu-next-btn {
    right: -55px;
}
.actu-next-btn:hover img {
    /* transform: translateX(3px); */
}

.actu-slider-btn.disabled {
    opacity: 0.15;
    cursor: not-allowed;
    background-color: #94a3b8;
}
.actu-slider-btn.disabled:hover {
    background-color: #94a3b8;
}
.actu-slider-btn.disabled img {
    transform: none !important;
}

@media (max-width: 767px) {
    .actu-prev-btn {
        left: 5px;
    }
    .actu-next-btn {
        right: 5px;
    }
    .actu-slider-btn {
        width: 36px;
        height: 36px;
    }
}

.actu-card {
    background-color: var(--white);
    /* border-radius: 12px; */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: auto;
}

.actu-img-container {
    height: 200px;
    overflow: hidden;
}

.actu-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.actu-card:hover .actu-img-container img {
    transform: scale(1.05);
}

.actu-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.actu-date {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 400;
    margin-bottom: 12px;
}

.actu-img-link {
    display: block;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

.actu-title {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--titre-color);
}

.actu-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.actu-title a:hover {
    color: var(--primary-color);
}

.actu-summary {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actu-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
    margin-top: auto;
}

.actu-link:hover {
    color: var(--secondary-color);
    /* text-decoration: underline; */
}

.voir-plus-svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin-left: 3px;
}

.actu-link:hover .voir-plus-svg, .btn-linkedin:hover .voir-plus-svg {
    /* transform: translate(2px, -2px); */
}

.actu-link:hover .voir-plus-svg {
    filter: brightness(0.82);
}

.btn-linkedin .voir-plus-svg {
    filter: brightness(0) invert(1);
}

.actus-action-container {
    margin-top: 50px;
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background-color: var(--titre-color);
    color: white;
    padding: 0.9rem 2rem;
    font-weight: 400;
    /* border-radius: 6px; */
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-linkedin:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}

/* Section Contact */
.contact-section {
    background-color: #101828;
    color: #f1f5f9;
}

.contact-section h2 {
    color: white;
    letter-spacing: 1px;
}

.contact-section .section-subtitle {
    color: #94a3b8;
}

.contact-grid {
    gap: 80px;
}

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

.contact-info-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: white;
    margin-bottom: -3px;
    letter-spacing: 1px;
}

.importer-exclusive-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: rgb(0 0 0 / 52%);
    border-left: 3px solid var(--primary-color);
    padding: 14px 16px;
    text-align: left;
    margin-top: 15px;
}

.importer-exclusive-box i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.importer-exclusive-box span {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    /* border-radius: 8px; */
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-info-svg {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.contact-info-list li:hover .info-icon {
    /* background-color: var(--secondary-color); */
    /* border-color: var(--secondary-color); */
    /* transform: scale(1.05); */
}

.info-text-container {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.info-label {
    font-size: 0.85rem;
    /* text-transform: uppercase; */
    color: #99A1AF;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 400;
    color: white;
}

.info-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: var(--primary-color);
}

.info-desc {
    font-size: 0.9rem;
    color: #99A1AF;
    letter-spacing: 0.5px;
}

.support-box {
    background-color: rgb(0 0 0 / 52%);
    /* border: 1px solid rgba(255, 255, 255, 0.08); */
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    /* border-radius: 8px; */
    text-align: left;
    margin-top: 10px;
}

.support-box h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #E31E24;
}

.support-box p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
}

.contact-form-box {
    /* background-color: rgba(255, 255, 255, 0.02); */
    /* border: 1px solid rgba(255, 255, 255, 0.05); */
    padding: 6px 40px;
    /* border-radius: 12px; */
}

.contact-form-box form {
    text-align: left;
}

.contact-form-box .form-group {
    margin-bottom: 20px;
}

.form-row-2col {
    display: flex;
    gap: 20px;
}

.form-row-2col .form-group {
    flex: 1;
}

@media screen and (max-width: 768px) {
    .form-row-2col {
        flex-direction: column;
        gap: 0;
    }
}

.contact-form-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #D1D5DC;
}

.contact-form-box input, .contact-form-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #334155;
    /* border-radius: 6px; */
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #1e293b;
    color: white;
    transition: border 0.3s;
}

.contact-form-box input:focus, .contact-form-box textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form-box input::placeholder, 
.contact-form-box textarea::placeholder {
    color: #64748b;
    opacity: 1;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    width: 100%;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.btn-submit .envoi-svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-submit:hover .envoi-svg {
    /* transform: translate(3px, -3px); */
}

.contact-form-box .help-text {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 10px;
    text-align: center;
}

.alert {
    padding: 15px 20px;
    border-radius: 0px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-success {
    background-color: #10b981;
    color: white;
}

.alert-success h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 5px;
}

.alert-danger {
    background-color: #ef4444;
    color: white;
}

.alert-danger h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: #101828;
    color: #94a3b8;
    padding-top: 60px;
    margin-top: auto;
    /* border-top: 1px solid white; */
    border-top: 1px solid #1e293b;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 40px;
    gap: 50px;
}

.footer-logo-text {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 0px;
}

.footer-column {
    min-width: 250px;
}

.footer-column:nth-child(1) {
    flex: 1.3;
    padding-right: 35px;
}

.footer-column:nth-child(2) {
    flex: 1;
}

.footer-column:nth-child(3) {
    flex: 1.2;
}

.footer-column h3 {
    color: white;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-column p {
    color: #99A1AF;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 15px;
}

.contact-info-list-footer {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.contact-info-list-footer li {
    font-size: 0.95rem;
}

.contact-info-list-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

.contact-info-list-footer a:hover {
    color: var(--primary-color);
}

.contact-info-list-footer a .voir-plus-footer-svg {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    /* filter: invert(71%) sepia(16%) saturate(350%) hue-rotate(182deg) brightness(89%) contrast(92%); */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.contact-info-list-footer a:hover .voir-plus-footer-svg {
    /* filter: invert(86%) sepia(48%) saturate(1172%) hue-rotate(173deg) brightness(101%) contrast(98%); */
    /* transform: translate(2px, -2px); */
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.footer-links a {
    font-size: 0.95rem;
    color: #99A1AF;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: #101828;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #99A1AF;
    border-top: 1px solid #1e293b;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.disp-br, .disp-br2 {
    display: none;
}

/* === Responsive Design === */

/* Tablets ≤ 1200px */
@media screen and (max-width: 1200px) {
    #menu a {
        color: var(--text-color) !important;
    }
    #menu a.contact {
        color: white !important;
    }
    #menu a.site-mondial {
        border-color: var(--primary-color) !important;
        color: var(--primary-color) !important;
        background-color: transparent !important;
        display: inline-block;
        margin-top: 10px;
        text-align: center;
    }
    #menu a.site-mondial:hover {
        background-color: var(--primary-color) !important;
        color: white !important;
    }

    h2 {
        font-size: 2.2rem;
    }
    
    .slideshow .texte .titre1 span {
        font-size: 2.2rem;
    }
    
    .machine-row {
        flex-direction: column !important;
        gap: 30px;
    }
    
    .machine-row .machine-photo {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .machine-row .machine-details {
        flex: 1 1 100%;
    }
    
    .col-half {
        width: 100%;
    }
    
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        flex-direction: column;
        gap: 40px;
    }
    
    .disp-br2 {
        display: inline;
    }
}

/* Mobiles ≤ 768px */
@media screen and (max-width: 768px) {
    h2 {
        font-size: 2rem;
        line-height: 45px;
        padding-bottom: 10px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .slideshow .texte .titre1 span {
        font-size: 1.6rem;
    }
    
    a.bouton-diapo {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .machine-title {
        font-size: 1.8rem;
    }
    
    .machine-features {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 35px;
    }
    
    .feature-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
        width: 100%;
    }

    .feature-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .feature-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        flex: 1;
        min-width: 0;
    }

    .feature-title {
        display: block;
        margin-bottom: 3px;
        text-align: left;
    }

    .feature-text {
        text-align: left;
    }

    /* Fallback si structure sans .feature-content */
    .feature-item:not(:has(.feature-content)) {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon title"
            "icon text";
        column-gap: 16px;
        row-gap: 2px;
        align-items: center;
        text-align: left;
    }
    .feature-item:not(:has(.feature-content)) .feature-icon {
        grid-area: icon;
        margin-bottom: 0;
    }
    .feature-item:not(:has(.feature-content)) .feature-title {
        grid-area: title;
        margin-bottom: 0;
        text-align: left;
    }
    .feature-item:not(:has(.feature-content)) .feature-text {
        grid-area: text;
        text-align: left;
    }
    
    .actus-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-box {
        padding: 20px;
    }
    
    .info-value {
        font-size: 1.1rem;
    }
}

/* --- PAGE DETAILS MACHINE --- */

header.header-page {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    height: 80px !important;
    padding: 0.8rem 0 !important;
}

header.header-page nav a:not(.contact) {
    color: var(--text-color) !important;
    text-shadow: none !important;
}

header.header-page nav a:not(.contact):hover {
    color: var(--primary-color) !important;
}

header.header-page nav a.site-mondial {
    border-color: var(--text-color) !important;
    color: var(--text-color) !important;
}

header.header-page nav a.site-mondial:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

header.header-page .menu-btn {
    color: var(--text-color) !important;
    text-shadow: none !important;
}

header.header-page .logo-france {
    color: var(--text-color) !important;
    text-shadow: none !important;
}

.breadcrumb-container {
    background-color: #f8fafc;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.breadcrumb {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.breadcrumb::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #64748b;
    flex-shrink: 0;
    white-space: nowrap;
}

.breadcrumb li a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb li a:hover {
    color: var(--primary-color);
}

.breadcrumb li::after {
    content: "/";
    margin-left: 10px;
    color: #cbd5e1;
}

.breadcrumb li:last-child::after {
    content: "";
}

.breadcrumb li span.active {
    color: #101828;
    font-weight: 500;
}

.machine-detail-section {
    padding-bottom: 55px;
    padding-top: 40px;
}

.machine-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: left;
}

.machine-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-box {
    position: relative;
    /* background-color: #f8fafc; */
    border: 1px solid #e2e8f0;
    border-radius: 0px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0px;
    transition: transform 0.3s ease;
}

.gallery-link-scroll {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-link-scroll:hover {
    background: var(--primary-color, #E31E24);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
    border-color: transparent;
    opacity: 1;
}

.gallery-link-scroll .fa {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.gallery-link-scroll:hover .fa {
    transform: rotate(-10deg) scale(1.1);
}



.thumbnail-item {
    width: 80px;
    height: 60px;
    border-radius: 0px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.thumbnail-item:hover, .thumbnail-item.active {
    opacity: 1;
    border-color: var(--primary-color);
}

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

.machine-info-panel {
    display: flex;
    flex-direction: column;
}

.category-badge {
    align-self: flex-start;
    /* background-color: rgba(227, 6, 19, 0.1); */
    color: var(--primary-color);
    /* border: 1px solid rgba(227, 6, 19, 0.2); */
    /* padding: 6px 12px; */
    border-radius: 0px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.category-badge:hover {
    /* background-color: var(--primary-color); */
    /* color: #fff; */
    /* border-color: var(--primary-color); */
    /* text-decoration: none; */
}


.machine-detail-title {
    font-size: 2.8rem;
    font-weight: 500;
    color: #101828;
    margin: 0 0 10px 0;
    line-height: 1.1;
    font-family: var(--font-title);
}

.machine-detail-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: #475569;
    margin: 0 0 25px 0;
    font-family: var(--font-title);
}

.machine-detail-desc {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 0px;
}

.machine-detail-desc ul {
	padding-left: 20px;
	padding-bottom: 20px;
}

.machine-detail-desc p {
	padding-bottom: 1rem;
}

.machine-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.btn-primary-cta:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-primary-cta .fa {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-primary-cta:hover .fa {
    transform: translateY(-1px);
}

.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid #e2e8f0;
    color: #334155;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary-cta:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.btn-secondary-cta .fa {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: #334155;
}

.btn-secondary-cta:hover .fa {
    transform: translateY(-1px);
}

.machine-info-panel .machine-features {
    border-top: 1px solid #e2e8f0;
    padding-top: 25px;
    margin-top: 20px;
}

.machine-keys-section, .machine-specifications-section {
    padding: 65px 0 80px;
    border-top: 1px solid #e2e8f0;
}

.machine-specifications-section h2, .contact-section-devis h2, .machine-gallery-section h2 {font-size: 3.3rem;}

.machine-specifications-section {
    background-color: #f8fafc;
}

.machine-specifications-section .section-subtitle {margin-bottom: 40px;}

.specifications-table-container {
    margin-top: 45px;
    overflow-x: auto;
    border-radius: 0px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    max-width: 900px;
    margin: auto;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.specifications-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.specifications-table tr:last-child {
    border-bottom: none;
}

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

.specifications-table td {
    padding: 18px 25px;
    font-size: 1rem;
}

.spec-label {
    color: #64748b;
    font-weight: 500;
    width: 50%;
}

.spec-value {
    color: #101828;
    font-weight: 700;
    text-align: right;
}

.spec-unit {
    /* color: var(--primary-color); */
    margin-left: 4px;
    font-weight: 500;
}

/* responsive */
@media screen and (max-width: 992px) {
    .machine-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .machine-detail-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .machine-ctas {
        flex-direction: column;
        gap: 15px;
    }
    .btn-primary-cta, .btn-secondary-cta {
        width: 100%;
    }
    .specifications-table td {
        padding: 14px 15px;
        font-size: 0.9rem;
    }
    .spec-label {
        width: 50%;
    }
}

/* Carte interactive de téléchargement du catalogue */
.catalog-download-card {
    display: flex;
    align-items: center;
    background-color: #fff5f5; /* Soft red tint */
    border: 1px solid rgba(227, 6, 19, 0.15);
    border-left: 4px solid var(--primary-color); /* Strong red accent bar */
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.catalog-download-card:hover {
    background-color: #ffffff;
    border-color: rgba(227, 6, 19, 0.25);
    border-left-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.08);
    transform: translateY(-2px);
}

.catalog-download-card .catalog-card-icon {
    font-size: 28px;
    color: var(--primary-color);
    margin-right: 18px;
    display: flex;
    align-items: center;
}

.catalog-download-card .catalog-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.catalog-download-card .catalog-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--titre-color);
}

.catalog-download-card .catalog-card-desc {
    font-size: 0.88rem;
    color: #475569; /* Darker slate for better readability */
    margin-top: 2px;
}

.catalog-download-card .catalog-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-download-card .voir-plus-svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.catalog-download-card:hover .voir-plus-svg {
    transform: translate(2px, -2px);
}

/* Section Galerie Photos (machine.php) */
.machine-gallery-section {
    /* background-color: #f8fafc; */
    border-top: 1px solid #e2e8f0;
    padding: 70px 0 80px;
}

.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    height: 640px;
    overflow: hidden;
    margin-top: 15px;
    border-radius: 0px;
}

.gallery-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--titre-color);
    border: none;
    outline: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    border-radius: 0px;
    opacity: 0;
    pointer-events: none;
}

.gallery-slider-wrapper:hover .slider-btn {
    opacity: 1;
    pointer-events: auto;
}

.slider-btn:hover {
    background-color: #1e293b;
}

.slider-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.prev-btn {
    left: 20px;
}

.prev-btn img {
    transform: rotate(180deg);
}

.prev-btn:hover img {
    transform: rotate(180deg) translateX(3px);
}

.next-btn {
    right: 20px;
}

.next-btn:hover img {
    transform: translateX(3px);
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dot {
    width: 20px;
    height: 4px;
    background-color: rgba(16, 24, 40, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0px;
}

.slider-dot:hover {
    background-color: rgba(16, 24, 40, 0.4);
}

.slider-dot.active {
    background-color: var(--primary-color);
    width: 40px;
}

/* responsive gallery slider */
@media screen and (max-width: 992px) {
    .gallery-slider-wrapper {
        height: 450px;
    }
    .gallery-slide {
        padding: 30px;
    }
}

@media screen and (max-width: 576px) {
    .gallery-slider-wrapper {
        height: 320px;
    }
    .gallery-slide {
        padding: 0;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    .prev-btn {
        left: 10px;
    }
    .next-btn {
        right: 10px;
    }
}

/* Section Découvrez aussi (machine.php) */
.machine-recommendations-section {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 80px 0;
}

.recommendations-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.machine-card-rec {
    background: #ffffff;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* border: 1px solid #e2e8f0; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.machine-card-rec:hover {
    /* transform: translateY(-5px); */
    /* box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); */
}

.image-box-link {
    display: block;
    overflow: hidden;
}

.image-box-link:hover .image-box img {
    transform: scale(1.06);
}

.machine-card-rec-title-link {
    color: #101828;
    text-decoration: none;
    transition: color 0.3s ease;
}

.machine-card-rec-title-link:hover {
    color: var(--primary-color);
}

.machine-card-rec .image-box {
    aspect-ratio: 4/3;
    overflow: hidden;
    /* background-color: #f8fafc; */
    border-bottom: 1px solid #e2e8f0;
}

.machine-card-rec .image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.machine-card-rec:hover .image-box img {
    transform: scale(1.06);
}

.machine-card-rec .content-box {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.machine-card-rec-category {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-family: var(--font-title);
}

.machine-card-rec h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #101828;
    font-family: var(--font-title);
}

.machine-card-rec h4 {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-title);
}

.machine-card-rec p {
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-rec-machine {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--titre-color);
    color: white;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.btn-rec-machine:hover {
    background-color: #1e293b;
}

.btn-rec-machine .fleche-svg {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.btn-rec-machine:hover .fleche-svg {
    transform: translateX(3px);
}

/* Responsiveness for recommendations and gallery */
@media screen and (max-width: 992px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 576px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Section Devis Machine (machine.php) */
.contact-section-devis {
    background-color: #c7272c;
    color: white;
    padding: 75px 0 80px;
}

.contact-section-devis h2 {
    color: white;
}

.contact-section-devis .section-subtitle {
    color: #fca5a5;
    max-width: 700px;
    margin: 10px auto 0;
}

.devis-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 45px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    /* border-radius: 8px; */
}

.devis-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #334155;
    text-align: left;
}

.devis-form-container input, .devis-form-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    background-color: white;
    color: #101828;
    border-radius: 0px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.devis-form-container input:focus, .devis-form-container textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-submit-devis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--titre-color);
    color: white;
    border: none;
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    width: 100%;
    box-shadow: 0 4px 15px rgba(16, 24, 40, 0.2);
}

.btn-submit-devis:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}

.btn-submit-devis .envoi-svg {
    filter: brightness(0) invert(1);
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.btn-submit-devis:hover .envoi-svg {
    /* transform: translate(3px, -3px); */
}

.devis-form-container .help-text {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 15px;
    text-align: center;
}

.devis-form-container .alert {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #101828;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.devis-form-container .alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.devis-form-container .alert-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.devis-form-container .alert h4 {
    font-weight: 700;
    margin-bottom: 5px;
}

.devis-form-container .alert-success h4 {
    color: #065f46;
}

.devis-form-container .alert-danger h4 {
    color: #991b1b;
}

/* ==========================================
   Page Gamme Complète (gamme-complete.php)
   ========================================== */

/* Barre de filtres */
.gamme-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 24px 30px;
    margin: 0 auto;
    max-width: 1210px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.filter-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.search-group {
    flex: 1.5;
    min-width: 250px;
}

.select-group {
    flex: 1.2;
    min-width: 200px;
}

.toggle-group {
    flex: 1.5;
    min-width: 250px;
}

.filter-label-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: block;
}

/* Inputs & Select */
.search-input-wrapper {
    position: relative;
    width: 100%;
}

.gamme-filter-bar input[type="text"],
.gamme-filter-bar select {
    width: 100%;
    height: 46px;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #101828;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 0px;
}

.gamme-filter-bar select.filter-active {
    border-color: var(--primary-color);
    background-color: #fdf2f2;
    font-weight: 600;
    color: var(--primary-color);
}

.gamme-filter-bar select.filter-active option {
    background-color: #ffffff;
    color: #101828;
    font-weight: normal;
}

.gamme-filter-bar input[type="text"].filter-active {
    border-color: var(--primary-color);
    background-color: #fdf2f2;
    font-weight: 600;
    color: var(--primary-color);
}

.gamme-filter-bar input[type="text"]:focus,
.gamme-filter-bar select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12);
}

.gamme-filter-bar input[type="text"] {
    padding-right: 48px;
}

.search-input-wrapper .search-submit-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 48px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search-input-wrapper .search-submit-btn:hover {
    color: var(--primary-color);
}

/* Interrupteur Toggle (iOS-like) */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    height: 46px;
    padding: 0;
    margin: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #e2e8f0;
    transition: .3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.2);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-label {
    margin-left: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Boutons Actions */
.filter-actions-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0px;
}

.btn-filter {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    height: 46px;
    padding: 0 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-filter:hover {
    background-color: var(--secondary-color);
}

.btn-reset {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    height: 46px;
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-reset:hover {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Grille Catalogue */
.gamme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Badges Nouveautés dans les cartes */
.nouveaute-badge-label {
    display: inline-block;
    align-self: flex-start;
    background-color: rgba(227, 30, 36, 0.08);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-title);
    border-left: 2px solid var(--primary-color);
}

.machine-card-desc {
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px !important;
}


/* Caractéristiques Clés sur la carte catalogue */
.card-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.card-feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
}

.card-feature-icon-wrapper {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    margin-top: 2px;
}

.card-feature-icon-wrapper svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

.card-feature-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.card-feature-title {
    font-size: 0.85rem;
    /* font-weight: 700; */
    color: #1a202c;
    color: #64748b;
}

.card-feature-text {
    font-size: 0.85rem;
    color: #1a202c;
    font-weight: 600;
}

/* Box Aucun Résultat */
.no-results-box {
    text-align: center;
    padding: 80px 40px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    max-width: 700px;
    margin: 0px auto 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.no-results-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-results-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #101828;
    margin-bottom: 10px;
    font-family: var(--font-title);
}

.no-results-box p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 30px;
}

.btn-reset-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--titre-color);
    color: white;
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 0px;
}

.btn-reset-large:hover {
    background-color: #1e293b;
}

/* Responsive pour la page catalogue */
@media screen and (max-width: 992px) {
    .gamme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .gamme-filter-bar {
        padding: 20px;
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    .gamme-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .filter-group {
        width: 100% !important;
        min-width: 100% !important;
    }
    .toggle-switch {
        width: 100%;
        border: 1px solid #cbd5e1;
        padding: 0 12px;
        background-color: #ffffff;
    }
    .filter-actions-group {
        justify-content: space-between;
        margin-top: 10px;
    }
    .btn-filter {
        flex: 1;
    }
    .btn-reset {
        justify-content: center;
        padding: 0 15px;
    }
    .gamme-grid {
        grid-template-columns: 1fr;
    }
}

.gamme-catalog-intro {padding: 20px 0 20px 0;}

.gamme-catalog-intro h1 {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 0px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    letter-spacing: 0px;
}

@media screen and (max-width: 1024px) {
    .gamme-catalog-intro h1 {
        font-size: 2rem;
        line-height: 50px;
        padding-bottom: 10px;
    }
}

/* ==========================================
   Page Détails d'une Actualité (actualite.php)
   ========================================== */

.contenu-etroit {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

.actu-detail-section {
    padding-top: 50px;
    text-align: left;
}

.actu-detail-header {
    margin-bottom: 35px;
}

.actu-detail-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-block;
    margin-bottom: 15px;
    font-family: var(--font-title);
}

.actu-detail-header h1 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--titre-color);
    line-height: 1.25;
    margin-bottom: 20px;
    font-family: var(--font-title);
    letter-spacing: -0.5px;
}

.actu-detail-summary {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0px;
    font-weight: 500;
    font-family: var(--font-main);
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

.actu-detail-cover {
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
}

.actu-detail-cover img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 580px;
    display: inline-block;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.actu-detail-content {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.8;
}

.actu-detail-content p {
    margin-bottom: 24px;
}

/* Liens dans les textes des actualités */
.actu-detail-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    background-color: #fff5f5;
    border: 1.5px solid #fecdd3;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(227, 30, 36, 0.06);
    vertical-align: baseline;
    margin: 2px 2px;
}

.actu-detail-content a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(227, 30, 36, 0.22);
}

.actu-detail-content a::after {
    content: '→';
    font-size: 1.05em;
    line-height: 1;
    transition: transform 0.25s ease;
}

.actu-detail-content a:hover::after {
    transform: translateX(3px);
}

/* Flèche diagonale pour les liens externes */
.actu-detail-content a[target="_blank"]::after {
    content: '↗';
    font-size: 1em;
}

.actu-detail-content > *:first-child,
.actu-detail-content > h2:first-child,
.actu-detail-content > h3:first-child {
    margin-top: 0 !important;
}

.actu-detail-content h2 {
    display: block;
    width: 100%;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--titre-color);
    margin-top: 50px;
    margin-bottom: 25px;
    font-family: var(--font-title);
}

.actu-detail-content h3 {
    display: block;
    width: 100%;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--titre-color);
    margin-top: 28px;
    margin-bottom: 12px;
    font-family: var(--font-title);
}

.actu-detail-content h4 {
    display: block;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--titre-color);
    margin-top: 22px;
    margin-bottom: 8px;
    font-family: var(--font-title);
}

/* Espacement harmonisé quand un sous-titre suit immédiatement un titre */
.actu-detail-content h2 + h3 {
    margin-top: 6px;
}

.actu-detail-content h3 + h4 {
    margin-top: 4px;
}

.actu-detail-content ul, 
.actu-detail-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.actu-detail-content li {
    margin-bottom: 8px;
}

.actu-detail-content strong {
    color: var(--titre-color);
    font-weight: 700;
}

/* Responsiveness actualités */
@media screen and (max-width: 768px) {
    .actu-detail-header h1 {
        font-size: 2rem;
    }
    .actu-detail-summary {
        font-size: 1.05rem;
    }
    .actu-detail-content h2 {
        font-size: 1.45rem;
        margin-top: 30px;
        margin-bottom: 12px;
    }
    .actu-detail-content h3 {
        font-size: 1.2rem;
        margin-top: 24px;
        margin-bottom: 10px;
    }
}

.actu-suggestions-section h2 {
    font-size: 2.9rem;
    letter-spacing: 0;
}

/* Modal Catalogue Style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to the top so it can scroll down naturally */
    overflow-y: auto; /* Enable scrollbar on the modal overlay */
    padding: 40px 0; /* Add margin-like padding at the top and bottom */
    z-index: 100000; /* Above everything including header sticky */
    animation: fadeIn 0.3s ease-out;
}

.modal-card {
    background: #ffffff;
    /* border-radius: 12px; */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 500px;
    padding: 35px 30px;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--primary-color);
}

.modal-header {
    margin-bottom: 25px;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--titre-color);
}

.modal-header p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.modal-form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.modal-form-group input {
    font-family: var(--font-main);
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    /* border-radius: 6px; */
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f8fafc;
}

.modal-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.15);
    background-color: #ffffff;
}

.modal-submit-btn {
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    /* border-radius: 6px; */
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.modal-submit-btn:hover {
    background-color: var(--secondary-color);
}

.modal-submit-btn:active {
    transform: scale(0.98);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Section Logiciels */
.logiciels-section {
    padding: 80px 0;
    background-color: #f8fafc; /* Alternance avec l'expertise (rouge) et les actus (blanc) */
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.software-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 80px;
}

.software-row + .software-row {
    margin-top: 110px; /* Espace vide supplémentaire entre les deux blocs de logiciels */
}

.software-row.reverse {
    flex-direction: row-reverse;
}

.software-image-box {
    flex: 1;
    border: 1px solid #edf2f7;
    background-color: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    overflow: hidden;
}

.software-image-box > img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- MOSAÏQUE LOGICIEL (MASTER 3D) --- */
.software-image-box.software-mosaic-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.software-mosaic-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.software-mosaic-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #0b1120;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

/* Item Vidéo : en haut, pleine largeur */
.software-mosaic-item.item-video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.software-mosaic-item.item-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #000000;
}

/* Rangée des deux photos côte-à-côte */
.software-mosaic-photos-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
}

.software-mosaic-item.item-photo {
    aspect-ratio: 16 / 10;
    cursor: pointer;
    background-color: #0f172a;
}

.software-mosaic-item.item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.software-mosaic-item.item-photo:hover img {
    transform: scale(1.05);
}

/* Overlay au survol des photos */
.software-mosaic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s ease;
    color: #ffffff;
    pointer-events: none;
}

.software-mosaic-item.item-photo:hover .software-mosaic-overlay {
    opacity: 1;
}

.software-mosaic-overlay .overlay-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color, #E31E24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.4);
    transform: translateY(4px);
    transition: transform 0.25s ease;
}

.software-mosaic-item.item-photo:hover .software-mosaic-overlay .overlay-icon {
    transform: translateY(0);
}

.software-mosaic-overlay .overlay-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Badges sur les médias de la mosaïque */
.software-mosaic-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.software-mosaic-badge i {
    margin-right: 5px;
    color: var(--primary-color, #E31E24);
}

.software-mosaic-badge.video-badge {
    background: rgba(227, 30, 36, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.software-mosaic-badge.video-badge i {
    color: #ffffff;
}

@media (max-width: 480px) {
    .software-mosaic-photos-row {
        gap: 10px;
    }
    .software-mosaic-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        top: 6px;
        left: 6px;
    }
    .software-mosaic-overlay .overlay-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* --- DIAPORAMA / GALERIE MÉDIAS LOGICIEL (MASTERWINDOW & AUTRES) --- */
.software-media-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.software-media-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 538;
    background-color: #0b1120;
    overflow: hidden;
}

.software-media-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.software-media-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.software-media-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.software-media-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #000000;
}

/* Badge indicateur de type */
.media-type-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.media-type-pill i {
    margin-right: 6px;
    color: var(--primary-color, #E31E24);
}

.media-type-pill.video-pill {
    background: rgba(227, 30, 36, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.media-type-pill.video-pill i {
    color: #ffffff;
}

/* Flèches de navigation parfaitement centrées */
.software-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
    opacity: 0.85;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.software-gallery-arrow svg {
    display: block;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.software-gallery-arrow:hover {
    background: var(--primary-color, #E31E24);
    border-color: var(--primary-color, #E31E24);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(227, 30, 36, 0.45);
}

.software-gallery-arrow.prev {
    left: 14px;
}

.software-gallery-arrow.next {
    right: 14px;
}

.software-gallery-arrow.prev:hover svg {
    transform: translateX(-1px);
}

.software-gallery-arrow.next:hover svg {
    transform: translateX(1px);
}

/* Miniatures de navigation */
.software-media-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
}

.software-thumb-item {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    outline: none;
    text-align: center;
}

.software-thumb-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.software-thumb-item.active {
    border-color: var(--primary-color, #E31E24);
    background: #fff5f5;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.15);
}

.thumb-img-wrapper {
    position: relative;
    width: 100%;
    height: 54px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #0b1120;
}

.thumb-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-img-wrapper.video-thumb .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(227, 30, 36, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    padding-left: 2px;
}

.thumb-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.software-thumb-item.active .thumb-label {
    color: var(--primary-color, #E31E24);
}

/* Curseur et bouton zoom pour agrandir la diapositive au clic */
.software-media-slide {
    cursor: zoom-in;
}

.software-slide-zoom-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 4;
}

.software-slide-zoom-btn i {
    color: var(--primary-color, #E31E24);
    font-size: 13px;
    transition: color 0.25s ease;
}

.software-media-slide:hover .software-slide-zoom-btn {
    background: var(--primary-color, #E31E24);
    border-color: var(--primary-color, #E31E24);
    box-shadow: 0 4px 14px rgba(227, 30, 36, 0.4);
    transform: scale(1.04);
}

.software-media-slide:hover .software-slide-zoom-btn i {
    color: #ffffff;
}

/* Miniatures pour 5 éléments (MasterWindow) */
.software-media-thumbs.thumbs-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 10px 12px;
}

.software-media-thumbs.thumbs-5 .software-thumb-item {
    padding: 3px;
    border-radius: 6px;
    background: #ffffff;
}

.software-media-thumbs.thumbs-5 .thumb-img-wrapper {
    height: 56px;
    border-radius: 4px;
}

/* Miniatures pour 2 éléments (Automation) */
.software-media-thumbs.thumbs-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px 12px;
}

.software-media-thumbs.thumbs-2 .software-thumb-item {
    padding: 4px;
    border-radius: 6px;
    background: #ffffff;
}

.software-media-thumbs.thumbs-2 .thumb-img-wrapper {
    height: 60px;
    background-color: #ffffff;
    border-radius: 4px;
}

.software-media-thumbs.thumbs-2 .thumb-img-wrapper img {
    object-fit: contain;
}

/* Miniatures pour 3 éléments (Automation : 1 vidéo + 2 photos) */
.software-media-thumbs.thumbs-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px 12px;
}

.software-media-thumbs.thumbs-3 .software-thumb-item {
    padding: 4px;
    border-radius: 6px;
    background: #ffffff;
}

.software-media-thumbs.thumbs-3 .thumb-img-wrapper {
    height: 60px;
    background-color: #ffffff;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-media-thumbs.thumbs-3 .thumb-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.software-media-thumbs.thumbs-3 .thumb-video-wrapper {
    background-color: #0b1120;
}

.software-media-thumbs.thumbs-3 .thumb-video-wrapper img {
    object-fit: cover;
}

/* Miniatures pour 4 éléments (Automation : 1 vidéo + 3 photos) */
.software-media-thumbs.thumbs-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px 12px;
}

.software-media-thumbs.thumbs-4 .software-thumb-item {
    padding: 4px;
    border-radius: 6px;
    background: #ffffff;
}

.software-media-thumbs.thumbs-4 .thumb-img-wrapper {
    height: 58px;
    background-color: #ffffff;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-media-thumbs.thumbs-4 .thumb-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.software-media-thumbs.thumbs-4 .thumb-video-wrapper {
    background-color: #0b1120;
}

.software-media-thumbs.thumbs-4 .thumb-video-wrapper img {
    object-fit: cover;
}

.thumb-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    background: rgba(227, 30, 36, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

.thumb-play-icon i {
    margin-left: 2px;
}

.software-thumb-item:hover .thumb-play-icon,
.software-thumb-item.active .thumb-play-icon {
    transform: translate(-50%, -50%) scale(1.12);
    background: #e31e24;
    box-shadow: 0 3px 12px rgba(227, 30, 36, 0.6);
}

@media (max-width: 600px) {
    .software-media-thumbs.thumbs-5 {
        gap: 6px;
        padding: 8px 6px;
    }
    .software-media-thumbs.thumbs-5 .thumb-img-wrapper {
        height: 42px;
    }
    .software-media-thumbs.thumbs-3 {
        gap: 6px;
        padding: 8px 6px;
    }
    .software-media-thumbs.thumbs-3 .thumb-img-wrapper {
        height: 46px;
    }
    .software-media-thumbs.thumbs-3 .thumb-play-icon {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    .software-media-thumbs.thumbs-4 {
        gap: 6px;
        padding: 8px 6px;
    }
    .software-media-thumbs.thumbs-4 .thumb-img-wrapper {
        height: 44px;
    }
    .software-media-thumbs.thumbs-4 .thumb-play-icon {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }
    .software-slide-zoom-btn span {
        display: none;
    }
    .software-slide-zoom-btn {
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .software-media-thumbs {
        gap: 6px;
        padding: 8px;
    }
    .thumb-img-wrapper {
        height: 44px;
    }
    .thumb-label {
        font-size: 0.7rem;
    }
    .media-type-pill {
        font-size: 0.7rem;
        padding: 4px 10px;
        top: 8px;
        left: 8px;
    }
}

.software-content-box {
    flex: 1;
    text-align: left;
}

.software-badge {
    display: inline-block;
    background-color: rgba(227, 6, 19, 0.08);
    color: var(--primary-color);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.software-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--titre-color);
    margin: 0 0 10px 0;
}

.software-subtitle {
    font-size: 1.25rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}

.software-desc {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
}

.software-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.software-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.4;
}

.software-features-list li i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .software-row {
        flex-direction: column !important;
        gap: 40px;
        margin-top: 50px;
    }
    .software-row + .software-row {
        margin-top: 80px; /* Espace supplémentaire entre logiciels sur mobile/tablette */
    }
    .software-image-box {
        width: 100%;
    }
    .software-content-box {
        width: 100%;
    }
}

/* Section Automatisation */
.automation-section {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.automation-section h2 {
	 font-size: 3.4rem;
}

.automation-grid {
    display: flex;
    align-items: center;
    gap: 45px;
}

.automation-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.automation-image {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* Diaporama Automatisation */
.automation-media-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
}

.automation-media-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #ffffff;
    overflow: hidden;
}

.automation-media-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    cursor: zoom-in;
    background-color: #ffffff;
    padding: 16px;
    box-sizing: border-box;
}

.automation-media-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.automation-media-slide.slide-video {
    padding: 0;
    background-color: #000000;
    cursor: default;
}

.automation-media-slide.slide-video .software-mosaic-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    pointer-events: none;
}

.automation-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.automation-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.automation-media-slide img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.automation-media-slide:hover .software-slide-zoom-btn {
    background: var(--primary-color, #E31E24);
    border-color: var(--primary-color, #E31E24);
    box-shadow: 0 4px 14px rgba(227, 30, 36, 0.4);
    transform: scale(1.04);
}

.automation-media-slide:hover .software-slide-zoom-btn i {
    color: #ffffff;
}

/* Flèches pour le diaporama automatisation */
.automation-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
    opacity: 0.85;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.automation-gallery-arrow svg {
    display: block;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.automation-gallery-arrow:hover {
    background: var(--primary-color, #E31E24);
    border-color: var(--primary-color, #E31E24);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(227, 30, 36, 0.45);
}

.automation-gallery-arrow.prev {
    left: 14px;
}

.automation-gallery-arrow.next {
    right: 14px;
}

.automation-gallery-arrow.prev:hover svg {
    transform: translateX(-1px);
}

.automation-gallery-arrow.next:hover svg {
    transform: translateX(1px);
}

/* Groupe CTA Automatisation */
.automation-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    align-items: center;
}

.automation-badge {
    display: inline-block;
    background-color: rgba(227, 6, 19, 0.08);
    color: var(--primary-color);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}



.automation-lead {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 30px;
}

.automation-solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.sol-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.sol-item i {
    color: var(--primary-color);
    background-color: rgba(227, 6, 19, 0.05);
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
    transition: background-color 0.3s, color 0.3s;
}

.sol-item:hover i {
    /* background-color: var(--primary-color); */
    /* color: var(--white); */
}

.sol-item h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--titre-color);
    margin: 0 0 5px 0;
}

.sol-item p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 992px) {
    .automation-grid {
        flex-direction: column !important;
        gap: 40px;
    }
    
    .automation-content {
        width: 100%;
    }
    
    .automation-image {
        width: 100%;
    }
    
    .automation-solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Table des caractéristiques techniques (fiche produit) */
.spec-matrix-table-wrapper {
    overflow-x: auto;
    margin: 30px auto 40px auto;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 0;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    max-width: 1100px;
}
.spec-matrix-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
    table-layout: fixed;
}
.spec-matrix-table th, .spec-matrix-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #edf2f7;
}
.spec-matrix-table th {
    background-color: #f7fafc;
    font-weight: 700;
    color: #2d3748;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}
.spec-matrix-table th.spec-col-header {
    background-color: #1a202c;
    color: #fff;
    text-align: center;
    font-weight: 600;
    border-left: 1px solid #2d3748;
}
.spec-matrix-table th.spec-col-header.active-col {
    background-color: #E31E24;
    border-left: 1px solid #c9171d;
}
.spec-matrix-table .spec-name {
    /* width: 220px !important; */
}
@media screen and (min-width: 1200px) {
    .spec-matrix-table .spec-name {
        width: 35% !important;
    }
}
.spec-matrix-table td.spec-name {
    font-weight: 600;
    color: #4a5568;
    background-color: #f4f6f8 !important;
}
.spec-matrix-table td.spec-val {
    text-align: center;
    color: #2d3748;
    font-weight: 500;
    border-left: 1px solid #edf2f7;
}
.spec-matrix-table tr:nth-child(even) td {
    background-color: #f7fafc;
}
.spec-matrix-table tr:nth-child(odd) td {
    background-color: #ffffff;
}
.spec-matrix-table tr:hover td {
    background-color: #edf2f7;
}
.spec-matrix-table tr:hover td.spec-name {
    background-color: #e2e8f0 !important;
}
.spec-unit {
    font-size: 12px;
    color: #718096;
    margin-left: 4px;
    font-weight: normal;
}
.spec-empty-val {
    color: #a0aec0;
    font-weight: normal;
}

/* Section Vidéo de présentation */
.machine-video-section {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid #e2e8f0;
}

.video-container-box {
    max-width: 900px;
    margin: 30px auto 0 auto;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
}

.video-ratio-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio aspect 16:9 */
    height: 0;
    overflow: hidden;
}

.video-ratio-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-link-scroll {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary-color, #E31E24);
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.video-link-scroll:hover {
    background: var(--secondary-color, #ba040e);
    color: white;
    border-color: #ffffff;
    opacity: 1;
}

.video-link-scroll .fa {
    font-size: 1.05rem;
}

/* Vidéos complémentaires machine */
.comp-videos-container {
    max-width: 1100px;
    margin: 60px auto 0 auto;
    text-align: center;
}

.comp-videos-header {
    margin-bottom: 30px;
    text-align: center;
}

.comp-videos-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--titre-color, #101828);
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.comp-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 25px;
    text-align: left;
}

.comp-video-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.comp-video-card:only-child {
    grid-column: 1 / -1;
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
}

.comp-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .comp-videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comp-videos-title {
        font-size: 2rem;
    }
}

/* Page SAV */
.sav-hero-section {
    padding: 20px 0 30px 0;
    background-color: var(--light-bg);
    border-bottom: 1px solid #edf2f7;
}

.sav-logo-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sav-logos-duo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
}

.sav-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sav-logos-separator {
    width: 1px;
    height: 48px;
    background-color: #cbd5e1;
}

.sav-hero-logo {
    max-height: 52px;
    height: auto;
    width: auto;
    max-width: 100%;
    display: block;
}

.sav-logo-brondelle {
    height: 48px;
}

.sav-mw-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.sav-logo-mw {
    height: 46px;
}

.sav-badge-services {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 4px;
}

.sav-badge-services .texte-france {
    font-size: 1.05rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-title);
    line-height: 1;
    color: var(--text-color);
}

.sav-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--titre-color);
    margin: 0 auto 20px auto;
    line-height: 1.2;
    /* max-width: 900px; */
}

.sav-hero-lead {
    font-size: 1.25rem;
    color: #475569;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.sav-services-section {
    padding: 60px 0;
    background-color: var(--white);
}

.sav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.sav-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 35px 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    border-radius: 0px;
}

.sav-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.sav-card-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: rgba(227, 30, 36, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sav-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--titre-color);
    margin: 0 0 12px 0;
}

.sav-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.sav-coverage-section {
    padding: 35px 0;
    background-color: var(--light-bg);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.sav-coverage-box {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px 45px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border-radius: 0px;
}

.sav-coverage-content {
    text-align: center;
}

.sav-coverage-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--titre-color);
    line-height: 1.25;
    text-align: center;
}

.sav-coverage-content p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.sav-coverage-countries {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 25px 0;
}

.country-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.country-item strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    color: var(--titre-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.country-item strong i {
    color: var(--primary-color);
    font-size: 1.15rem;
}

.country-item p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 450px;
}

.sav-coverage-text {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
    max-width: 800px;
}

@media (max-width: 768px) {
    .sav-coverage-countries {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.sav-cta-section {
    padding: 80px 0;
    background-color: var(--white);
}

.sav-cta-box {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--titre-color);
    color: white;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0px;
}

.sav-cta-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin: 0 0 15px 0;
}

.sav-cta-box p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.sav-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0px;
}

.sav-btn-phone {
    background-color: var(--primary-color);
    color: white;
}

.sav-btn-phone:hover {
    background-color: var(--secondary-color);
    color: white;
}

.sav-btn-email {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.sav-btn-email:hover {
    background-color: white;
    color: var(--titre-color);
}

.sav-btn-web {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.sav-btn-web:hover {
    background-color: white;
    color: var(--titre-color);
    border-color: white;
}

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

@media (max-width: 768px) {
    .sav-logos-duo {
        flex-direction: column;
        gap: 16px;
    }
    .sav-logos-separator {
        width: 60px;
        height: 1px;
    }
    .sav-logo-brondelle {
        height: 38px;
    }
    .sav-logo-mw {
        height: 36px;
    }
    .sav-badge-services .texte-france {
        font-size: 0.95rem;
    }
    .sav-hero-title {
        font-size: 2.2rem;
    }
    .sav-grid {
        grid-template-columns: 1fr;
    }
    .sav-coverage-box {
        padding: 25px;
    }
    .sav-cta-box {
        padding: 35px 20px;
    }
    .sav-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .sav-btn {
        justify-content: center;
    }
}

/* Section SAV Impact (Bandeau Accueil Split) */
.sav-impact-section {
    background-color: var(--titre-color, #101828);
    color: #ffffff;
    padding: 80px 0;
    border: none;
}

.sav-impact-section h2 {
	font-size: 3.2rem;
}

.sav-impact-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.sav-impact-left {
    flex: 1.1;
    text-align: left;
}

.sav-impact-badge {
    display: inline-block;
    background-color: rgba(227, 30, 36, 0.15);
    color: var(--primary-color);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-radius: 0px;
}

.sav-impact-section h2 {
    color: #ffffff;
}

.sav-impact-left p {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0 0 35px 0;
}

.sav-impact-action-div {
    text-align: left;
}

.sav-impact-action-div .btn-more {
    box-shadow: 0 4px 20px rgba(227, 30, 36, 0.35);
}

.sav-impact-right {
    flex: 1.2;
}

.sav-impact-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.sav-impact-service-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.sav-impact-service-item i {
    color: var(--primary-color);
    background-color: rgba(227, 30, 36, 0.1);
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.sav-impact-service-item h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 3px 0;
}

.sav-impact-service-item p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 992px) {
    .sav-impact-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .sav-impact-left {
        width: 100%;
        text-align: center;
    }
    .sav-impact-left h2 {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    .sav-impact-left p {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    .sav-impact-action-div {
        text-align: center;
    }
    .sav-impact-right {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .sav-impact-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- MOSAÏQUE DE PHOTOS (GALERIE ACTUALITÉS) --- */
.actu-mosaic-container {
    margin-top: 40px;
    margin-bottom: 10px;
    border-top: 1px solid #edf2f7;
    padding-top: 40px;
}

.actu-mosaic-grid {
    display: grid;
    gap: 15px;
}

/* Mosaic items */
.mosaic-item {
    overflow: hidden;
    background-color: #f8fafc;
    position: relative;
    border-radius: 0px; /* Anguleux */
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    cursor: pointer;
}

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

/* --- CONFIGURATIONS DES GRILLES SELON LE NOMBRE D'IMAGES --- */

/* 1 Image : Pleine largeur */
.actu-mosaic-grid.count-1 {
    grid-template-columns: 1fr;
}
.actu-mosaic-grid.count-1 .mosaic-item {
    height: 480px;
}

/* 2 Images : Deux colonnes égales */
.actu-mosaic-grid.count-2 {
    grid-template-columns: repeat(2, 1fr);
}
.actu-mosaic-grid.count-2 .mosaic-item {
    height: 350px;
}

/* 3 Images : 1 grande à gauche, 2 petites empilées à droite */
.actu-mosaic-grid.count-3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
}
.actu-mosaic-grid.count-3 .mosaic-item.item-featured {
    grid-column: span 2;
    grid-row: span 2;
}
.actu-mosaic-grid.count-3 .mosaic-item {
    height: 100%;
}

/* 4 Images : Grille compacte 2x2 */
.actu-mosaic-grid.count-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 280px);
}
.actu-mosaic-grid.count-4 .mosaic-item {
    height: 100%;
}

/* 5+ Images : Grille fluide type Masonry/Portfolio */
.actu-mosaic-grid.count-many {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.actu-mosaic-grid.count-many .mosaic-item {
    height: 280px;
}

/* Responsive pour mobiles et tablettes */
@media screen and (max-width: 768px) {
    .actu-mosaic-grid.count-3,
    .actu-mosaic-grid.count-4 {
        grid-template-rows: auto;
    }
    .actu-mosaic-grid.count-2,
    .actu-mosaic-grid.count-3,
    .actu-mosaic-grid.count-4,
    .actu-mosaic-grid.count-many {
        grid-template-columns: 1fr;
    }
    .actu-mosaic-grid.count-1 .mosaic-item {
        height: 300px;
    }
    .actu-mosaic-grid.count-2 .mosaic-item,
    .actu-mosaic-grid.count-3 .mosaic-item,
    .actu-mosaic-grid.count-4 .mosaic-item,
    .actu-mosaic-grid.count-many .mosaic-item {
        height: 250px;
    }
    .actu-mosaic-grid.count-3 .mosaic-item.item-featured {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* --- LIGHTBOX GALERIE ACTUALITÉS --- */
.actu-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.actu-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* Lightbox Slider Layout */
.lightbox-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.lightbox-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.lightbox-slide img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 0px; /* Anguleux strict */
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Compteur / Légende */
.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #e2e8f0;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    z-index: 3100;
}

/* Boutons de navigation */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border-radius: 0px; /* Anguleux strict */
    outline: none;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: #e30613; /* Rouge Masterwood */
    border-color: #e30613;
    color: #ffffff;
}

/* Fermer (haut droit) */
.lightbox-close {
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    font-size: 24px;
    z-index: 100100;
}

/* Précédent (gauche centre) */
.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 18px;
    z-index: 100100;
}

/* Suivant (droite centre) */
.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 18px;
    z-index: 100100;
}

/* Responsive pour mobiles */
@media screen and (max-width: 768px) {
    .lightbox-prev {
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .lightbox-next {
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .lightbox-slide img {
        max-height: 70vh;
    }
}


@media screen and (max-width: 1200px) {
	.machine-photo img {max-width: 500px; margin: auto;}
}

@media screen and (max-width: 1000px) {
	.categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .automation-image {
        max-width: 620px;
        width: 100%;
        margin: 0 auto;
    }
    .automation-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
}

@media screen and (max-width: 768px) {
	.automation-section h2 {font-size: 2rem;line-height: 42px;padding-bottom: 10px;}
	.software-title {font-size: 1.8rem;}

    /* Optimisation compacte de la section Expertise Masterwood sur mobile */
    .expertise-section {
        padding: 45px 0 35px 0;
    }
    .expertise-section .section-subtitle {
        margin-bottom: 25px;
        font-size: 1.1rem;
    }
    .expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 25px;
        width: 100%;
    }
    .expertise-card {
        padding: 15px 10px;
        text-align: left;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .card-icon {
        margin-bottom: 6px;
    }
    .expertise-icon {
        width: 28px;
        height: 28px;
    }
    .expertise-card h3 {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 4px;
        line-height: 1.25;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .expertise-card p {
        font-size: 0.8rem;
        line-height: 1.35;
        margin-bottom: 8px;
        color: #64748b;
        overflow-wrap: break-word;
    }
    .card-accent {
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0;
    }
    .excellence-box {
        margin: 20px auto 0;
        padding: 18px 16px;
        max-width: 100%;
    }
    .excellence-content h4 {
        font-size: 0.78rem;
        letter-spacing: 0.5px;
    }
    .excellence-title {
        font-size: 1.7rem;
    }
    .excellence-content p {
        font-size: 0.85rem;
        margin-top: 3px;
    }
	.video-link-scroll {font-size: 0.8rem;left: 5px;padding: 10px 15px;}
	.gallery-link-scroll {right: 5px;}
	.machine-specifications-section h2, .contact-section-devis h2, .machine-gallery-section h2 {font-size: 2rem;line-height: 42px;padding-bottom: 10px;}
	.devis-form-container {padding: 45px 18px;}
	.contact-section-devis .contenu {padding-left: 8px; padding-right: 8px;}
	.contact-section-devis .text-center {padding-left: 10px; padding-right: 10px;}
	
	.contact-info-title {font-size: 1.3rem;}
	
	.footer-logo-text {font-size: 1.8rem;}
	
	.actu-detail-section {padding-top: 10px;}
	
	.machine-detail-section {padding-top: 10px;}
}

/* Version mobile optimisée des caractéristiques techniques */
.spec-mobile-container {
    display: none;
    text-align: left;
    margin: 30px auto 40px auto;
    background: #fff;
    border: 1px solid #edf2f7;
    padding: 20px;
    border-radius: 0px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    max-width: 1100px;
}

.spec-mobile-tabs-header {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
    text-align: center;
}

.spec-mobile-tabs {
    display: flex;
    flex-wrap: wrap;
    background-color: #f7fafc;
    border: 1px solid #edf2f7;
    padding: 4px;
    margin-bottom: 20px;
    border-radius: 0px;
    gap: 4px;
}

.spec-mobile-tab-btn {
    flex: 1 1 auto;
    min-width: 110px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    background-color: transparent;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.spec-mobile-tab-btn:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.spec-mobile-tab-btn.active {
    background-color: #E31E24;
    color: #fff;
}

.spec-mobile-pane {
    display: none;
}

.spec-mobile-pane.active {
    display: block;
}

.spec-mobile-list {
    border: 1px solid #edf2f7;
}

.spec-mobile-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 12px 20px;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
}

.spec-mobile-item:last-child {
    border-bottom: none;
}

.spec-mobile-item:nth-child(even) {
    background-color: #f7fafc;
}

.spec-mobile-item:nth-child(odd) {
    background-color: #ffffff;
}

.spec-mobile-label {
    color: #718096;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-mobile-value {
    color: #1a202c;
    font-weight: 600;
    text-align: left;
}

@media screen and (max-width: 1199px) {
    .spec-matrix-table-wrapper {
        display: none !important;
    }
    .spec-mobile-container {
        display: block !important;
    }
    
    nav ul.desktop-menu li:last-child {margin-left: 0;}
}

/* Badge d'option de machine (Version W / Menuiserie) */
.badge-option-w {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #e30613; /* Rouge Masterwood */
    background-color: rgba(227, 6, 19, 0.08);
    border: 1px solid #e30613;
    padding: 3px 8px;
    margin-top: 5px;
    margin-bottom: 20px;
    letter-spacing: 0.6px;
    border-radius: 0px; /* Anguleux strict */
    font-family: 'Inter', sans-serif;
    vertical-align: middle;
    margin-top: -12px;
}

.machine-card-rec h3 + .badge-option-w {
    margin-top: -15px;
    margin-bottom: 20px;
    font-size: 0.75rem;
}

@media screen and (max-width: 768px) {
	.btn-all-gamme {padding: 1rem 1rem;}
	.btn-primary-cta {padding: 1rem 1rem;}

    /* Optimisation des cartes de catégories sur mobile pour éviter tout débordement */
    .category-card {
        height: 310px;
    }
    .card-inner {
        padding: 22px 20px;
    }
    .category-title {
        font-size: 1.5rem;
        line-height: 1.25;
        margin-bottom: 6px;
    }
    .category-desc {
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.9rem;
        line-height: 1.45;
        margin-bottom: 15px;
    }
    .btn-category-more {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .category-card {
        height: 295px;
    }
    .card-inner {
        padding: 18px 16px;
    }
    .category-title {
        font-size: 1.35rem;
        line-height: 1.25;
        margin-bottom: 5px;
    }
    .category-desc {
        -webkit-line-clamp: 2;
        font-size: 0.84rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    .btn-category-more {
        padding: 7px 16px;
        font-size: 0.82rem;
    }
    
    .sav-impact-section h2 {font-size: 2rem;}
    .btn-more {padding: 0.9rem 1rem;}
}





