/* =========================================================
   Sud Démolition — feuille de style
   Palette industrielle : anthracite + orange sécurité
   ========================================================= */

:root {
    --c-dark: #1a1c1f;
    --c-dark-2: #24272b;
    --c-ink: #2b2f34;
    --c-body: #3a3f45;
    --c-muted: #6b7178;
    --c-line: #e2e5e8;
    --c-bg: #ffffff;
    --c-bg-alt: #f5f6f7;
    --c-accent: #f08a24;      /* orange chantier */
    --c-accent-d: #d6740f;
    --c-accent-2: #ffc107;    /* jaune hi-vis */
    --radius: 6px;
    --radius-lg: 12px;
    --shadow: 0 6px 24px rgba(20, 22, 25, 0.10);
    --shadow-lg: 0 18px 50px rgba(20, 22, 25, 0.18);
    --maxw: 1180px;
    --ff-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--ff-body);
    color: var(--c-body);
    background: var(--c-bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent-d); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
    font-family: var(--ff-head);
    color: var(--c-ink);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); text-transform: none; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: var(--c-accent); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-block; cursor: pointer; border: 2px solid transparent;
    font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem;
    letter-spacing: 0.4px; text-transform: uppercase;
    padding: 13px 26px; border-radius: var(--radius); text-decoration: none;
    transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-d); color: #fff; }
.btn-secondary { background: var(--c-ink); color: #fff; }
.btn-secondary:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--c-ink); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--c-dark); color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 38px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
    display: block; color: #e9ebee; font-family: var(--ff-head); font-weight: 600;
    font-size: 1.12rem; letter-spacing: .4px; padding: 10px 14px; border-radius: var(--radius);
    text-decoration: none;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.main-nav .is-active > a { color: var(--c-accent-2); }
.caret { font-size: .7em; }

