/* ============================================================
   SB Rénovation — Feuille de style
   Palette : anthracite / gris ardoise + blanc, accent orange chantier
   ============================================================ */

:root {
  --anthracite: #1e242b;
  --anthracite-2: #262d36;
  --ardoise: #3a444f;
  --ardoise-light: #5b6672;
  --gris: #8a949e;
  --gris-clair: #eef1f4;
  --gris-bg: #f6f8fa;
  --blanc: #ffffff;
  --orange: #f47c20;
  --orange-fonce: #d9660f;
  --orange-clair: #fff2e7;
  --bleu-info: #2e6da4;
  --ok: #2e8b57;

  --shadow-sm: 0 1px 3px rgba(20, 25, 31, 0.08);
  --shadow-md: 0 6px 20px rgba(20, 25, 31, 0.10);
  --shadow-lg: 0 18px 45px rgba(20, 25, 31, 0.16);
  --radius: 10px;
  --radius-lg: 16px;

  --font-titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-corps: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1160px;
}

/* ---------- Reset léger ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-corps);
  color: var(--anthracite);
  background: var(--blanc);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-fonce); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  line-height: 1.08;
  letter-spacing: 0.2px;
  color: var(--anthracite);
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); text-transform: none; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1em; }

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

.section { padding: 74px 0; }
.section--gris { background: var(--gris-bg); }
.section--anthracite { background: var(--anthracite); color: var(--gris-clair); }
.section--anthracite h2, .section--anthracite h3 { color: var(--blanc); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-titre);
  font-size: 1.02rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange-fonce);
  font-weight: 600;
  margin-bottom: 10px;
}
.section--anthracite .eyebrow { color: var(--orange); }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--ardoise-light); }
.section--anthracite .lead { color: var(--gris); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-titre);
  font-size: 1.18rem; font-weight: 600; letter-spacing: 0.4px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--orange-fonce); color: #fff; }
.btn--ghost { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--dark { background: var(--anthracite); color: #fff; }
.btn--dark:hover { background: var(--anthracite-2); color: #fff; }
.btn--lg { font-size: 1.28rem; padding: 16px 34px; }

/* ---------- En-tête / navigation ---------- */
.topbar {
  background: var(--anthracite);
  color: var(--gris-clair);
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: var(--gris-clair); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar .tb-right { display: flex; gap: 20px; flex-wrap: wrap; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gris-clair);
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }

