@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary: #004A99;
    --secondary: #FFC72C;
    --text-color: #171717;
    --bg-color: #ffffff;
    --bg-accent: #f8f9fa;
    --border-color: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --font-main: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Texture industrielle subtile */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

/* Bento Grid Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1 poster);
    gap: 1.5rem;
    grid-auto-rows: minmax(150px, auto);
}

.bento-item {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.bento-large { grid-column: span 8; grid-row: span 2; }
.bento-medium { grid-column: span 4; grid-row: span 2; }
.bento-small { grid-column: span 4; grid-row: span 1; }
.bento-wide { grid-column: span 12; }

/* Buttons & Interactive Elements */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-main);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #003366;
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e5b327;
}

/* Glassmorphism for Forms & Highlights */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.1);
}

/* Services & Tech Sheets */
.tech-sheet {
    border-left: 4px solid var(--primary);
    background: #fff;
    padding: 1.5rem;
    margin-top: 1rem;
}

.zone-tag {
    display: inline-block;
    background: #eee;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 0.2rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

/* Navigation */
nav {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

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

/* Responsive */
@media (max-width: 992px) {
    .bento-large, .bento-medium, .bento-small, .bento-wide {
        grid-column: span 12;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    .glass-panel {
        padding: 1.5rem;
    }
}

/* ========================================================
 * PROTECTION IMAGES DE FOND — opacity !important
 * Empêche reveal-on-scroll d'écraser l'opacité intentionnelle
 * ======================================================== */
img.opacity-5  { opacity: 0.05 !important; }
img.opacity-10 { opacity: 0.10 !important; }
img.opacity-20 { opacity: 0.20 !important; }
img.opacity-30 { opacity: 0.30 !important; }
img.opacity-40 { opacity: 0.40 !important; }
img.opacity-50 { opacity: 0.50 !important; }
img.brightness-50 { filter: brightness(0.5) !important; }
img.brightness-75 { filter: brightness(0.75) !important; }

/* Empêche les transitions d'opacité sur les images absolues */
div.absolute > img,
div[class*="inset-0"] > img {
    transition: transform 0.7s ease !important;
}

/* ========================================================
 * Industrial Accents */
.accent-line {
    width: 50px;
    height: 4px;
    background: var(--secondary);
    margin: 1rem 0;
}

.hero-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer {
    background: var(--text-color);
    color: #ffffff;
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer a {
    color: var(--secondary);
}