/* =============================================
   BMB INGENIERIE — Enhanced PDF Design
   ============================================= */

:root {
    --green: #6b7d5e;
    --green-light: #8a9a7b;
    --green-dark: #4a5c40;
    --green-darker: #3a4a32;
    --cream: #ede8dd;
    --cream-dark: #e0dacf;
    --cream-light: #f4f1ea;
    --dark-bg: #3d3a36;
    --text-dark: #2e2e2e;
    --text-light: #f0ebe0;
    --accent: #a69f8c;
    --shadow-soft: 0 8px 32px rgba(0,0,0,.08);
    --shadow-mid: 0 16px 48px rgba(0,0,0,.14);
    --shadow-deep: 0 24px 64px rgba(0,0,0,.22);
    --ease: cubic-bezier(.25,.46,.45,.94);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:17px; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark); background: var(--cream);
    line-height: 1.6; overflow-x: hidden;
}
img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; transition: .4s var(--ease); }
ul { list-style:disc; padding-left:22px; }
.wrap { max-width:1280px; margin:0 auto; padding:0 48px; }

/* ===================== NAVBAR ===================== */
.navbar {
    position:fixed; top:0; left:0; right:0; z-index:100;
    padding:18px 0;
    background:rgba(74,92,64,.88);
    backdrop-filter: blur(10px);
    transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.navbar.scrolled {
    background:rgba(107,125,94,.97); padding:10px 0;
    box-shadow:0 4px 30px rgba(0,0,0,.18);
    backdrop-filter: blur(12px);
}
.nav-container {
    max-width:1280px; margin:0 auto; padding:0 48px;
    display:flex; align-items:center; justify-content:space-between;
}
.nav-logo { display:flex; align-items:center; }
.logo-bandeau { height:38px; width:auto; filter:brightness(0) invert(1); transition:height .3s var(--ease); }
.navbar.scrolled .logo-bandeau { height:30px; }

.nav-menu { display:flex; list-style:none; gap:32px; align-items:center; }
.nav-menu a {
    color:#fff; font-size:.92rem; font-weight:500;
    letter-spacing:.7px; text-transform:uppercase;
    position:relative; padding:6px 0;
}
.nav-menu a::after {
    content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%);
    width:0; height:2px; background:rgba(255,255,255,.8);
    transition: width .35s var(--ease); border-radius:1px;
}
.nav-menu a:hover::after { width:100%; }
.nav-cta {
    background:rgba(255,255,255,.1) !important;
    border:1px solid rgba(255,255,255,.25);
    padding:9px 24px !important; border-radius:30px;
}
.nav-cta::after { display:none; }
.nav-cta:hover { background:rgba(255,255,255,.22) !important; border-color:rgba(255,255,255,.5); transform:translateY(-1px); }
.nav-phone { display:flex; align-items:center; gap:7px; color:#fff; font-size:.95rem; font-weight:500; }
.nav-phone:hover { opacity:.75; }

.hamburger { display:none; background:none; border:none; cursor:pointer; flex-direction:column; gap:5px; padding:8px; z-index:101; }
.hamburger span { display:block; width:24px; height:2px; background:#fff; transition:.3s var(--ease); }
.hamburger.open span:nth-child(1){ transform:rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:rotate(-45deg) translate(5px,-5px); }

/* ===================== HERO ===================== */
.hero {
    display:grid; grid-template-columns:1fr 1fr; grid-template-rows:70vh;
    height:70vh !important; max-height:70vh !important; min-height:70vh !important;
    overflow:hidden;
}
.hero-left {
    background: var(--green);
    display:flex; align-items:center; justify-content:center;
    padding:40px 60px;
    height:70vh !important; max-height:70vh !important;
    overflow:hidden; position:relative;
}
.hero-left::before {
    content:''; position:absolute; top:-120px; left:-120px;
    width:400px; height:400px; border-radius:50%;
    background: rgba(255,255,255,.04); pointer-events:none;
}
.hero-logo { max-width:340px; max-height:60vh; width:80%; position:relative; z-index:1; object-fit:contain; }
.hero-right {
    position:relative; overflow:hidden;
    height:70vh !important; max-height:70vh !important;
}
.hero-bg {
    position:absolute; top:0; left:0;
    width:100%; height:100%; object-fit:cover; opacity:.45;
}

/* ===================== SERVICES ===================== */
.services {
    background: var(--cream); padding:100px 0 110px;
    position:relative; overflow:hidden;
}

.title {
    font-family:'DM Sans', sans-serif;
    font-size:clamp(2.2rem, 4vw, 3.4rem);
    font-weight:400; letter-spacing:5px;
    color:var(--text-dark); margin-bottom:60px; position:relative;
}
.title-light { color:var(--cream); }

.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:36px; }

.service-col {
    text-align:center; padding:30px 20px; border-radius:16px;
    transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.service-col:hover {
    background:rgba(138,154,123,.06);
    box-shadow: var(--shadow-soft); transform:translateY(-4px);
}

.pill {
    display:inline-block; padding:13px 34px; border-radius:40px;
    font-size:1.1rem; font-weight:500; letter-spacing:.5px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pill:hover { transform:translateY(-2px); }
.green-pill {
    background: var(--green);
    color:var(--cream); box-shadow: 0 4px 16px rgba(107,125,94,.25);
}
.green-pill:hover { box-shadow: 0 8px 28px rgba(107,125,94,.35); }
.cream-pill {
    background: var(--cream); color: var(--green-dark);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.cream-pill:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.pill-big { font-size:1.25rem; letter-spacing:1.5px; font-weight:600; }

.timeline-dots { display:flex; flex-direction:column; align-items:center; padding:10px 0 6px; }
.dot { width:11px; height:11px; border-radius:50%; background:var(--text-dark); }
.vline { width:2px; height:24px; background:rgba(46,46,46,.2); }

.service-col ul { text-align:left; max-width:320px; margin:0 auto; }
.service-col li { font-size:1.05rem; color:#555; padding:5px 0; line-height:1.6; }

/* ===================== TEAM ===================== */
.team {
    background: var(--green);
    padding:100px 0 110px; position:relative; overflow:hidden;
}
.team::before {
    content:''; position:absolute; top:60px; right:-80px;
    width:300px; height:300px; border-radius:50%;
    background: rgba(255,255,255,.03); pointer-events:none;
}

.team-top, .team-bottom {
    display:flex; justify-content:center; gap:40px; flex-wrap:wrap;
    position:relative; z-index:1;
}
.team-top { margin-bottom:40px; }

.team-card {
    background:var(--cream); border-radius:40px;
    padding:22px 44px; text-align:center; min-width:220px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.team-card:hover {
    transform:translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,.16);
}
.tc-name { display:block; font-size:1.25rem; font-weight:600; color:var(--green-dark); letter-spacing:.4px; margin-bottom:3px; }
.tc-role { display:block; font-size:.95rem; color:var(--green); line-height:1.4; }

/* ===================== REALISATIONS ===================== */
.realisations { padding:100px 0 110px; position:relative; overflow:hidden; }

.real-cream { background: var(--cream); }
.real-cream .real-text p { color:#555; }

.real-green {
    background: var(--green);
}
.real-green .real-text p { color:rgba(237,232,221,.85); }

.real-row {
    display:grid; grid-template-columns:1fr 1.4fr;
    gap:48px; align-items:center; margin-bottom:70px;
    position:relative; z-index:1;
}
.real-row:last-child { margin-bottom:0; }
.real-row-reverse { grid-template-columns:1.4fr 1fr; }

.real-text { display:flex; flex-direction:column; gap:16px; }
.real-text-right { align-items:flex-end; text-align:right; }
.real-text p { font-size:1.1rem; line-height:1.7; max-width:400px; }
.real-text-right p { margin-left:auto; }

.real-img {
    border-radius:14px; overflow:hidden;
    box-shadow: var(--shadow-deep); position:relative;
}
.real-img img {
    width:100%; height:320px; object-fit:cover;
    transition: transform .6s var(--ease);
}
.real-img:hover img { transform:scale(1.06); }
.real-img::after {
    content:''; position:absolute; inset:0;
    background: none;
    pointer-events:none; transition: opacity .4s var(--ease); border-radius:14px;
}
.real-img:hover::after { opacity:.6; }

/* ===================== NOUS TROUVER ===================== */
.findus {
    background: var(--cream); padding:100px 0 110px;
    position:relative; overflow:hidden;
}
.findus-grid {
    display:grid; grid-template-columns:1fr 1.5fr;
    gap:56px; align-items:center; position:relative; z-index:1;
}
.findus-left .pill { margin-bottom:28px; }
.findus-addr { font-size:1.15rem; margin-bottom:6px; line-height:1.7; }
.findus-tel { margin-top:12px; }
.findus-tel a, .findus-mail a { font-weight:600; color:var(--text-dark); }
.findus-tel a:hover, .findus-mail a:hover { color:var(--green-dark); }

.btn-green {
    display:inline-flex; align-items:center; gap:8px;
    background: var(--green);
    color:var(--cream); padding:15px 34px; border-radius:40px;
    font-size:1rem; font-weight:600; letter-spacing:.6px; margin-top:24px;
    transition: .4s var(--ease); box-shadow: 0 6px 20px rgba(107,125,94,.25);
}
.btn-green:hover {
    background: var(--green);
    transform:translateY(-3px); box-shadow: 0 12px 32px rgba(74,92,64,.35);
}

.findus-right {
    border-radius:16px; overflow:hidden;
    box-shadow: var(--shadow-mid); transition: box-shadow .4s var(--ease);
}
.findus-right:hover { box-shadow: var(--shadow-deep); }
.findus-right img { width:100%; height:400px; object-fit:cover; }
.findus-right iframe { display:block; width:100%; height:400px; }

/* ===================== FOOTER ===================== */
.footer { background: var(--green-darker); padding:28px 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer-row { display:flex; justify-content:space-between; align-items:center; }
.footer p { font-size:.9rem; color:rgba(255,255,255,.5); }
.footer a { color:rgba(255,255,255,.5); transition:.3s; }
.footer a:hover { color:rgba(255,255,255,.9); }

/* ===================== CONTACT PAGE ===================== */
.contact-page { background:var(--cream); }
.contact-hero {
    background: var(--green);
    padding:150px 48px 90px; position:relative; overflow:hidden;
}
.contact-hero h1 {
    font-family:'DM Sans',sans-serif; font-size:clamp(2.4rem,4.5vw,3.8rem);
    font-weight:400; color:var(--cream); letter-spacing:4px;
    max-width:1280px; margin:0 auto; position:relative; z-index:1;
}
.contact-hero p {
    font-size:1.15rem; color:rgba(237,232,221,.8);
    max-width:1280px; margin:14px auto 0; position:relative; z-index:1;
}

.contact-body { padding:90px 0 110px; }
.contact-grid {
    max-width:1280px; margin:0 auto; padding:0 48px;
    display:grid; grid-template-columns:1fr 1.5fr; gap:70px;
}
.ci-block h2 { font-size:2.3rem; font-weight:700; color:var(--green-dark); margin-bottom:4px; }
.ci-block .sub { font-size:.9rem; letter-spacing:2px; color:#999; text-transform:uppercase; margin-bottom:32px; }
.ci-item {
    display:flex; align-items:flex-start; gap:16px;
    padding:18px 0; border-bottom:1px solid #d4cfc4;
    transition: background .3s var(--ease);
}
.ci-item:hover { background: rgba(138,154,123,.04); }
.ci-icon {
    width:46px; height:46px;
    background: var(--green);
    border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    box-shadow: 0 4px 12px rgba(107,125,94,.2);
}
.ci-item:hover .ci-icon { transform:scale(1.08); box-shadow: 0 6px 18px rgba(107,125,94,.3); }
.ci-icon svg { color:var(--cream); }
.ci-label { font-size:.73rem; text-transform:uppercase; letter-spacing:1px; color:#999; display:block; margin-bottom:2px; }
.ci-val { font-size:1.05rem; color:var(--text-dark); }
.ci-val a:hover { color:var(--green-dark); }
.ci-hours { margin-top:30px; }
.ci-hours h3 { font-size:1.3rem; color:var(--green-dark); margin-bottom:10px; font-weight:600; }
.ci-hours p { font-size:1rem; color:#666; margin-bottom:5px; }
.ci-map { margin-top:30px; border-radius:12px; overflow:hidden; box-shadow: var(--shadow-soft); transition: box-shadow .4s var(--ease); }
.ci-map:hover { box-shadow: var(--shadow-mid); }
.ci-map img { width:100%; height:200px; object-fit:cover; }
.ci-map iframe { display:block; width:100%; height:200px; }

.form-card {
    background:#fff; padding:48px; border-radius:18px;
    box-shadow: 0 16px 56px rgba(0,0,0,.08);
    border:1px solid rgba(212,207,196,.3);
}
.form-card h2 { font-size:1.7rem; font-weight:600; color:var(--green-dark); margin-bottom:6px; }
.form-intro { font-size:1rem; color:#888; margin-bottom:30px; }
.frow { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.fgroup { margin-bottom:20px; }
.fgroup label { display:block; font-size:.9rem; font-weight:500; color:var(--text-dark); margin-bottom:7px; letter-spacing:.3px; }
.fgroup input, .fgroup select, .fgroup textarea {
    width:100%; padding:13px 16px; border:2px solid #d4cfc4; border-radius:10px;
    font-family:inherit; font-size:1rem; color:var(--text-dark);
    transition: border .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
    background:var(--cream-light);
}
.fgroup input:focus, .fgroup select:focus, .fgroup textarea:focus {
    outline:none; border-color:var(--green); background:#fff;
    box-shadow: 0 0 0 3px rgba(138,154,123,.12);
}
.fgroup textarea { resize:vertical; min-height:110px; }
.fgroup select {
    appearance:none; cursor:pointer;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7d5e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 14px center; background-size:14px;
}
.captcha-box { background:var(--cream-dark); padding:20px; border-radius:12px; margin-bottom:20px; }
.captcha-inner { display:flex; align-items:center; gap:16px; }
.captcha-q {
    font-family:'Playfair Display',serif; font-size:1.5rem; font-weight:600;
    color:var(--green-dark); background:#fff; padding:10px 22px; border-radius:10px;
    min-width:140px; text-align:center; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.captcha-inner input { max-width:120px; text-align:center; font-size:1rem; }
.captcha-hint { font-size:.75rem; color:#999; margin-top:7px; display:block; }
.check-label {
    display:flex; align-items:flex-start; gap:10px; cursor:pointer;
    font-size:.95rem; color:#666; line-height:1.5; margin-bottom:24px;
}
.check-label input { width:18px; height:18px; margin-top:2px; accent-color:var(--green); cursor:pointer; }
.btn-submit {
    display:inline-flex; align-items:center; gap:10px;
    background: var(--green);
    color:var(--cream); border:none; padding:15px 34px; border-radius:40px;
    font-family:inherit; font-size:1rem; font-weight:600;
    letter-spacing:.6px; cursor:pointer; transition: .4s var(--ease);
    box-shadow: 0 6px 20px rgba(107,125,94,.25);
}
.btn-submit:hover {
    background: var(--green);
    transform:translateY(-3px); box-shadow: 0 12px 32px rgba(74,92,64,.3);
}
.form-ok { text-align:center; padding:56px 30px; display:none; }
.form-ok .ok-icon {
    width:84px; height:84px; background: var(--green);
    border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 22px;
    box-shadow: 0 8px 24px rgba(107,125,94,.25);
}
.form-ok .ok-icon svg { color:var(--cream); }
.form-ok h3 { font-size:2rem; color:var(--green-dark); margin-bottom:10px; }
.form-ok p { font-size:1rem; color:#888; }

/* ===================== RESPONSIVE ===================== */
@media(max-width:1024px){
    .services-grid { grid-template-columns:1fr; gap:48px; }
    .service-col { text-align:left; }
    .service-col ul { margin:0; }
    .timeline-dots { flex-direction:row; padding:8px 0; }
    .vline { width:36px; height:2px; }
    .real-row, .real-row-reverse { grid-template-columns:1fr; gap:24px; }
    .real-text-right { align-items:flex-start; text-align:left; }
    .real-text-right p { margin-left:0; }
    .findus-grid { grid-template-columns:1fr; gap:36px; }
    .contact-grid { grid-template-columns:1fr; gap:48px; }
}

@media(max-width:768px){
    .wrap { padding:0 24px; }
    .nav-container { padding:0 24px; }
    .nav-menu {
        position:fixed; top:0; right:-100%; width:80%; max-width:320px; height:100vh;
        background:var(--green-darker); flex-direction:column; padding:90px 32px; gap:20px;
        transition:right .4s var(--ease); z-index:100; list-style:none;
        box-shadow:-10px 0 40px rgba(0,0,0,.25);
    }
    .nav-menu.open { right:0; }
    .nav-menu a::after { display:none; }
    .nav-phone { display:none; }
    .hamburger { display:flex; }
    .hero { grid-template-columns:1fr; grid-template-rows:auto auto; height:auto !important; max-height:none !important; min-height:auto !important; }
    .hero-left { padding:120px 32px 50px; height:auto !important; max-height:none !important; min-height:280px; }
    .hero-logo { max-width:260px; max-height:none; }
    .hero-right { height:250px !important; max-height:250px !important; }
    .services, .team, .realisations, .findus { padding:65px 0 75px; }
    .title { font-size:1.7rem; letter-spacing:3px; margin-bottom:40px; }
    .team-top, .team-bottom { flex-direction:column; align-items:center; gap:16px; }
    .team-card { width:100%; max-width:340px; border-radius:30px; padding:18px 28px; }
    .real-img img { height:220px; }
    .findus-right img { height:240px; }
    .contact-hero { padding:120px 24px 60px; }
    .contact-grid { padding:0 24px; }
    .form-card { padding:28px 20px; }
    .frow { grid-template-columns:1fr; }
    .captcha-inner { flex-direction:column; align-items:stretch; }
    .captcha-q { width:100%; }
    .captcha-inner input { max-width:none; }
    .footer-row { flex-direction:column; text-align:center; gap:8px; }
}

@media(max-width:480px){
    .hero-left { padding:100px 20px 40px; }
    .hero-logo { max-width:200px; }
    .pill { font-size:.88rem; padding:10px 24px; }
    .team-card { min-width:auto; }
    .service-col { padding:16px 10px; }
}