/* Logo wordmark */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  position: relative;
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--anthracite);
  display: grid; place-items: center;
  font-family: var(--font-titre); font-weight: 700; font-size: 1.3rem;
  color: #fff; letter-spacing: -1px;
  padding-top: 9px;
}
.logo-mark::before {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 9px;
  background: center/contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 9'%3E%3Cpath d='M2 8 L12 2 L22 8' fill='none' stroke='%23f47c20' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b {
  font-family: var(--font-titre); font-size: 1.5rem; font-weight: 700;
  color: var(--anthracite); letter-spacing: .3px;
}
.logo-text span { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ardoise-light); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-titre); font-size: 1.15rem; font-weight: 600;
  color: var(--ardoise); padding: 9px 15px; border-radius: 8px;
  text-decoration: none; letter-spacing: .3px;
}
.nav-links a:hover { background: var(--gris-clair); color: var(--anthracite); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--orange-fonce); }
.nav-cta { margin-left: 8px; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--anthracite); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(24,29,35,.95) 0%, rgba(26,31,37,.86) 48%, rgba(30,36,43,.66) 100%),
    url("assets/realisations/renovation-toiture-charpente-liteaux-91.jpg") center/cover no-repeat,
    var(--anthracite);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(244,124,32,.06) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 92px; max-width: 900px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .hero-sub { font-size: 1.22rem; color: #d7dde3; max-width: 60ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: .96rem; color: #e7ebef; }
.hero-badge svg { flex: 0 0 auto; }
.hero-badge b { font-family: var(--font-titre); font-size: 1.35rem; color: var(--orange); display:block; line-height:1; }

/* ---------- Bandeau confiance ---------- */
.trust { background: var(--blanc); border-bottom: 1px solid var(--gris-clair); }
.trust .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding-top: 34px; padding-bottom: 34px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item .ti-num { font-family: var(--font-titre); font-size: 2.4rem; font-weight: 700; color: var(--anthracite); line-height: 1; }
.trust-item .ti-txt { font-size: .95rem; color: var(--ardoise-light); }
.trust-item .ti-txt strong { color: var(--anthracite); display: block; font-size: 1.02rem; }

/* ---------- Grille services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--blanc); border: 1px solid var(--gris-clair);
  border-radius: var(--radius-lg); padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #dfe4ea; }
.card-icon {
  width: 54px; height: 54px; border-radius: 12px; margin-bottom: 18px;
  background: var(--orange-clair); color: var(--orange-fonce);
  display: grid; place-items: center;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ardoise-light); margin-bottom: 0; font-size: .98rem; }

/* ---------- Liste détaillée prestations ---------- */
.prestation {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 28px 0; border-bottom: 1px solid var(--gris-clair);
}
.prestation:last-child { border-bottom: 0; }
.prestation .p-icon {
  width: 60px; height: 60px; border-radius: 12px;
  background: var(--anthracite); color: var(--orange);
  display: grid; place-items: center;
}
.prestation h3 { margin-bottom: 6px; }
.prestation p { color: var(--ardoise-light); margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-size: .84rem; background: var(--gris-clair); color: var(--ardoise);
  padding: 4px 12px; border-radius: 40px; font-weight: 500;
}

/* ---------- Zone / process ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check-list li svg { flex: 0 0 auto; margin-top: 3px; }
.check-list li b { display: block; }

.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--font-titre); font-size: 2.6rem; font-weight: 700;
  color: var(--orange); line-height: 1; display: block; margin-bottom: 8px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ardoise-light); font-size: .96rem; margin: 0; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.ba {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--blanc);
  border: 1px solid var(--gris-clair); box-shadow: var(--shadow-sm);
}
.ba-imgs { display: grid; grid-template-columns: 1fr 1fr; }
.ba-slot { position: relative; aspect-ratio: 4/3; }
.ba-slot img { width: 100%; height: 100%; object-fit: cover; }
.ba-slot .ba-label {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-titre); font-size: .82rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 30px; color: #fff;
}
.ba-label.avant { background: rgba(30,36,43,.85); }
.ba-label.apres { background: var(--orange); }
.ba-caption { padding: 16px 18px; }
.ba-caption h3 { font-size: 1.2rem; margin-bottom: 4px; }
.ba-caption p { color: var(--ardoise-light); font-size: .92rem; margin: 0; }

/* Vignette chantier (photo unique) */
.shot {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--blanc);
  border: 1px solid var(--gris-clair); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot-img { aspect-ratio: 4/3; overflow: hidden; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; }
.shot-caption { padding: 15px 18px; }
.shot-caption h3 { font-size: 1.18rem; margin-bottom: 3px; }
.shot-caption p { color: var(--ardoise-light); font-size: .9rem; margin: 0; }
.shot-tag {
  display: inline-block; font-family: var(--font-titre); font-size: .78rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--orange-fonce); background: var(--orange-clair);
  padding: 2px 10px; border-radius: 30px; margin-bottom: 8px;
}

