/* ============================================
   SUDMECA - Design Industriel Moderne 2026
   Optimisé SEO, Performance & UX
   ============================================ */

:root {
    --bg-color: #0f1014;
    --card-bg: #1a1c23;
    --text-color: #f0f0f0;
    --accent-color: #e63946;
    --accent-hover: #ff4d5a;
    --text-muted: #a0a0a0;
    --nav-height: 80px;
    --nav-height-mobile: 70px;
    --transition-speed: 0.3s;
    --border-color: #333;
    --gradient-dark: linear-gradient(135deg, #0f1014 0%, #1a1c23 100%);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    line-height: 1.6; 
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Typography Optimization */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color var(--transition-speed), opacity var(--transition-speed); 
}

ul { list-style: none; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: rgba(15, 16, 20, 0.95);
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo { 
    font-size: clamp(1.2rem, 2.5vw, 1.5rem); 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    transition: transform var(--transition-speed);
}

.logo:hover {
    transform: scale(1.05);
}

.logo span { 
    color: var(--accent-color); 
}

nav ul { 
    display: flex; 
    gap: clamp(15px, 3vw, 30px); 
    align-items: center; 
}

nav a { 
    font-size: clamp(0.85rem, 2vw, 0.95rem); 
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-speed);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active { 
    color: var(--accent-color); 
}

/* Buttons */
.btn-cta {
    background: var(--accent-color);
    color: white !important;
    padding: clamp(8px, 2vw, 10px) clamp(15px, 3vw, 20px);
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    transition: all var(--transition-speed);
    white-space: nowrap;
    border: 2px solid var(--accent-color);
}

.btn-cta::after {
    display: none !important;
}

.btn-cta:hover { 
    background: var(--accent-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.4); 
    border-color: var(--accent-hover);
}

.btn-cta-large {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    border: 2px solid var(--accent-color);
}

.btn-cta-large:hover {
    background: var(--accent-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.5);
}

.btn-outline {
    border: 2px solid white; 
    padding: clamp(10px, 2.5vw, 12px) clamp(20px, 4vw, 25px); 
    color: white; 
    font-weight: bold; 
    text-transform: uppercase; 
    border-radius: 4px;
    white-space: nowrap;
    min-width: 140px;
    transition: all var(--transition-speed);
    display: inline-block;
}

.btn-outline:hover { 
    background: white; 
    color: #000; 
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Menu Burger */
.menu-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

.menu-burger span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all var(--transition-speed);
    align-self: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: var(--nav-height) clamp(20px, 5vw, 40px) clamp(60px, 10vw, 100px);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.bg-accueil { background-image: url('usine.webp'); }
.bg-metier { background-image: url('Métier.webp'); }
.bg-machine { background-image: url('Machines.webp'); }
.bg-equipe { background-image: url('contact.webp'); }
.bg-contact { background-image: url('DRONE.webp'); }
.bg-recrutement { background-image: url('recrutement.webp'); }

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 { 
    font-size: clamp(2.2rem, 8vw, 4rem); 
    margin-bottom: clamp(20px, 4vw, 25px); 
    line-height: 1.1; 
    text-transform: uppercase; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.9);
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 span { 
    color: var(--accent-color);
    display: inline-block;
}

.hero p { 
    font-size: clamp(1rem, 3vw, 1.3rem); 
    color: #e0e0e0; 
    max-width: 800px; 
    margin: 0 auto clamp(30px, 6vw, 50px); 
    text-shadow: 0 2px 10px rgba(0,0,0,1);
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-btns { 
    display: flex; 
    gap: clamp(15px, 3vw, 20px); 
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTIONS
   ============================================ */
section { 
    padding: clamp(60px, 10vw, 100px) clamp(20px, 8vw, 10%); 
    position: relative;
}

.section-title { 
    font-size: clamp(2rem, 6vw, 2.8rem); 
    margin-bottom: clamp(15px, 3vw, 20px); 
    text-align: center; 
    text-transform: uppercase; 
    position: relative;
    color: white;
}

.section-title::after {
    content: ''; 
    display: block; 
    width: clamp(50px, 8vw, 70px); 
    height: 4px; 
    background: var(--accent-color); 
    margin: clamp(12px, 3vw, 20px) auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto clamp(40px, 6vw, 60px);
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.6;
}

/* ============================================
   CARDS & GRIDS
   ============================================ */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 30vw, 350px), 1fr));
    gap: clamp(25px, 4vw, 35px);
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    padding: clamp(25px, 4vw, 35px);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    transition: all var(--transition-speed);
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.card:hover::before {
    opacity: 1;
}

.card:hover { 
    transform: translateY(-8px); 
    background: #252830; 
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.2);
    border-left-width: 6px;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.card h3 { 
    font-size: clamp(1.25rem, 3vw, 1.5rem); 
    margin-bottom: 15px; 
    color: white; 
}

.card p {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
}

.card ul li { 
    margin-bottom: 10px; 
    color: var(--text-muted); 
    font-size: clamp(0.9rem, 2vw, 1rem); 
    padding-left: 20px;
    position: relative;
}

.card ul li::before { 
    content: '►'; 
    color: var(--accent-color); 
    position: absolute;
    left: 0;
    font-size: 0.7rem; 
}

/* ============================================
   SHOWCASE NOUVELLE MACHINE
   ============================================ */
.machine-showcase {
    background: linear-gradient(180deg, var(--bg-color) 0%, #13151a 100%);
    position: relative;
}

.badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.showcase-header {
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 50px);
}

.machine-slider-container {
    position: relative;
    max-width: 900px; /* Taille réduite pour ne pas faire trop gros */
    margin: 0 auto clamp(30px, 5vw, 50px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 16 / 9; /* Format rectangulaire moderne */
    background: #000;
}

.machine-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.machine-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.machine-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.machine-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 16, 20, 0.7);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    font-size: 1.2rem;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover { background: var(--accent-color); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
    background: var(--accent-color);
}

.showcase-features {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 30px);
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.showcase-features .feature {
    background: var(--card-bg);
    padding: clamp(15px, 3vw, 20px) clamp(20px, 4vw, 30px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
}

.showcase-features .feature:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.2);
}

.showcase-features .feature-icon {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.showcase-features h4 {
    color: white;
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin: 0;
}

/* ============================================
   SECTEURS
   ============================================ */
.sectors-section {
    background: var(--gradient-dark);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 22vw, 250px), 1fr));
    gap: clamp(20px, 4vw, 25px);
    max-width: 1400px;
    margin: 0 auto;
}

