/* ============================================
   DYNA - Styles CSS Optimisés
   Design moderne inspiré d'Apple
   Architecture modulaire et performante
   ============================================ */

/* ============================================
   1. VARIABLES CSS & TOKENS DE DESIGN
   ============================================ */
:root {
    /* Couleurs principales */
    --primary-red: #db0d1e;
    --dark-red: #A01020;
    --black: #1d1d1f;
    --white: #ffffff;
    --light-gray: #f5f5f7;
    --text-gray: #666;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-medium: all 0.4s ease;
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Ombres */
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 50px;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.022em;
    background-color: var(--white);
    line-height: 1.6;
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============================================
   3. NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-slow);
}

nav.scrolled {
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    transition: opacity 0.3s;
    position: relative;
}

nav.scrolled .nav-links a {
    color: var(--black);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-socials {
    display: flex;
    gap: 20px;
}

.nav-socials a i {
    color: #888;
    font-size: 18px;
    transition: var(--transition-smooth);
}

.nav-socials a:hover i {
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-smooth);
}

nav.scrolled .mobile-menu span {
    background: var(--black);
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(29, 29, 31, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    z-index: 2000;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 25px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.mobile-nav.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.3s; }
.mobile-nav.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.4s; }
.mobile-nav.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.5s; }
.mobile-nav.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.6s; }

.mobile-nav-links a {
    color: var(--white);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--primary-red);
}

/* Progress Bar */
.progress-bar-container {
    position: fixed;
    top: 48px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 999;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--dark-red) 0%, var(--primary-red) 50%, #ff4d6d 100%);
    box-shadow: 0 0 10px var(--primary-red);
    transition: width 0.1s ease;
}

/* ============================================
   4. HERO SECTION
   ============================================ */
