/* ===================================================================
   BAMD Engineering — thème sobre / professionnel
   Palette : bleu marine + anthracite sur fond blanc / gris clair
=================================================================== */

:root {
    --navy: #12304f;
    --navy-deep: #0b1f33;
    --navy-soft: #eaf0f5;
    --steel: #3d5a74;
    --ink: #1f2630;
    --ink-dim: #5b6672;
    --ink-faint: #8993a0;
    --white: #ffffff;
    --bg: #ffffff;
    --bg-soft: #f5f7f9;
    --bg-sheet: #eef1f3;
    --border: #e1e6ea;
    --border-2: #cfd7dd;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --maxw: 1180px;
    --gutter: clamp(20px, 5vw, 64px);
    --radius: 6px;
    --radius-sm: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); }
p { margin: 0; }

.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 10px;
}

.section-head { margin-bottom: 44px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; }
.section-head .lede { max-width: 420px; color: var(--ink-dim); font-size: 15px; }

/* Buttons */
.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy-soft); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ===================== Top info bar ===================== */
.topbar {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.82);
    font-size: 13px;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,0.92); }
.topbar a:hover { color: var(--white); }
.topbar-phones { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-phones span { color: rgba(255,255,255,0.55); margin-right: 6px; }

/* ===================== Navbar ===================== */
.navbar {
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(6px);
}
.nav-content { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.logo { height: 38px; width: auto; display: block; }
.navbar nav { display: flex; align-items: center; gap: 22px; }
.navbar nav a:not(.btn-nav) {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-dim);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.navbar nav a:not(.btn-nav):hover,
.navbar nav a.is-current { color: var(--navy); border-bottom-color: var(--navy); }
.btn-nav {
    background: var(--navy);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
}
.btn-nav:hover { background: var(--navy-deep); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); display: block; }

/* ===================== Hero ===================== */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 76px 0 64px; }
.hero-content { max-width: 760px; }
.hero-eyebrow { font-size: 13.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.12; color: var(--navy); }
.hero h1 span { display: block; color: var(--steel); }
.hero-content > p { margin-top: 20px; font-size: 18px; color: var(--ink-dim); max-width: 620px; line-height: 1.65; }
.hero-buttons { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-readout { border-top: 1px solid var(--border-2); margin-top: 48px; padding: 20px 0 0; }
.hero-readout ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.hero-readout li { font-size: 13.5px; color: var(--ink-faint); }
.hero-readout li b { color: var(--navy); font-weight: 700; }

/* ===================== Stats ===================== */
.stats { background: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px var(--gutter); border-left: 1px solid rgba(255,255,255,0.14); }
.stat:first-child { border-left: none; }
.stat h2 { color: var(--white); font-size: 36px; }
.stat p { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,0.62); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

/* ===================== Cards / grid ===================== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--border-2); box-shadow: 0 8px 24px rgba(18,48,79,0.06); }
.card-icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--navy-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-dim); font-size: 14.5px; }

.domains-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.domain-chip {
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    background: var(--white);
}

/* ===================== Poles (BAMD Engineering / BAMD Service) ===================== */
.poles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pole-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pole-card:hover { border-color: var(--border-2); box-shadow: 0 8px 24px rgba(18,48,79,0.06); }
.pole-icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--navy-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.pole-tag { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--steel); margin-bottom: 10px; }
.pole-card h3 { font-size: 22px; margin-bottom: 12px; }
.pole-card .desc { color: var(--ink-dim); font-size: 15px; line-height: 1.65; margin-bottom: 20px; }
.pole-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pole-list li { font-size: 14px; color: var(--ink-dim); padding-left: 16px; position: relative; }
.pole-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--navy); border-radius: 1px; }
.pole-card .btn-outline { margin-top: auto; align-self: flex-start; }

/* Cautionary / scope note */
.notice-box {
    border: 1px solid var(--border-2);
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 28px;
}
.notice-box p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; }

/* ===================== Method timeline ===================== */
.method-header { max-width: 640px; margin-bottom: 48px; }
.method-intro { margin-top: 16px; color: var(--ink-dim); font-size: 16px; }
.method-timeline { position: relative; }
.method-timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border-2);
}
.method-step { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding-bottom: 44px; position: relative; }
.method-step:last-child { padding-bottom: 0; }
.step-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--white); border: 1.5px solid var(--border-2);
    display: flex; align-items: center; justify-content: center;
    color: var(--navy);
    box-shadow: 0 0 0 4px var(--bg);
    position: relative; z-index: 1;
}
.step-body h3 { font-size: 19px; margin-bottom: 8px; }
.step-body p { color: var(--ink-dim); font-size: 15px; max-width: 620px; }
.step-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.step-list li { font-size: 13.5px; color: var(--ink-faint); padding-left: 14px; position: relative; }
.step-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--steel); border-radius: 1px; }