/* Placeholder photo (en attendant vraies photos) */
.ph {
  width: 100%; height: 100%; position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,.9); font-family: var(--font-titre);
  font-size: .85rem; letter-spacing: .5px; padding: 12px;
  background-size: cover; background-position: center;
}
.ph-a { background: linear-gradient(135deg,#4a5560,#2c333b); }
.ph-b { background: linear-gradient(135deg,#e07f38,#c85f14); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; padding: 46px 22px; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; color: #fff2e7; }
.cta-band .btn--dark { flex: 0 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px; align-items: start; }
.info-card {
  background: var(--anthracite); color: var(--gris-clair);
  border-radius: var(--radius-lg); padding: 34px 30px;
}
.info-card h2, .info-card h3 { color: #fff; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.info-row:last-child { border-bottom: 0; }
.info-row .ir-ic { width: 44px; height: 44px; border-radius: 10px; background: rgba(244,124,32,.16); color: var(--orange); display: grid; place-items: center; flex: 0 0 auto; }
.info-row .ir-txt small { display: block; color: var(--gris); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }
.info-row .ir-txt a, .info-row .ir-txt b { color: #fff; font-size: 1.15rem; font-family: var(--font-titre); }

.form-card { background: var(--blanc); border: 1px solid var(--gris-clair); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gris-clair);
  border-radius: 9px; font-family: inherit; font-size: 1rem; color: var(--anthracite);
  background: var(--gris-bg); transition: border .18s, background .18s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--orange); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .85rem; color: var(--gris); margin-top: 14px; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gris-clair); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff; border: 1px solid var(--gris-clair); border-radius: var(--radius);
  padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-family: var(--font-titre); font-size: 1.25rem; font-weight: 600;
  padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.6rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ardoise-light); padding-bottom: 14px; margin: 0; }

/* ---------- Bandeau intro page ---------- */
.page-hero { background: var(--anthracite); color: #fff; padding: 62px 0 54px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(244,124,32,.05) 0 2px, transparent 2px 22px);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #cdd4da; max-width: 62ch; margin: 0; font-size: 1.12rem; }
.breadcrumb { font-size: .88rem; color: var(--gris); margin-bottom: 16px; }
.breadcrumb a { color: var(--gris); }
.breadcrumb span { color: var(--orange); }

/* ---------- Pied de page ---------- */
.site-footer { background: #14181d; color: #aeb6bf; padding: 60px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: 16px; }
.site-footer a { color: #aeb6bf; }
.site-footer a:hover { color: var(--orange); text-decoration: none; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-logo .logo-text b { color: #fff; }
.footer-logo .logo-text span { color: var(--gris); }
.footer-about { margin-top: 16px; max-width: 34ch; color: #909aa4; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact svg { flex: 0 0 auto; margin-top: 3px; color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #7f8892; font-size: .86rem; }

/* Crédit — Le Labo IA */
.made-by { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: .85rem; color: #7f8892; }
.made-by a { color: #aeb6bf; font-weight: 600; text-decoration: none; }
.made-by a:hover { color: #00ff88; text-decoration: none; }
.made-by .orb {
  width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto;
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88, 0 0 13px rgba(0,255,136,.75);
  animation: orb-pulse 2.6s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 6px #00ff88, 0 0 12px rgba(0,255,136,.6); opacity: 1; }
  50%      { box-shadow: 0 0 11px #00ff88, 0 0 22px rgba(0,255,136,.95); opacity: .8; }
}
@media (prefers-reduced-motion: reduce) { .made-by .orb { animation: none; } }

/* ---------- Bouton appel flottant (mobile) ---------- */
.call-fab {
  display: none; position: fixed; z-index: 60; right: 16px; bottom: 16px;
  background: var(--orange); color: #fff; width: 58px; height: 58px; border-radius: 50%;
  box-shadow: var(--shadow-lg); align-items: center; justify-content: center;
}
.call-fab:hover { text-decoration: none; background: var(--orange-fonce); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .cards, .steps, .gallery { grid-template-columns: repeat(2,1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .trust .container { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 320px);
    background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 90px 22px 30px; gap: 6px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .28s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 13px 14px; font-size: 1.3rem; }
  .nav-links .nav-cta { margin: 10px 0 0; }
  .nav-links .btn { justify-content: center; }
  .burger { display: block; }
  .call-fab { display: flex; }
  .section { padding: 54px 0; }
  .hero .container { padding-top: 62px; padding-bottom: 66px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .topbar .tb-left { display: none; }
}
@media (max-width: 520px) {
  .cards, .steps, .gallery, .trust .container, .footer-grid, .form-row { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .ba-imgs { grid-template-columns: 1fr 1fr; }
}
