/* VARIABLES UX/UI */
:root {
    --primary: #0f172a; /* Bleu nuit pro */
    --accent: #f97316;  /* Orange industriel */
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    line-height: 1.6; 
    background-color: var(--white);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.section { padding: 50px 0; }
.bg-light { background: var(--bg-light); }

/* HEADER & NAVIGATION */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}

nav { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 45px; }
.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.logo-text span { color: var(--accent); }

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a:not(.btn-cta) { 
    text-decoration: none; color: var(--primary); font-weight: 600; font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }

/* BOUTONS */
.btn-primary { 
    background: var(--accent); color: white; padding: 14px 28px; 
    border-radius: 8px; text-decoration: none; font-weight: 600; 
    display: inline-block; border: none; transition: 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3); }

.btn-secondary { 
    background: var(--primary); color: white; padding: 14px 28px; 
    border-radius: 8px; text-decoration: none; font-weight: 600; 
    display: inline-block; border: none; transition: 0.3s; cursor: pointer;
}
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.3); }

.btn-cta {
    background: var(--primary); color: white; padding: 10px 20px;
    border-radius: 6px; text-decoration: none; font-weight: 600;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), 
                url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1920');
    background-size: cover; background-position: center;
    min-height: 80vh; display: flex; align-items: center; color: white;
}
.top-badge { background: rgba(249, 115, 22, 0.2); color: var(--accent); padding: 5px 15px; border-radius: 50px; font-weight: 600; font-size: 0.8rem; margin-bottom: 20px; display: inline-block; }
h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; margin-bottom: 20px; }
h1 span { color: var(--accent); }
.hero-content p { font-size: 1.1rem; max-width: 600px; margin-bottom: 30px; opacity: 0.9; }
.hero-actions { display: flex; gap: 15px; }

/* SERVICES CARDS */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary); font-family: 'Montserrat'; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.glass-card {
    background: var(--white); padding: 40px; border-radius: 20px;
    box-shadow: var(--shadow); border: 1px solid #f1f5f9; transition: 0.3s;
}
.glass-card:hover { transform: translateY(-10px); border-color: var(--accent); }
.card-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }

/* PARTNERS */
.partners-slider { 
    display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center;
}
.partners-slider img { height: 50px; }
.partner-text { font-weight: 700; font-size: 1.2rem; color: #94a3b8; }

/* CONTACT */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-item i { font-size: 1.5rem; color: var(--accent); margin-top: 5px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
input, textarea { 
    width: 100%; padding: 15px; border: 1px solid #e2e8f0; border-radius: 10px;
    background: var(--bg-light); font-family: inherit;
}

/* FOOTER */
.footer { background: var(--primary); color: white; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-links a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 10px; }
.social-icons { display: flex; gap: 15px; margin-top: 15px; justify-content: center; }
.social-icons a { color: white; font-size: 1.2rem; }
/* Espacement ajusté sous les titres de section du footer */
.footer-links h4, .footer-social h4 {
    margin-bottom: 10px;
}

/* Carrousels images dans les cards */
.carousel-maintenance, .carousel-bobinage, .carousel-conseil, .carousel-fourniture {
    width: 100%;
    aspect-ratio: 4/3;
    max-width: 100%;
    min-width: 0;
    height: auto;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.carousel-maintenance img,
.carousel-bobinage img,
.carousel-conseil img,
.carousel-fourniture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 12px;
}
.carousel-maintenance img:first-child,
.carousel-bobinage img:first-child,
.carousel-conseil img:first-child,
.carousel-fourniture img:first-child {
    opacity: 1;
}

/* RESPONSIVE */
.nav-toggle { display: none; font-size: 1.5rem; }
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-links { 
        position: fixed; top: 75px; left: -100%; width: 100%; height: calc(100vh - 75px);
        background: white; flex-direction: column; padding: 50px; transition: 0.4s;
    }
    .nav-links.active { left: 0; }
    .contact-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal-visible { opacity: 1; transform: translateY(0); }