/* ============================================
   NGMA INDUSTRIE - Feuille de style principale
   ============================================ */

:root {
    --bleu-principal: #0A2540;
    --bleu-secondaire: #1E3A8A;
    --orange-accent: #F97316;
    --orange-hover: #EA580C;
    --gris-clair: #F8FAFC;
    --texte: #1F2937;
    --blanc: #FFFFFF;
    --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--texte); line-height: 1.6; background: var(--blanc); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }

/* === BUTTONS === */
.btn { display: inline-block; padding: 12px 28px; border-radius: 6px; font-weight: 600; transition: var(--transition); cursor: pointer; border: none; font-size: 1rem; text-align: center; }
.btn-orange { background: var(--orange-accent); color: var(--blanc); }
.btn-orange:hover { background: var(--orange-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--blanc); color: var(--blanc); }
.btn-outline:hover { background: var(--blanc); color: var(--bleu-principal); }
.btn-outline-dark { background: transparent; border: 2px solid var(--bleu-principal); color: var(--bleu-principal); }
.btn-outline-dark:hover { background: var(--bleu-principal); color: var(--blanc); }

/* === TYPOGRAPHY === */
h2 { font-size: 2.2rem; color: var(--bleu-principal); margin-bottom: 0.5rem; text-align: center; }
.section-subtitle { text-align: center; color: #64748B; max-width: 700px; margin: 0 auto 3rem; font-size: 1.05rem; }
.highlight { color: var(--orange-accent); font-weight: 600; }

/* === HEADER & NAVIGATION === */
header { background: var(--blanc); box-shadow: 0 2px 15px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.logo .blue { color: var(--bleu-principal); }
.logo .orange { color: var(--orange-accent); }

/* NAV */
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--orange-accent); }
.nav-links a.active { color: var(--orange-accent); border-bottom: 2px solid var(--orange-accent); padding-bottom: 2px; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--bleu-principal); }

/* === HERO SECTIONS === */
.hero { background: linear-gradient(rgba(10, 37, 64, 0.85), rgba(10, 37, 64, 0.85)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; color: var(--blanc); text-align: center; padding: 130px 20px 100px; }
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; line-height: 1.2; }
.hero h1 span { color: var(--orange-accent); }
.hero p { font-size: 1.15rem; max-width: 800px; margin: 0 auto 2rem; opacity: 0.9; }
.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.page-hero { background: linear-gradient(rgba(10, 37, 64, 0.85), rgba(10, 37, 64, 0.85)), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=80') center/cover no-repeat; color: var(--blanc); text-align: center; padding: 110px 20px 70px; }
.breadcrumb { font-size: 0.9rem; opacity: 0.9; margin-bottom: 15px; }
.breadcrumb a { color: var(--orange-accent); text-decoration: underline; }
.page-hero h1 { font-size: 2.6rem; margin-bottom: 15px; line-height: 1.2; }
.page-hero p { font-size: 1.15rem; max-width: 750px; margin: 0 auto; opacity: 0.95; }

/* === SERVICES (INDEX) === */
.services { background: var(--gris-clair); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--blanc); padding: 35px 25px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); text-align: center; transition: var(--transition); border-bottom: 4px solid transparent; display: flex; flex-direction: column; height: 100%; }
.service-card:hover { transform: translateY(-5px); border-bottom-color: var(--orange-accent); }
.service-icon { font-size: 2.5rem; color: var(--orange-accent); margin-bottom: 15px; }
.service-card h3 { color: var(--bleu-principal); margin-bottom: 10px; font-size: 1.3rem; }
.service-card p { color: #64748B; font-size: 0.95rem; flex-grow: 1; margin-bottom: 20px; }

/* === STATS === */
.stats { background: var(--bleu-principal); color: var(--blanc); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--orange-accent); margin-bottom: 5px; }
.stat-label { font-size: 1.05rem; opacity: 0.9; }