.sector-card {
    background: var(--card-bg);
    padding: clamp(30px, 4vw, 35px);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform var(--transition-speed);
}

.sector-card:hover::before {
    transform: scaleX(1);
}

.sector-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    background: #252830;
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.25);
}

.sector-icon {
    font-size: clamp(2.2rem, 6vw, 2.8rem);
    margin-bottom: clamp(15px, 3vw, 20px);
    color: var(--accent-color);
    transition: transform var(--transition-speed);
}

.sector-card:hover .sector-icon {
    transform: scale(1.15);
}

.sector-card h4 {
    color: white;
    font-size: clamp(1.05rem, 3vw, 1.15rem);
    font-weight: 600;
    margin-bottom: 10px;
}

.sector-card p {
    color: var(--text-muted);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.5;
}

/* ============================================
   TIMELINE
   ============================================ */
.history-section {
    position: relative;
    padding-bottom: clamp(80px, 12vw, 120px);
}

.timeline {
    position: relative;
    max-width: min(1100px, 95vw);
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-color) 0%, #333 50%, var(--accent-color) 100%);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-container {
    padding: clamp(10px, 2vw, 15px) clamp(35px, 6vw, 45px);
    position: relative;
    background-color: inherit;
    width: 50%;
}

.left { 
    left: 0; 
    text-align: right; 
    padding-right: clamp(35px, 6vw, 45px);
}

.right { 
    left: 50%; 
    text-align: left;
    padding-left: clamp(35px, 6vw, 45px);
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: clamp(18px, 3vw, 24px);
    height: clamp(18px, 3vw, 24px);
    right: -12px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: all var(--transition-speed);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.2);
}

.right::after { 
    left: -12px; 
}

.timeline-container:hover::after {
    background-color: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(230, 57, 70, 0.3);
}

.content {
    padding: clamp(20px, 3vw, 25px) clamp(25px, 4vw, 35px);
    background-color: var(--card-bg);
    position: relative;
    border-radius: 8px;
    border-bottom: 3px solid var(--accent-color);
    transition: all var(--transition-speed);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.timeline-container:hover .content {
    background-color: #252830;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.2);
}

.year {
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.content h3 { 
    font-size: clamp(1.15rem, 3vw, 1.3rem); 
    margin-bottom: 12px; 
    color: white; 
}

.content p,
.content ul li { 
    font-size: clamp(0.9rem, 2.5vw, 1rem); 
    color: var(--text-muted); 
    line-height: 1.6;
}

.content ul {
    list-style: none;
    padding-left: 0;
}

.content ul li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
}

.content ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ============================================
   TEAM
   ============================================ */
.team-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(30px, 5vw, 45px); 
    max-width: 1400px; 
    margin: 0 auto; 
}

