/* ==========================================================
   Façade & Toiture — feuille de style principale
   Couleurs modifiables ici :
   ========================================================== */
:root {
  --dark: #1c2430;          /* ardoise */
  --dark-2: #2a3544;
  --accent: #d9622b;        /* terre cuite / tuile */
  --accent-dark: #b44c1c;
  --sand: #f5efe6;          /* pierre claire */
  --text: #2a2f36;
  --muted: #5f6873;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 28, 38, .12);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Montserrat", "Inter", sans-serif; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: .6rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--dark); color: #dfe5ec; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6rem;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .lead { margin: 0 auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  min-height: 52px;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn--call { background: var(--accent); color: var(--white); box-shadow: 0 8px 22px rgba(217, 98, 43, .35); }
.btn--call:hover { background: var(--accent-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--dark); color: var(--dark); }
.btn--outline:hover { background: var(--dark); color: var(--white); }
.btn--block { width: 100%; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid #eceff2;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 10px; background: var(--dark);
  display: grid; place-items: center; flex-shrink: 0;
}
.logo__mark svg { width: 26px; height: 26px; }
.logo__text { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--dark); line-height: 1.1; }
.logo__text small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--dark); position: relative; }
.nav a[aria-current="page"]::after, .nav a:not(.btn):hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--accent); border-radius: 2px;
}
.nav .btn { padding: 11px 20px; min-height: 0; }
.burger { display: none; background: none; border: 0; width: 46px; height: 46px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--dark); margin: 5px auto; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); padding: 110px 0 120px;
  background:
    linear-gradient(110deg, rgba(20,27,36,.94) 0%, rgba(20,27,36,.78) 55%, rgba(20,27,36,.45) 100%),
    url("../images/hero.jpg") center/cover no-repeat, var(--dark);
}
.hero h1 { color: var(--white); max-width: 780px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.18rem; color: #d5dce4; max-width: 640px; margin: 22px 0 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 44px; font-weight: 600; font-size: .96rem; color: #e8edf2; }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges svg { width: 20px; height: 20px; color: var(--accent); }
.page-hero { padding: 70px 0 64px; }
.page-hero p { margin-bottom: 0; }

/* ---------- Chiffres clés ---------- */
.stats { margin-top: -54px; position: relative; z-index: 2; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 28px 18px; text-align: center; border-right: 1px solid #eef0f3; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: "Montserrat", sans-serif; font-size: 2.1rem; font-weight: 800; color: var(--accent); }
.stat span { font-size: .93rem; color: var(--muted); font-weight: 600; }

/* ---------- Grilles / cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: 0 2px 10px rgba(20,28,38,.06); border: 1px solid #edf0f3;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 56px; height: 56px; border-radius: 12px; background: rgba(217,98,43,.1);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 30px; height: 30px; }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { list-style: none; margin-top: 12px; }
.card li { padding-left: 22px; position: relative; font-size: .95rem; color: var(--text); margin: 4px 0; }
.card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* ---------- Bloc à propos ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split__visual { position: relative; }
.split__visual img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.split__badge {
  position: absolute; right: -14px; bottom: -22px; background: var(--accent); color: var(--white);
  border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); text-align: center;
}
.split__badge strong { display: block; font-family: "Montserrat"; font-size: 2.2rem; line-height: 1; }
.split__badge span { font-size: .85rem; font-weight: 600; }
.checks { list-style: none; margin: 22px 0 30px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 10px; }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--white);
  font-family: "Montserrat"; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}
.section--dark .step p { color: #b9c3ce; }

/* ---------- Avant / Après (curseur) ---------- */
.ba { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/2; user-select: none; touch-action: pan-y; background: #ddd; box-shadow: var(--shadow); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--white);
  transform: translateX(-50%); pointer-events: none;
}
.ba__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--dark);
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.ba input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}
.project h3 { margin-top: 18px; }
.project p { color: var(--muted); font-size: .97rem; }
.tag { display: inline-block; background: rgba(217,98,43,.1); color: var(--accent-dark); font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; margin-top: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filters button {
  border: 2px solid #dfe3e8; background: var(--white); padding: 9px 18px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer; color: var(--dark); font-family: inherit;
}
.filters button.active, .filters button:hover { border-color: var(--accent); background: var(--accent); color: var(--white); }

/* ---------- Avis ---------- */
.review { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 10px rgba(20,28,38,.06); }
.stars { color: #f5a623; font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 10px; }
.review p { font-style: italic; color: var(--text); }
.review strong { display: block; margin-top: 14px; color: var(--dark); }
.review span { font-size: .88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: 12px; margin-bottom: 12px; border: 1px solid #e9ecef; }
.faq summary { padding: 20px 56px 20px 22px; font-weight: 700; cursor: pointer; list-style: none; position: relative; color: var(--dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%); color: var(--white); padding: 60px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band p { opacity: .92; margin-top: 6px; }
.cta-band .btn--call { background: var(--white); color: var(--accent-dark); box-shadow: 0 8px 22px rgba(0,0,0,.18); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-info .card { margin-bottom: 18px; display: flex; gap: 16px; align-items: flex-start; }
.contact-info .card__icon { margin: 0; flex-shrink: 0; }
.contact-info a { font-weight: 700; color: var(--dark); text-decoration: none; font-size: 1.15rem; }
.form { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1.5px solid #d8dde3;
  font: inherit; font-size: 16px; background: #fbfcfd; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px rgba(217,98,43,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.form small { display: block; color: var(--muted); font-size: .82rem; margin-top: 12px; }
.map { border-radius: var(--radius); overflow: hidden; margin-top: 18px; border: 0; width: 100%; height: 260px; }

/* ---------- Pied de page ---------- */
.footer { background: #141a23; color: #9aa6b2; padding: 60px 0 110px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer a { text-decoration: none; color: #c9d2db; }
.footer a:hover { color: var(--accent); }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer .logo__text { color: var(--white); }
.footer__bottom { border-top: 1px solid #263040; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* ---------- Barre d'appel fixe (mobile) ---------- */
.mobile-bar { display: none; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid #eef0f3; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .burger { display: block; }
  .nav {
    position: fixed; top: 74px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 24px;
    box-shadow: 0 12px 24px rgba(0,0,0,.1); transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid #eef0f3; font-size: 1.08rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 16px; padding: 15px; }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header__cta { display: none; }

  .hero { padding: 64px 0 96px; }
  .hero p { font-size: 1.05rem; }
  .hero__ctas .btn { width: 100%; }
  .hero__badges { margin-top: 30px; gap: 10px 18px; font-size: .9rem; }
  .page-hero { padding: 50px 0 48px; }

  .grid--3, .grid--2, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .stat strong { font-size: 1.7rem; }
  .split__badge { right: 12px; bottom: -18px; }
  .form { padding: 24px 18px; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band .btn { width: 100%; }

  /* Barre fixe en bas : Appeler + Devis — toujours à portée de pouce */
  .mobile-bar {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); box-shadow: 0 -6px 20px rgba(0,0,0,.12);
  }
  .mobile-bar .btn { padding: 13px 10px; font-size: .98rem; min-height: 52px; }
  .mobile-bar .btn--outline { border-color: var(--dark); }
}
