/* =========================================================
   COREBAT — Construction · Rénovation · Bâtiment
   Charte couleurs issue du logo :
   Bleu marine : #193867 | Orange : #D95727
   ========================================================= */

:root {
  --navy: #193867;
  --navy-dark: #112644;
  --navy-light: #2a4f86;
  --orange: #D95727;
  --orange-dark: #b9461c;
  --orange-light: #f0824f;
  --ink: #1c2433;
  --muted: #5a6478;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-soft-2: #eef2f7;
  --line: #e2e8f0;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(25, 56, 103, 0.10);
  --shadow-lg: 0 20px 50px rgba(25, 56, 103, 0.16);
  --maxw: 1180px;
  --font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 800; letter-spacing: -0.5px; }

section { padding: 90px 0; }

.section-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-title { font-size: 2.2rem; margin-bottom: 18px; }
.section-intro { color: var(--muted); max-width: 680px; font-size: 1.05rem; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217,87,39,.35); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-soft-2); transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #dfe7f2;
  font-size: 0.86rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: 16px; }
.topbar a { color: #dfe7f2; }
.topbar a:hover { color: var(--orange-light); }
.topbar .tb-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(25,56,103,.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--navy);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }
.nav-cta { margin-left: 10px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 0;
  background:
    linear-gradient(115deg, rgba(17,38,68,.92) 0%, rgba(25,56,103,.80) 45%, rgba(25,56,103,.55) 100%),
    url('assets/hero.jpg') center center / cover no-repeat,
    linear-gradient(115deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  background-blend-mode: normal;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(217,87,39,.22), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 68px; }
.hero-inner { max-width: 720px; }
.hero h1 { color: #fff; font-size: 3.1rem; margin-bottom: 20px; }
.hero h1 .accent { color: var(--orange-light); }
.hero .lead { font-size: 1.25rem; color: #d6e0ef; margin-bottom: 14px; font-weight: 600; }
.hero p.sub { font-size: 1.05rem; color: #bccadf; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Page banner (inner pages) */
.page-banner {
  background: linear-gradient(115deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 90% 30%, rgba(217,87,39,.25), transparent 50%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: 2.6rem; margin-bottom: 10px; }
.breadcrumb { color: #c2d0e6; font-size: .95rem; }
.breadcrumb a:hover { color: var(--orange-light); }

/* ---------- Stats strip ---------- */
.stats { background: var(--orange); color: #fff; padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.stat .lbl { font-size: .95rem; opacity: .92; margin-top: 8px; }

/* ---------- Services / cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon {
  width: 58px; height: 58px;
  border-radius: 12px;
  background: var(--bg-soft-2);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--orange);
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { display: inline-block; margin-top: 16px; color: var(--orange); font-weight: 700; font-size: .92rem; }
.card .more:hover { color: var(--orange-dark); }

.bg-soft { background: var(--bg-soft); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media {
  border-radius: var(--radius);
  min-height: 380px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split .media::after {
  content:"";
  position:absolute; inset:0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 44px),
              repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 44px);
}
.split .media .badge {
  position: absolute; bottom: 26px; left: 26px;
  background: var(--orange); color: #fff;
  padding: 18px 24px; border-radius: 10px; z-index: 2;
}
.split .media .badge b { font-size: 1.8rem; display: block; }
.check-list { list-style: none; margin: 22px 0 30px; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-size: .8rem; display: grid; place-items: center; font-weight: 800;
}

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; padding: 10px; }
.step .n {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  color: var(--navy);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.4rem;
}
.step h4 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- Gallery (réalisations) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.tile span.cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--orange); color: #fff;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 5px 12px; border-radius: 30px;
}
.tile .tile-title { font-weight: 700; font-size: 1.1rem; text-align: center; padding: 0 18px; }
.tile::after {
  content:"";
  position:absolute; inset:0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 18px);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(rgba(17,38,68,.92), rgba(17,38,68,.92)),
    repeating-linear-gradient(45deg, #1a3a6a 0 20px, #173360 20px 40px);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: 2.1rem; margin-bottom: 14px; }
.cta-band p { color: #cdd9ec; max-width: 620px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 38px 34px;
}
.info-card h3 { color: #fff; margin-bottom: 22px; }
.info-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.info-item .ic {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--orange); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.info-item .lab { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: #aebfd9; }
.info-item .val { font-weight: 700; font-size: 1.05rem; }
.info-item a.val:hover { color: var(--orange-light); }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
form .field { margin-bottom: 18px; }
form input, form textarea, form select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: .98rem;
  background: var(--bg-soft);
  transition: border-color .15s, background .15s;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none; border-color: var(--orange); background: #fff;
}
form textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.form-success {
  display: none;
  background: #e9f7ef; border: 1px solid #b7e4c7; color: #1b6b3a;
  padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c5d2e6; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; margin-bottom: 18px; font-size: 1.05rem; }
.site-footer .flogo { background:#fff; display:inline-block; padding:12px 16px; border-radius:10px; margin-bottom:18px; }
.site-footer .flogo img { height: 46px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--orange-light); }
.site-footer .fdesc { font-size: .95rem; line-height: 1.7; }
.f-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: .95rem; }
.f-contact-item .ic { color: var(--orange-light); }
.footer-bottom {
  margin-top: 50px; border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0; font-size: .86rem; color: #93a6c4;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.4rem; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .topbar .tb-left { gap: 14px; }
  .topbar .tb-right { display: none; }
  .nav-links {
    position: fixed; inset: 84px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 12px 8px 0; }
  .nav-cta a { display: block; text-align: center; }
  .nav-toggle { display: flex; }
  .cards, .cards.cols-3, .gallery, .stats-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  form .row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