.team-member {
    background: var(--card-bg);
    padding: clamp(25px, 4vw, 35px);
    border-radius: 10px;
    border-top: 4px solid var(--accent-color);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.team-member:hover { 
    transform: translateY(-8px); 
    background: #252830; 
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.2);
}

.team-member img {
    width: clamp(100px, 20vw, 140px); 
    height: clamp(100px, 20vw, 140px); 
    border-radius: 50%; 
    object-fit: cover;
    border: 4px solid var(--border-color); 
    margin: 0 auto clamp(15px, 3vw, 20px); 
    display: block;
    transition: all var(--transition-speed);
}

.team-member:hover img { 
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.team-member h4 { 
    font-size: clamp(1.15rem, 3vw, 1.3rem); 
    margin-bottom: 8px; 
    color: white; 
}

.team-role { 
    color: var(--accent-color); 
    font-size: clamp(0.8rem, 2vw, 0.9rem); 
    text-transform: uppercase; 
    font-weight: bold; 
    margin-bottom: clamp(20px, 4vw, 25px); 
    letter-spacing: 1px; 
}

.team-contact {
    border-top: 1px solid var(--border-color); 
    padding-top: 20px;
    text-align: left;
    width: 100%;
}

.team-contact p { 
    margin-bottom: 10px; 
    color: #ccc; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: clamp(0.9rem, 2vw, 0.95rem);
}

.team-contact a:hover {
    color: var(--accent-color);
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion { 
    max-width: min(1100px, 95vw); 
    margin: 0 auto; 
}

.accordion-item {
    background-color: var(--card-bg); 
    margin-bottom: 20px;
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
    overflow: hidden;
    transition: all var(--transition-speed);
}

.accordion-item:hover {
    border-color: rgba(230, 57, 70, 0.5);
}

.accordion-header {
    width: 100%; 
    padding: clamp(18px, 4vw, 22px) clamp(25px, 5vw, 35px); 
    background: #1a1c23; 
    color: white;
    text-align: left; 
    border: none; 
    outline: none; 
    cursor: pointer;
    transition: all var(--transition-speed); 
    font-size: clamp(1.05rem, 3vw, 1.2rem); 
    font-weight: bold;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    text-transform: uppercase;
    font-family: inherit;
}

.accordion-header:hover { 
    background-color: #252830; 
    color: var(--accent-color); 
}

.accordion-header.active { 
    background-color: #252830; 
    border-left: 5px solid var(--accent-color); 
    color: var(--accent-color); 
}

.accordion-header::after { 
    content: '+'; 
    font-size: clamp(1.3rem, 4vw, 1.6rem); 
    color: var(--accent-color); 
    font-weight: bold; 
    transition: transform var(--transition-speed);
}

.accordion-header.active::after { 
    content: '−'; 
    transform: rotate(180deg);
}

.accordion-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease-out; 
    background-color: #15161a; 
}

.accordion-body { 
    padding: clamp(25px, 5vw, 30px); 
    border-top: 1px solid var(--border-color); 
}

.machine-list {
    list-style: none;
}

.machine-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #ccc;
    line-height: 1.6;
}

.machine-list li:last-child {
    border-bottom: none;
}

.machine-list strong {
    color: white;
    display: block;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: clamp(40px, 6vw, 60px); 
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info, .contact-form { 
    flex: 1; 
    min-width: 300px; 
}

.contact-item { 
    margin-bottom: 25px; 
    font-size: clamp(1rem, 2.5vw, 1.1rem); 
}

.contact-item strong { 
    color: var(--accent-color); 
    display: block; 
    margin-bottom: 8px;
    font-size: 1.1em;
}

form input, 
form textarea {
    width: 100%; 
    padding: clamp(14px, 3vw, 16px); 
    margin-bottom: 20px;
    background: #252830; 
    border: 2px solid var(--border-color); 
    color: white;
    border-radius: 6px; 
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-speed);
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #2a2d35;
}

form textarea {
    resize: vertical;
    min-height: 150px;
}