/* === REALISATIONS PREVIEW (INDEX) === */
.realisations-preview { background: var(--blanc); }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.preview-card { border-radius: 12px; overflow: hidden; position: relative; height: 280px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.preview-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.preview-card:hover img { transform: scale(1.1); }
.preview-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10, 37, 64, 0.7); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; color: var(--blanc); }
.preview-card:hover .preview-overlay { opacity: 1; }
.preview-overlay i { font-size: 2.5rem; margin-bottom: 10px; color: var(--orange-accent); }
.preview-overlay h3 { font-size: 1.2rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.btn-center { display: flex; justify-content: center; margin-top: 40px; }

/* === PROCESS STEPS (SERVICE PAGES) === */
.process-section { background: var(--gris-clair); padding: 80px 0; }
.process-section h2 { text-align: center; color: var(--bleu-principal); margin-bottom: 50px; font-size: 2rem; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.process-step { background: var(--blanc); padding: 30px 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; position: relative; transition: var(--transition); border-top: 4px solid var(--orange-accent); }
.process-step:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.step-icon { width: 60px; height: 60px; background: var(--gris-clair); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--orange-accent); font-size: 1.5rem; }
.process-step h3 { color: var(--bleu-principal); margin-bottom: 12px; font-size: 1.2rem; }
.process-step p { color: #64748B; font-size: 0.95rem; }
.step-number { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--bleu-principal); color: var(--blanc); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.9rem; border: 3px solid var(--blanc); }

/* === BENEFITS CARDS === */
.benefits-section { padding: 80px 0; background: var(--blanc); }
.benefits-section h2 { text-align: center; color: var(--bleu-principal); margin-bottom: 50px; font-size: 2rem; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.benefit-card { display: flex; gap: 20px; align-items: flex-start; padding: 25px; background: var(--gris-clair); border-radius: 10px; transition: var(--transition); }
.benefit-card:hover { background: #EDF2F7; }
.benefit-icon { flex-shrink: 0; width: 50px; height: 50px; background: var(--orange-accent); color: var(--blanc); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.benefit-card h3 { color: var(--bleu-principal); margin-bottom: 8px; font-size: 1.1rem; }
.benefit-card p { color: #64748B; font-size: 0.95rem; }

/* === REALISATIONS PAGE === */
.filter-section { padding: 40px 0 20px; background: var(--gris-clair); text-align: center; }
.filter-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.filter-btn { padding: 10px 25px; border: 2px solid var(--bleu-principal); background: var(--blanc); color: var(--bleu-principal); border-radius: 30px; cursor: pointer; font-weight: 500; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--bleu-principal); color: var(--blanc); }

.projects-section { padding: 60px 0; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.project-card { background: var(--blanc); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: var(--transition); }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.project-img { height: 280px; position: relative; overflow: hidden; cursor: pointer; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img img { transform: scale(1.1); }
.project-img-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10, 37, 64, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.project-img:hover .project-img-overlay { opacity: 1; }
.project-img-overlay i { color: var(--blanc); font-size: 3rem; border: 3px solid var(--orange-accent); border-radius: 50%; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; }
.project-badge { position: absolute; top: 15px; right: 15px; background: var(--orange-accent); color: var(--blanc); padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; z-index: 3; }
.project-info { padding: 25px; }
.project-info h3 { color: var(--bleu-principal); margin-bottom: 10px; font-size: 1.3rem; }
.project-location { color: var(--orange-accent); font-size: 0.9rem; margin-bottom: 12px; display: flex; align-items: center; gap: 5px; }
.project-info p { color: #64748B; font-size: 0.95rem; margin-bottom: 15px; }
.project-details { display: flex; gap: 20px; padding-top: 15px; border-top: 1px solid #E2E8F0; font-size: 0.85rem; color: #94A3B8; }
.project-details span { display: flex; align-items: center; gap: 5px; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 2000; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; }
.lightbox-img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: -40px; right: 0; color: var(--blanc); font-size: 2.5rem; cursor: pointer; background: none; border: none; }
.lightbox-caption { color: var(--blanc); text-align: center; margin-top: 15px; font-size: 1.1rem; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: var(--blanc); border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.lightbox-nav:hover { background: var(--orange-accent); }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

/* === GALLERY (SERVICE PAGES) === */
.gallery-section { background: var(--bleu-principal); color: var(--blanc); padding: 80px 0; text-align: center; }
.gallery-section h2 { color: var(--blanc); margin-bottom: 15px; font-size: 2rem; }
.gallery-section > p { max-width: 700px; margin: 0 auto 40px; opacity: 0.9; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { height: 250px; border-radius: 10px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 20px; text-align: left; }
.gallery-overlay h4 { font-size: 1.1rem; margin-bottom: 5px; }
.gallery-overlay span { font-size: 0.85rem; color: var(--orange-accent); font-weight: 500; }

/* === EXPERTISE CARDS (BUREAU ETUDES) === */
.expertise-section { background: var(--gris-clair); padding: 80px 0; }
.expertise-section h2 { text-align: center; color: var(--bleu-principal); margin-bottom: 50px; font-size: 2rem; }
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.expertise-card { background: var(--blanc); padding: 30px 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; transition: var(--transition); border-bottom: 4px solid transparent; }
.expertise-card:hover { transform: translateY(-5px); border-bottom-color: var(--orange-accent); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.expertise-icon { width: 70px; height: 70px; background: var(--gris-clair); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--orange-accent); font-size: 1.8rem; transition: var(--transition); }
.expertise-card:hover .expertise-icon { background: var(--orange-accent); color: var(--blanc); }
.expertise-card h3 { color: var(--bleu-principal); margin-bottom: 12px; font-size: 1.2rem; }
.expertise-card p { color: #64748B; font-size: 0.95rem; }

/* === TOOLS SECTION === */
.tools-section { background: var(--bleu-principal); color: var(--blanc); padding: 60px 0; }
.tools-section h2 { text-align: center; color: var(--blanc); margin-bottom: 40px; font-size: 2rem; }
.tools-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; text-align: center; }
.tool-item { max-width: 200px; }
.tool-item i { font-size: 2.5rem; color: var(--orange-accent); margin-bottom: 10px; }
.tool-item h3 { font-size: 1.1rem; margin-bottom: 5px; }
.tool-item p { font-size: 0.9rem; opacity: 0.8; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; text-align: center; }
.tool-item-box { background: rgba(255,255,255,0.05); padding: 25px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); }
.tool-item-box i { font-size: 2rem; color: var(--orange-accent); margin-bottom: 15px; }
.tool-item-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.tool-item-box p { font-size: 0.9rem; opacity: 0.8; }

/* === CTA SECTION === */
.cta-section { padding: 80px 0; text-align: center; background: var(--gris-clair); }
.cta-section h2 { font-size: 2rem; color: var(--bleu-principal); margin-bottom: 15px; }
.cta-section p { max-width: 650px; margin: 0 auto 30px; color: #4B5563; }

/* === CONTACT SECTION === */
.contact { background: var(--gris-clair); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact-info h2 { text-align: left; margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 25px; color: #475569; }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.info-item i { color: var(--orange-accent); font-size: 1.2rem; margin-top: 4px; width: 20px; }
.hours-box { background: var(--blanc); padding: 20px; border-radius: 8px; border-left: 4px solid var(--orange-accent); margin-top: 30px; }
.hours-box h4 { color: var(--bleu-principal); margin-bottom: 8px; }
.hours-box p { color: #64748B; font-size: 0.95rem; }

.contact-form { background: var(--blanc); padding: 35px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.06); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--bleu-principal); font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #E2E8F0; border-radius: 8px; font-size: 1rem; transition: var(--transition); font-family: inherit; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--orange-accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* === FOOTER === */
footer { background: #051423; color: var(--blanc); padding: 50px 0 20px; text-align: center; }
.footer-logo { font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; }
.footer-desc { max-width: 600px; margin: 0 auto 25px; opacity: 0.85; line-height: 1.5; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; }
.social-links a { width: 42px; height: 42px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-links a:hover { background: var(--orange-accent); transform: translateY(-3px); }
.copyright { font-size: 0.85rem; opacity: 0.6; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 10px; }

/* === INTRO SECTION === */
.intro-section { padding: 70px 0; text-align: center; background: var(--blanc); }
.intro-section h2 { font-size: 2rem; color: var(--bleu-principal); margin-bottom: 20px; }
.intro-section p { max-width: 850px; margin: 0 auto; color: #4B5563; font-size: 1.05rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--blanc); flex-direction: column; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); gap: 15px; }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .page-hero h1 { font-size: 2rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .process-grid, .benefits-grid, .expertise-grid, .gallery-grid, .projects-grid { grid-template-columns: 1fr; }
    .logo-img { height: 38px; }
    .logo { font-size: 1.3rem; }
    .lightbox-nav { display: none; }
    .lightbox-close { top: 20px; right: 20px; }
}