/* ===================== Projects / sheets ===================== */
.projects-list { display: flex; flex-direction: column; gap: 56px; }
.project { display: grid; grid-template-columns: 44% 1fr; gap: 48px; align-items: start; }
.project:nth-child(even) .project-media { order: 2; }
.project:nth-child(even) .project-body { order: 1; }

.sheet { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.sheet-view {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: var(--bg-sheet);
    background-image:
        linear-gradient(rgba(18,48,79,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18,48,79,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.sheet-view img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .12s ease; }
.sheet-block {
    display: flex; justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 12.5px; color: var(--ink-faint);
    text-transform: uppercase; letter-spacing: 0.03em;
}
.sheet-block b { color: var(--navy); font-weight: 700; text-transform: none; letter-spacing: normal; }

.thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button {
    width: 56px; height: 56px; padding: 0;
    border: 1.5px solid var(--border-2); border-radius: var(--radius-sm);
    background: var(--bg-sheet); cursor: pointer; overflow: hidden;
}
.thumbs button img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumbs button.is-active, .thumbs button:hover { border-color: var(--navy); }

.project-body .ref-tag {
    display: inline-block; font-size: 12.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--steel);
    margin-bottom: 10px;
}
.project-body h3 { font-size: 24px; margin-bottom: 12px; }
.project-body .desc { color: var(--ink-dim); font-size: 15px; margin-bottom: 20px; }

.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; margin: 0 0 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.spec-list div { display: flex; flex-direction: column; gap: 3px; }
.spec-list dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); }
.spec-list dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 14.5px; }

.case-block { margin-bottom: 18px; }
.case-block h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--steel); margin-bottom: 8px; font-weight: 700; }
.case-block p { color: var(--ink-dim); font-size: 14.5px; }
.case-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.case-list li { font-size: 14.5px; color: var(--ink-dim); padding-left: 16px; position: relative; }
.case-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--navy); border-radius: 1px; }

/* No-photo case study variant */
.sheet-noimg {
    height: 100%; min-height: 260px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; text-align: center; padding: 32px;
    color: var(--ink-faint);
}
.sheet-noimg svg { color: var(--steel); }
.sheet-noimg span { font-size: 13px; max-width: 240px; }

/* ===================== Contact ===================== */
.contact { background: var(--bg-soft); border-top: 1px solid var(--border); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact h2 { margin-bottom: 20px; }
.mono-line { font-size: 15.5px; color: var(--ink-dim); margin-bottom: 14px; line-height: 1.6; }
.mono-line a { color: var(--navy); font-weight: 600; }
.contact-highlight {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
}
.contact-highlight h3 { font-size: 19px; margin-bottom: 16px; }

.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.contact-card h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--steel); margin-bottom: 8px; font-weight: 700; }
.contact-card a, .contact-card p { font-size: 16px; font-weight: 700; color: var(--navy); }

/* ===================== Footer ===================== */
footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .logo { height: 40px; margin-bottom: 14px; background: var(--white); padding: 6px 10px; border-radius: var(--radius-sm); }
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.85); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col p { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: var(--white); }
.footer-content { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-content p { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-legal a:hover { color: var(--white); }

/* ===================== Inner page header (Services / Réalisations / À propos / Contact / Mentions) ===================== */
.page-header { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 56px 0; }
.page-header .section-eyebrow { margin-bottom: 12px; }
.page-header h1 { font-size: clamp(28px, 4vw, 40px); }
.page-header p { margin-top: 16px; color: var(--ink-dim); font-size: 17px; max-width: 640px; }

/* Mentions légales */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 20px; margin: 40px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--ink-dim); font-size: 15px; margin-bottom: 10px; line-height: 1.7; }
.legal-content .placeholder { color: var(--steel); font-style: italic; }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: none; }
    .grid { grid-template-columns: 1fr; }
    .domains-grid { grid-template-columns: repeat(2, 1fr); }
    .poles-grid { grid-template-columns: 1fr; }
    .project { grid-template-columns: 1fr; }
    .project:nth-child(even) .project-media, .project:nth-child(even) .project-body { order: initial; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 1080px) {
    .topbar .container { justify-content: center; text-align: center; }
    .navbar nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 24px var(--gutter) 28px; gap: 18px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(18,48,79,0.08); }
    .navbar.is-open nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav-toggle { display: flex; }
    .hero-readout ul { gap: 8px 22px; }
    .section { padding: 64px 0; }
}
