: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: 1250px;
    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: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    height: 90px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header.sticky-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    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) {
    position: relative;
}

header:not(.sticky-scrolled) nav a:not(.contact):not(.site-mondial)::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

header:not(.sticky-scrolled) nav a:not(.contact):not(.site-mondial):hover::after {
    width: 100%;
}

header:not(.sticky-scrolled) nav a:not(.contact):not(.site-mondial):hover {
    color: white !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;
    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 img {
    display: block;
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

/* 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-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;
    /* font-weight: 400; */
}

.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-action-container {
    margin-top: 50px;
}

.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 */
    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 */
}

@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: 100%;
}

.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;
    flex: 1;
}

.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;
}

.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;
}

.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;
}

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

.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;
}

.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: 20px;
}

.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;
}

.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 ≤ 1024px */
@media screen and (max-width: 1024px) {
    #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%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .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: 1.8rem;
    }
    
    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: 15px;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .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.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !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;
}

.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;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #64748b;
}

.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: 50px;
}

.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: 35px;
}

.machine-detail-desc ul {
	padding-left: 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: 0;
}

.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: 2.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%;
    }
}

.btn-download-catalog {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--titre-color);
    color: white;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0px;
    width: 100%;
    border-top: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
    margin-top: 46px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-download-catalog .voir-plus-svg-white {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.btn-download-catalog:hover .voir-plus-svg-white {
    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: 20px;
    }
    .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.9rem;
    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: 2.2rem;
    }
}

/* ==========================================
   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%;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

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

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

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

.actu-detail-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--titre-color);
    margin-top: 45px;
    margin-bottom: 20px;
    font-family: var(--font-title);
}

.actu-detail-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--titre-color);
    margin-top: 35px;
    margin-bottom: 15px;
    font-family: var(--font-title);
}

.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-cover {
        aspect-ratio: 4/3;
    }
}

.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; }
}