.has-dropdown { position: relative; }
.dropdown {
    list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0;
    min-width: 220px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { color: var(--c-ink); }
.dropdown a:hover { background: var(--c-bg-alt); color: var(--c-accent-d); }
.dropdown .is-active a { color: var(--c-accent-d); }

.header-cta {
    background: var(--c-accent); color: #fff; font-family: var(--ff-head); font-weight: 700;
    padding: 10px 16px; border-radius: var(--radius); white-space: nowrap; font-size: 1.05rem;
}
.header-cta:hover { background: var(--c-accent-d); color: #fff; text-decoration: none; }

.nav-toggle {
    display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; padding: 9px;
}
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; margin: 4px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff;
    background: linear-gradient(rgba(15,17,19,.62), rgba(15,17,19,.72)), var(--hero-img) center/cover no-repeat;
}
.hero-inner { padding: 96px 22px 104px; max-width: 860px; }
.hero-eyebrow, .eyebrow {
    text-transform: uppercase; letter-spacing: 2px; font-size: .82rem; font-weight: 700;
    color: var(--c-accent-2); margin: 0 0 12px; font-family: var(--ff-body);
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero-lead { font-size: 1.18rem; color: #e7e9eb; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Page hero (intérieures) ---------- */
.page-hero {
    position: relative; color: #fff;
    background: linear-gradient(rgba(15,17,19,.66), rgba(15,17,19,.74)), var(--hero-img) center/cover no-repeat;
}
.page-hero .container { padding-top: 70px; padding-bottom: 76px; }
.page-hero--compact .container { padding-top: 58px; padding-bottom: 60px; }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero-lead { font-size: 1.12rem; color: #e7e9eb; max-width: 760px; }
.page-hero .btn { margin-top: 22px; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { background: var(--c-bg-alt); font-size: .9rem; }
.breadcrumb .container { padding-top: 12px; padding-bottom: 12px; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb span:last-child { color: var(--c-ink); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-trust { background: var(--c-dark); color: #d7dadd; }
.section-trust h2, .section-trust h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-intro { color: var(--c-muted); font-size: 1.08rem; }
.section-trust .section-intro { color: #aeb3b8; }

/* ---------- Stats ---------- */
.stats { background: var(--c-accent); }
.stats--solid { background: var(--c-ink); }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    padding-top: 34px; padding-bottom: 34px;
}
.stat { text-align: center; color: #fff; padding: 8px; }
.stat-value { display: block; font-family: var(--ff-head); font-weight: 700; font-size: 2.8rem; line-height: 1; }
.stat-label { display: block; font-size: .92rem; opacity: .92; margin-top: 6px; }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: 26px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.section-trust .card-plain { background: var(--c-dark-2); }
.card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 4px; }
.card-body h3 a { color: var(--c-ink); }
.card-body h3 a:hover { color: var(--c-accent-d); text-decoration: none; }
.card-tagline { color: var(--c-accent-d); font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.card-meta { color: var(--c-muted); font-size: .88rem; margin-bottom: 10px; }
.card-plain { padding: 26px; }

.badge {
    position: absolute; top: 12px; left: 12px; background: var(--c-accent); color: #fff;
    font-family: var(--ff-head); font-weight: 700; font-size: .82rem; letter-spacing: .5px;
    padding: 5px 12px; border-radius: 4px; text-transform: uppercase;
}

.link-arrow { margin-top: auto; font-weight: 600; color: var(--c-accent-d); }
.link-arrow::after { content: " →"; }

/* ---------- Split (texte + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

.check-list { list-style: none; margin: 0 0 1.4em; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 11px; }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--c-accent);
    width: 20px; height: 20px; border-radius: 50%; font-size: .8rem; display: grid; place-items: center; font-weight: 700;
}

/* ---------- Prose (pages éditoriales) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.figure { margin: 28px 0; }
.figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.figure figcaption { font-size: .9rem; color: var(--c-muted); margin-top: 8px; font-style: italic; }
.related { background: var(--c-bg-alt); border-left: 4px solid var(--c-accent); padding: 16px 20px; border-radius: var(--radius); margin-top: 2em; }

/* ---------- Réalisations ---------- */
.real-list { display: flex; flex-direction: column; gap: 48px; }
.real-item { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.real-item--reverse .real-media { order: 2; }
.real-media { position: relative; }
.real-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.real-body h2 { margin-bottom: 6px; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--c-accent); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px 22px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; max-width: 640px; color: #fff; opacity: .96; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--c-ink); }
.cta-band .btn-primary:hover { background: #000; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
.contact-form .field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--c-ink); font-size: .95rem; }
.req { color: var(--c-accent-d); }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius);
    font-family: var(--ff-body); font-size: 1rem; color: var(--c-ink); background: #fff; transition: border .15s ease, box-shadow .15s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(240,138,36,.18);
}
.contact-form .has-error { border-color: #d33; background: #fff7f7; }
.field-error { color: #c0392b; font-size: .85rem; margin: 6px 0 0; }
.form-note { font-size: .9rem; color: var(--c-muted); }
.form-legal { font-size: .82rem; color: var(--c-muted); margin-top: 12px; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }

.alert { border-radius: var(--radius-lg); padding: 26px 28px; }
.alert-success { background: #edf8ef; border: 1px solid #bfe6c6; }
.alert-success h2 { color: #1e7a37; }
.alert-error { background: #fdecea; border: 1px solid #f3c2bd; color: #b53224; margin-bottom: 18px; }

.contact-card { background: var(--c-bg-alt); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 22px; }
.contact-card--alt { background: var(--c-ink); color: #d7dadd; }
.contact-card--alt h3 { color: #fff; }
.contact-card address { font-style: normal; margin-bottom: 14px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--c-line); }
.contact-list li span { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--c-muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--c-dark); color: #aeb3b8; padding-top: 56px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 44px; }
.footer-col h3 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #aeb3b8; }
.footer-col a:hover { color: var(--c-accent-2); }
.brand--footer { margin-bottom: 14px; }
.brand--footer .brand-logo { height: 44px; }
.footer-area { color: #8b9096; }
.footer-hours { color: #8b9096; }
.site-footer address { font-style: normal; }
.site-footer address a { color: var(--c-accent-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #80868c; }

.section-404 { padding: 100px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; gap: 30px; }
    .split-media { order: -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed; inset: 72px 0 auto 0; background: var(--c-dark);
        margin: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease;
        border-top: 1px solid rgba(255,255,255,.08);
    }
    .main-nav.open { max-height: 80vh; overflow-y: auto; }
    .main-nav > ul { flex-direction: column; gap: 0; padding: 8px 14px 18px; }
    .main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.06); }
    .main-nav a { padding: 13px 8px; font-size: 1.18rem; }
    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        background: transparent; padding: 0 0 8px 16px; display: none;
    }
    .has-dropdown.open .dropdown { display: block; }
    .dropdown a { color: #b9bec4; }
    .dropdown a:hover { background: transparent; color: var(--c-accent-2); }
    .contact-grid { grid-template-columns: 1fr; }
    .real-item, .real-item--reverse { grid-template-columns: 1fr; gap: 20px; }
    .real-item--reverse .real-media { order: 0; }
}

@media (max-width: 620px) {
    .cards-4, .cards-3 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .field-row { grid-template-columns: 1fr; }
    .hero-inner { padding: 64px 22px 70px; }
    body { font-size: 16px; }
}