.hero {
    margin-top: 60px;
    min-height: 90vh;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 29, 31, 0.6) 0%, rgba(220, 20, 60, 0.1) 50%, rgba(29, 29, 31, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 0 var(--spacing-md);
    animation: fadeInUp 1s ease;
}

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

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero h1 span {
    background:var(--primary-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 60px;
    font-weight: 300;
}

/* ============================================
   5. BOUTONS
   ============================================ */
.cta-hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

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

.btn {
    padding: 18px 50px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
    min-width: 220px;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
     margin-top: 40px;
}

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.btn-forestier,
.btn-tp {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-tp {
    color: var(--primary-red);
    border-color: var(--primary-red);
    font-weight: 600;
}

.btn-forestier:hover,
.btn-tp:hover {
    background: #2d2d2f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


/* ============================================
   6. SECTIONS COMMUNES
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--black);
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 60px;
    font-weight: 300;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   7. PRODUITS
   ============================================ */
.products {
    position: relative;
    background: var(--light-gray);
    padding: 100px var(--spacing-md);
    z-index: 1;
    overflow: hidden;
}

.products-dynamic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    pointer-events: none;
}

.products.has-active-bg .products-dynamic-bg {
    opacity: 0.15;
    transform: scale(1);
}

.product-grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.category-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: var(--transition-smooth);
    
}

.category-image2 {
  height: 160px; /* On garde votre hauteur initiale */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px; /* On réduit le padding de 20px à 5px pour libérer de la place */
    transition: var(--transition-smooth);
    overflow: hidden;
    max-width: 100%;   /* L'image peut s'étaler presque sur toute la largeur */
    max-height: 100%;  /* L'image peut utiliser presque toute la hauteur (160px) */
    width: auto;
    height: auto;
    object-fit: contain;
    transform: scale(1.1); 
    transition: transform 0.3s ease;
    transform: scale(1.2);

}
.range-logo {
    max-width: 80%;
    max-height: 80px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.category-card:hover .range-logo {
    transform: scale(1.1);
}

/* Couleurs de fond par catégorie */
.forestier-bg { background: linear-gradient(135deg, #ededed, #e0e0e0); }
.tp-bg { background: linear-gradient(135deg, #ededed, #e0e0e0); }
.agricole-bg { background: linear-gradient(135deg, #ededed, #e0e0e0); }
.industrie-bg { background: linear-gradient(135deg, #ededed, #e0e0e0); }

.category-card:has(.forestier-bg):hover { border-bottom: 4px solid #4CAF50; }
.category-card:has(.tp-bg):hover { border-bottom: 4px solid var(--primary-red); }
.category-card:has(.agricole-bg):hover { border-bottom: 4px solid #FBC02D; }
.category-card:has(.industrie-bg):hover { border-bottom: 4px solid #9e9e9e; }

.category-info {
    padding: 30px;
    flex-grow: 1;
}

.category-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--black);
    font-weight: 700;
}

.category-info p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    transition: var(--transition-smooth);
}

.category-link:hover,
.category-card:hover .category-link {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   8. MARQUES CLÉS
   ============================================ */
.brand-focus {
    padding: 100px var(--spacing-md);
    background: #fbfbfd;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.focus-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.focus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-red);
}

.focus-image-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.focus-logo {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.focus-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--black);
}

.focus-text p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.focus-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--primary-red);
    padding: 5px 15px;
    border-radius: var(--radius-full);
}

/* ============================================
   9. SECTION SANY
   ============================================ */
.sany-expertise {
    position: relative;
    padding: 120px 0;
    background: #000;
    color: var(--white);
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.sany-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.sany-video-container iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.sany-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

.sany-container {
    position: relative;
    z-index: 3;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.sany-main-logo {
    width: 280px;
    height: auto;
    margin-bottom: 25px;
}

.sany-brand-info h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.sany-badge {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 20px;
}

.sany-sectors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sector-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.sector-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--primary-red);
}

.sector-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.sector-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.warranty-counter,
.reliability-counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin: 10px 0;
    display: inline-block;
}

.zoom-impact {
    animation: zoomImpact 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    color: var(--primary-red);
}

@keyframes zoomImpact {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}

/* ============================================
   10. ZONES D'INTERVENTION
   ============================================ */
.sany-intervention {
    background-color: #f5f5f7;
    padding: 80px var(--spacing-md);
}

.sany-zone-container {
    max-width: 1100px;
    margin: 0 auto;
}

.sany-zone-header {
    text-align: center;
    margin-bottom: 50px;
}

.sany-zone-content {
    display: flex;
    gap: 40px;
}

.agency-card {
    flex: 1;
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    border-top: 5px solid var(--dark-red);
    transition: var(--transition-smooth);
}

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

.agency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sany-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
    margin-right: 10px;
}

.region-tag {
    font-size: 0.7rem;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    color: #888;
    font-weight: bold;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-top: 15px;
}

.dept-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #fdfdfd;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.dept-item strong {
    color: var(--primary-red);
    margin-right: 10px;
    width: 25px;
    display: inline-block;
}

.dept-item:hover {
    background: #fff1f1;
    border-color: var(--primary-red);
    transform: translateX(5px);
}

/* ============================================
   11. SECTION PONSSE
   ============================================ */
.ponsse-section {
    position: relative;
    padding: 80px 5%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.ponsse-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.ponsse-video-bg iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ponsse-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.ponsse-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.ponsse-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ponsse-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.ponsse-card:hover {
    border-color: #f7d100;
    transform: translateY(-5px);
}

.p-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.ponsse-brand-content {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ponsse-logo-main {
    width: 250px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.ponsse-btn {
    display: inline-block;
    background: #f7d100;
    color: #000;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-weight: bold;
    margin-top: 20px;
    transition: var(--transition-smooth);
}

.ponsse-btn:hover {
    background: #ffea00;
    transform: scale(1.05);
}

/* ============================================
   12. PRÉSENTATION GROUPE
   ============================================ */
.group-presentation-section {
    position: relative;
    padding: 80px 5%;
    background: var(--white);
    overflow: hidden;
    text-align: center;
}

.group-bg-machine {
    position: absolute;
    top: 50%;
    width: 35%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: var(--transition-slow);
}

.machine-left {
    left: -20%;
    transform: translateY(-50%) translateX(-100px);
}

.machine-right {
    right: -20%;
    transform: translateY(-50%) translateX(100px);
}

.group-presentation-section.active .machine-left {
    left: 2%;
    opacity: 0.12;
    transform: translateY(-50%) translateX(0);
}

.group-presentation-section.active .machine-right {
    right: 2%;
    opacity: 0.12;
    transform: translateY(-50%) translateX(0);
}

.group-img-fluid {
    width: 100%;
    height: auto;
}

.group-main-container {
    position: relative;
    z-index: 2;
}

.group-main-logo {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

.group-red-line {
    width: 2px;
    height: 40px;
    background: var(--primary-red);
    margin: 0 auto 30px;
}

.group-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.group-flex-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.group-entity-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    padding: 30px;
    flex: 1;
    max-width: 450px;
    box-shadow: var(--shadow-light);
}

.group-card-logo-box {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.group-card-img {
    max-width: 250px;
    max-height: 80px;
    width: auto;
}

/* ============================================
   13. STATISTIQUES
   ============================================ */
.stats {
    background: var(--white);
    padding: 80px var(--spacing-md);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px;
    transition: var(--transition-smooth);
    border-radius: 15px;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: var(--light-gray);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1.2;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* ============================================
   14. MARQUES
   ============================================ */
.brands {
    padding: 100px var(--spacing-md);
    background: var(--white);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    padding: 40px var(--spacing-md);
}

.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    transition: var(--transition-smooth);
}

.brand-logo {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-smooth);
}

.brand-item:hover .brand-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* ============================================
   15. SERVICES
   ============================================ */
.features {
    position: relative;
    padding: 100px var(--spacing-md);
    background: #000;
    overflow: hidden;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.features-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.features-video-container iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

.features-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.container-features {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.features .section-title {
    color: white;
}

.features .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    text-align: center;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    border-color: var(--primary-red);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(220, 20, 60, 0.3);
}

.feature-item:hover .feature-icon {
    transform: rotate(10deg) scale(1.1);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.feature-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* ============================================
   16. CTA CONTACT
   ============================================ */
.cta-section {
    position: relative;
    padding: 120px 5%;
    background: #000;
    text-align: center;
    color: white;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 25px;
    line-height: 1.1;
}

.cta-title span {
    background: linear-gradient(135deg, #DC143C, #ff4d6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

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

.btn-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: white;
    transition: var(--transition-smooth);
    min-width: 300px;
    text-align: left;
}

.btn-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220, 20, 60, 0.2);
}

.btn-icon {
    font-size: 2rem;
    background: rgba(220, 20, 60, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.btn-label {
    display: flex;
    flex-direction: column;
}

.btn-label span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.btn-label strong {
    font-size: 1.3rem;
    font-weight: 700;
}

/* ============================================
   17. ACTUALITÉS & AVIS
   ============================================ */
.news-section,
.reviews-section {
    padding: 100px var(--spacing-md);
}

.news-section {
    background-color: var(--white);
}

.reviews-section {
    background-color: var(--light-gray);
}

.news-container,
.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   18. FOOTER
   ============================================ */
.sany-footer {
    background: #000;
    color: var(--white);
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-top {
    padding-bottom: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-red);
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.brand-info p {
    color: #888;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #888;
    transition: color 0.3s ease;
}

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

.contact-info p {
    color: #888;
    margin-bottom: 15px;
    line-height: 1.5;
}

.footer-cta {
    display: block;
    color: var(--white);
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 20px;
}

.footer-mail {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    color: #888;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #222;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: none;
}

.footer-bottom p {
    color: #555;
    font-size: 0.85rem;
}

.footer-legal a {
    color: #555;
    margin-left: 20px;
    font-size: 0.85rem;
}

/* ============================================
   19. BOUTON FLOTTANT
   ============================================ */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.main-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-red);
    border: none;
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.float-icon {
    font-size: 24px;
}

.float-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.floating-contact:hover .float-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-contact:hover .main-float-btn {
    transform: rotate(90deg);
    background: var(--black);
}

.float-child {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.float-child:hover {
    transform: translateX(-5px);
    background: var(--white);
}

.child-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.child-icon {
    font-size: 18px;
}

/* ============================================
   20. MODAL CONTACT
   ============================================ */
.mail-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.mail-window {
    width: 90%;
    max-width: 650px;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

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

.mail-header {
    background: #f6f6f6;
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.mail-controls {
    display: flex;
    gap: 8px;
}

.mail-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.close-btn {
    background: #ff5f56;
}

.mail-title {
    flex-grow: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.mail-fields {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}

.field {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    display: flex;
    gap: 10px;
}

.field span {
    color: #999;
    width: 50px;
}

.field input {
    border: none;
    outline: none;
    width: 100%;
    font-family: inherit;
}

.mail-body {
    padding: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.mail-body input,
.mail-body textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    background: #f9f9f9;
    font-family: inherit;
}

.mail-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
}

.send-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.send-btn:hover {
    background: var(--black);
    transform: translateY(-2px);
}

/* ============================================
   21. SCROLL TO TOP
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1500;
    box-shadow: var(--shadow-medium);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--black);
    transform: translateY(-5px);
}

/* ============================================
   22. RESPONSIVE
   ============================================ */

/* Tablettes */
@media (max-width: 1200px) {
    .product-grid-four,
    .dept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sany-container,
    .ponsse-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ponsse-brand-content {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 900px) {
    .nav-links,
    .nav-socials {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .focus-grid,
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .sany-zone-content {
        flex-direction: column;
    }
}

/* Mobile */
@media (max-width: 650px) {
    :root {
        --spacing-md: 1rem;
    }
    
    .product-grid-four,
    .focus-grid,
    .brands-grid,
    .dept-grid,
    .ponsse-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons,
    .cta-buttons-flex,
    .group-flex-cards {
        flex-direction: column;
    }
    
    .btn-cta {
        min-width: 100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .floating-contact {
        bottom: 20px;
        right: 20px;
    }
    
    .child-label {
        display: none;
    }
    
    .float-child {
        padding: 12px;
        border-radius: 50%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}
/* ============================================
   6. classe reprise centre
   ============================================ */
   .reprises {
    margin-top: 4em;
    text-align: center;
   }

   /* ============================================
   6. CLASSE LIGNE CARTE UNE LIGNE
   ============================================ */
/* Suppression des anciennes erreurs et application du style forcé */

.category-info h3.single-line-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    width: 100% !important;
    font-size: clamp(14px, 1.2vw, 1.5rem) !important;
    margin-bottom: 12px;
    text-align: center;
}

/* On s'assure que le conteneur ne restreint pas trop l'espace */
.category-info {
    padding: 20px 10px !important;
    width: 100%;
    box-sizing: border-box;
}

/* Correction du responsive mobile */
@media (max-width: 600px) {
    .category-info h3.single-line-title {
        white-space: normal !important; /* On autorise le retour à la ligne sur petit écran */
        font-size: 1.1rem !important;
    }
}
.expertise-apple {
    background-color: #f5f5f7;
    padding: 80px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.expertise-header h2 {
    font-size: 40px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 40px;
    line-height: 1.1;
}

.expertise-header h2 span {
    color: #86868b;
}

.apple-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 5px;
    scrollbar-width: none; /* Cache la barre sur Firefox */
}

.apple-carousel::-webkit-scrollbar {
    display: none; /* Cache la barre sur Chrome/Safari */
}

.apple-card {
    min-width: 320px;
    width: 320px;
    height: 400px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.apple-card:hover {
    transform: scale(1.02);
}

.apple-icon {
    font-size: 28px;
    color: #1d1d1f;
    margin-bottom: 25px;
}

.apple-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
    line-height: 1.2;
}

.apple-card p {
    font-size: 16px;
    color: #48484a;
    line-height: 1.5;
}

.apple-plus {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #1d1d1f;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Positionnement des contrôles */
.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-right: 20px;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background-color: #e8e8ed;
    color: #1d1d1f;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.control-btn:hover {
    background-color: #d2d2d7;
}

/* On s'assure que le carrousel défile en douceur */
.apple-carousel {
    scroll-behavior: smooth;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}

.apple-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.news-apple {
    padding: 100px 0;
    background-color: #ffffff;
}

.apple-news-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0 50px;
    scrollbar-width: none;
}

.news-card {
    position: relative;
    min-width: 400px; /* Gardez la même largeur pour toutes les cartes */
    height: 550px;    /* Gardez la même hauteur pour toutes les cartes */
    border-radius: 28px;
    overflow: hidden; /* Coupe l'image qui dépasse des bords arrondis */
    display: flex;
    flex-direction: column;
}

.news-card-content {
    position: relative;
    z-index: 2;
    color: white;
}

.news-card-content.dark { color: #1d1d1f; }

.tag {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
    opacity: 0.8;
}

.tag.orange { color: #f26522; opacity: 1; }

.news-card h3 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
}

.news-card-content p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 80%;
}

/* Vidéo en fond de carte */
.video-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.video-background-portrait video {
    box-sizing: content-box;
    width: 100%;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-background-paysage video {
    box-sizing: content-box;
    height: 100%;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-background iframe {
    width: 300%; height: 100%; /* Pour couvrir sans barres noires */
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.news-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
    z-index: 1;
}

.news-product-img {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 300px;
    z-index: 2;
}

.news-plus {
    position: absolute; bottom: 30px; right: 30px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    color: white; border: none; font-size: 24px;
    z-index: 3; cursor: pointer;
}
.news-card {
    position: relative; /* Indispensable pour l'image en absolute */
    min-width: 400px;
    height: 550px;
    border-radius: 28px;
    overflow: hidden; /* Pour que l'image ne dépasse pas des arrondis */
    display: flex;
    flex-direction: column;
    padding: 40px;
}

/* L'image qui sert de fond */
.news-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100%;

    transition: transform 0.5s ease; /* Petit effet au survol */
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* On s'assure que le contenu reste au-dessus de l'image */
.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;}

/* Effet de zoom sympa au survol (Optionnel) */
.news-card:hover .news-bg-img {
    transform: scale(1.05);}
    /* Section Waratah */
.waratah-expertise {
    position: relative;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.waratah-video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}

.waratah-video-container iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 */
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.waratah-video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.waratah-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.waratah-main-logo {
    max-width: 280px;
    margin-bottom: 30px;
}

.waratah-brand-info h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 800;
}

.waratah-badge {
    display: inline-block;
    padding: 10px 25px;
    background-color: #d12027; /* Rouge Waratah */
    color: white;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 25px;
}

.waratah-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.waratah-grid .sector-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.waratah-grid .sector-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.waratah-counter {
    font-size: 24px;
    font-weight: 800;
    color: #d12027;
    margin: 10px 0;
}

@media (max-width: 992px) {
    .waratah-container { grid-template-columns: 1fr; text-align: center; }
    .waratah-grid { margin-top: 40px; }
}
/* --- Section Occasion --- */
.used-equipment {
    padding: 120px 0;
    background-color: #fbfbfd; /* Gris très clair Apple */
    overflow: hidden;
}

.used-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.used-text .tag {
    color: #86868b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
}

.used-text h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin: 20px 0;
    color: #1d1d1f;
}

.used-text h2 span {
    color: #86868b;
}

.used-text p {
    font-size: 19px;
    color: #48484a;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Grille de caractéristiques */
.used-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #1d1d1f;
    font-weight: 500;
}

.feature-item i {
    color: #ff0000; /* Bleu accentuation */
    font-size: 18px;
}

/* Bouton Spécifique */
.btn-used {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background-color: #1d1d1f;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-used:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Visuel à droite */
.used-visual {
    position: relative;
}

.used-main-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #e8e8ed; /* Placeholder si image absente */
    min-height: 400px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    text-align: center;
    z-index: 2;
}

.experience-badge strong {
    display: block;
    font-size: 32px;
    color: #f90000;
}

.experience-badge span {
    font-size: 14px;
    color: #f50505;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 992px) {
    .used-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .feature-item { justify-content: center; }
    .used-visual { order: -1; }
    .experience-badge { left: 50%; transform: translateX(-50%); }
}
/* Force l'alignement sur une ligne */
.news-grid {
    display: flex;
    gap: 20px;
    overflow-x: hidden; /* Prépare le terrain pour votre carrousel JS */
    padding: 20px 0;
}

.news-card {
    flex: 0 0 calc(33.333% - 14px); /* 3 cartes par ligne avec le gap */
    min-width: 300px;
    height: 450px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

/* Fix pour les vidéos Instagram/YouTube */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-background iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Permet de cliquer sur la carte sans être bloqué par l'iframe */
}

@media (max-width: 900px) {
    .news-grid {
        flex-wrap: nowrap;
        overflow-x: auto; /* Permet le scroll horizontal sur mobile */
    }
    .news-card {
        flex: 0 0 85%; /* Affiche une carte et un bout de la suivante */
    }
}