form button { 
    width: 100%; 
    padding: clamp(14px, 3vw, 16px); 
    background: var(--accent-color); 
    color: white; 
    border: 2px solid var(--accent-color); 
    font-weight: bold; 
    cursor: pointer; 
    text-transform: uppercase; 
    transition: all var(--transition-speed); 
    font-size: 1rem;
    border-radius: 6px;
    font-family: inherit;
}

form button:hover { 
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

/* ============================================
   MATERIALS & SPLIT
   ============================================ */
.materials-wrapper {
    margin-top: 40px;
    padding: clamp(25px, 5vw, 35px);
    background: #1a1c23;
    border-left: 5px solid var(--accent-color);
    border-radius: 8px;
}

.materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 2.5vw, 15px);
    margin-top: 20px;
}

.material-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #555;
    color: #e0e0e0;
    padding: clamp(8px, 2vw, 10px) clamp(14px, 3vw, 18px);
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 10px;
}

.material-tag:hover {
    background: rgba(230, 57, 70, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.dot { 
    height: 8px; 
    width: 8px; 
    border-radius: 50%; 
    display: inline-block; 
}
.dot-hard { background: #e63946; }
.dot-med { background: #4cc9f0; }
.dot-soft { background: #a0a0a0; }

.split-container {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(40px, 8vw, 60px);
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.split-col {
    flex: 1;
    min-width: 280px;
}

.split-title {
    color: white; 
    margin-bottom: 25px; 
    font-size: clamp(1.15rem, 3vw, 1.3rem); 
    text-transform: uppercase; 
    font-weight: bold;
    letter-spacing: 1px;
}

.split-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(15, 16, 20, 0.95) 100%);
    padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 40px);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 6vw, 2.8rem);
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
footer { 
    background: #050505; 
    padding: clamp(50px, 8vw, 70px) clamp(20px, 8vw, 10%); 
    border-top: 1px solid var(--border-color); 
    color: #888; 
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 40px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.footer-section p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
}

.footer-section a {
    color: #a0a0a0;
    transition: color var(--transition-speed);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #a0a0a0;
    transition: color var(--transition-speed);
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: clamp(25px, 5vw, 40px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: clamp(24px, 5vw, 28px);
    height: clamp(38px, 8vw, 44px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    position: relative;
    margin-bottom: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

.arrows span {
    display: block;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin: -4px auto;
    animation: scroll-arrow 1.5s infinite;
}

.arrows span:nth-child(2) { animation-delay: 0.2s; }
.arrows span:nth-child(3) { animation-delay: 0.4s; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

@keyframes scroll-arrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* ============================================
   RESPONSIVE - TABLETTE (768px ↓)
   ============================================ */
@media screen and (max-width: 768px) {
    :root {
        --nav-height: var(--nav-height-mobile);
    }

    header { 
        height: var(--nav-height-mobile);
        padding: 0 5%; 
    }
    
    .menu-burger { 
        display: flex; 
    }
    
    /* Burger Animation */
    .menu-burger.active span:nth-child(1) { 
        transform: translateY(8px) rotate(45deg); 
    }
    .menu-burger.active span:nth-child(2) { 
        opacity: 0; 
    }
    .menu-burger.active span:nth-child(3) { 
        transform: translateY(-9px) rotate(-45deg); 
    }
    
    /* Desktop nav — retire du flux flex sur mobile (ul est déjà position:fixed) */
    .desktop-nav {
        flex: 0 0 0px;
        overflow: visible;
    }

    /* Burger — espace depuis le bord droit */
    .menu-burger {
        margin-right: 5px;
    }

    /* Menu Mobile */
    nav ul { 
        position: fixed;
        top: var(--nav-height-mobile);
        left: -100%;
        flex-direction: column;
        background: rgba(15, 16, 20, 0.98);
        width: 100%;
        height: calc(100vh - var(--nav-height-mobile));
        text-align: center;
        transition: left 0.4s ease-in-out;
        padding: 40px 0;
        gap: 25px;
        justify-content: flex-start;
        overflow-y: auto;
        backdrop-filter: blur(10px);
    }
    
    nav ul.active { left: 0; }
    
    nav a {
        font-size: 1.1rem;
        padding: 10px 0;
    }
    
    /* Hero Mobile — Fix iOS background-attachment: fixed + meilleure adaptation image */
    .hero { 
        min-height: 100vh;
        padding: calc(var(--nav-height-mobile) + 20px) 20px 100px;
        background-attachment: scroll;
        background-position: center top;
        background-size: cover;
    }

    /* Overlay moins sombre sur mobile pour mieux voir les photos */
    .hero::before {
        background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.75) 100%);
    }

    /* Positions spécifiques par page pour cadrer la partie la plus intéressante */
    .bg-accueil { background-position: center center; }
    .bg-metier  { background-position: center top; }
    .bg-machine { background-position: center center; }
    .bg-equipe  { background-position: center top; }
    .bg-contact { background-position: center center; }
    .bg-recrutement { background-position: center center; }
    
    /* Timeline Mobile */
    .timeline::after { 
        left: 30px; 
    }
    
    .timeline-container { 
        width: 100%; 
        padding-left: 70px !important; 
        padding-right: 15px; 
        text-align: left !important; 
    }
    
    .timeline-container::after { 
        left: 22px !important; 
        right: auto !important;
    }
    
    .left, .right { 
        left: 0 !important; 
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .team-contact {
        text-align: center;
    }

    .team-contact p {
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (480px ↓)
   ============================================ */
@media screen and (max-width: 480px) {
    .hero { 
        padding: calc(var(--nav-height-mobile) + 20px) 15px 80px; 
    }
    
    .hero-btns { 
        flex-direction: column; 
        width: 100%; 
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btns .btn-cta,
    .hero-btns .btn-outline {
        width: 100%;
        text-align: center;
    }
    
    section { 
        padding: 50px 15px; 
    }
    
    .grid-container, 
    .team-grid,
    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .split-container {
        gap: 30px;
    }
    
    .showcase-features .feature {
        width: 100%;
    }
}

/* ============================================
   MODE PAYSAGE MOBILE
   ============================================ */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero { 
        min-height: 100vh;
        padding-top: calc(var(--nav-height-mobile) + 10px);
        padding-bottom: 60px;
    }
    
    .scroll-indicator { 
        display: none; 
    }
}

/* ============================================
   HAUTE DENSITÉ (Retina/High DPI)
   ============================================ */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       (min-resolution: 192dpi) {
    header {
        border-bottom-width: 0.5px;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    header, footer, .scroll-indicator, .menu-burger, .cta-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        background: none !important;
    }
    
    section {
        break-inside: avoid;
        padding: 20px 0;
    }
}

/* ============================================
   CONTACT — Carte Google Maps
   ============================================ */
.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    display: block;
}

/* ============================================
   PARC MACHINE — Classes spécifiques
   ============================================ */
.machine-highlight {
    color: #4cc9f0;
    font-weight: bold;
}

.machine-note {
    color: white;
    margin-bottom: 15px;
    font-style: italic;
}

.accordion-item-quality {
    border-color: rgba(76, 201, 240, 0.3);
}

.accordion-header-quality {
    color: #4cc9f0;
}

.accordion-header-quality:hover {
    color: #4cc9f0;
}

.accordion-header-quality.active {
    border-left-color: #4cc9f0;
    color: #4cc9f0;
}

.accordion-header-quality::after {
    color: #4cc9f0;
}

/* ============================================
   CARD QUALITÉ (accent bleu — notre-metier.html)
   ============================================ */
.card-quality {
    border-left-color: #4cc9f0;
}

.card-quality:hover {
    box-shadow: 0 12px 30px rgba(76, 201, 240, 0.2);
}

/* ============================================
   MENU OPEN — Bloquer le scroll arrière-plan
   ============================================ */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   ICÔNES ÉQUIPE (icon-phone / icon-mail)
   ============================================ */
.icon-phone::before {
    content: '📞 ';
}

.icon-mail::before {
    content: '✉️ ';
}

/* ============================================
   MENTIONS LÉGALES
   ============================================ */
.legal-section {
    padding: calc(var(--nav-height) + 60px) clamp(20px, 8vw, 10%) clamp(60px, 10vw, 100px);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    margin-top: 50px;
}

.legal-block {
    background: var(--card-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: clamp(25px, 4vw, 35px);
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: all var(--transition-speed);
}

.legal-block:hover {
    background: #252830;
    border-left-width: 6px;
}

.legal-block h3 {
    color: var(--accent-color);
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-block p {
    color: #ccc;
    line-height: 1.8;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.legal-block strong {
    color: white;
}

.legal-block a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-block a:hover {
    color: var(--accent-hover);
}

/* ============================================
   ACCESSIBILITÉ — Focus visible
   ============================================ */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ============================================
   ACCESSIBILITÉ — Réduction des animations
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero h1,
    .hero p,
    .hero-btns {
        animation: none !important;
    }

    .wheel {
        animation: none !important;
    }

    .arrows span {
        animation: none !important;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
