/* ================================================================
   EXPERT RENOV 49 — Styles partagés
   ================================================================ */

/* ---- Variables ---- */
:root {
  --bg: #F7FEFF;
  --white: #FFFFFF;
  --black: #5A3A26;
  --text: #1F1209;
  --muted: #8A6545;
  --soft: #F1E9DF;
  --line: #E6D9C9;
  --navy: #C6552D;
  --navy-d: #A8421D;
  --container: calc(100% - 104px);
  --max: 1700px;
  --r: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }

/* ---- Layout ---- */
.container { width: var(--container); max-width: var(--max); margin: 0 auto; }
.section { padding: 110px 0; }

/* ---- Label / Pill ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy);
  background: none;
  border: none;
  padding: 0;
  height: auto;
}
.pill::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  flex-shrink: 0;
  opacity: 1;
  border-radius: 0;
}

/* ---- Heading & Lead ---- */
.heading {
  font-size: clamp(36px, 4.2vw, 68px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
}
.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.12); }
.btn-c {
  width: auto; height: auto;
  border-radius: 0;
  background: transparent !important;
  color: inherit !important;
  font-size: 16px;
  display: inline;
  flex-shrink: 0;
}
.btn--dark  { background: var(--text); color: #fff; }
.btn--dark:hover { box-shadow: 0 10px 28px rgba(31,18,9,0.28); }
.btn--light { background: #fff; color: var(--text); }
.btn--outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { box-shadow: 0 10px 28px rgba(198,85,45,0.35); }

/* ================================================================
   HEADER
   ================================================================ */
.header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(247,254,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(0,0,0,0.05);
}

.nav {
  height: 90px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--text);
}
.brand-mark {
  width: auto;
  height: 44px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 400;
}
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-tel {
  font-size: 14px; font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.nav-tel::before {
  content: '';
  width: 6px; height: 6px;
  background: #3ecf4a;
  border-radius: 50%;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(198,85,45,0.35); }
.nav-cta .arrow { font-size: 14px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.burger span { width: 16px; height: 1.5px; background: var(--text); transition: transform 0.25s ease; display: block; }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: rgba(247,254,255,0.98); }
.mobile-nav-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 20px 0 28px;
  display: grid; gap: 14px;
  font-size: 16px; color: var(--muted);
}
.mobile-nav-inner a { padding: 4px 0; }
.mobile-nav-inner .btn { margin-top: 6px; width: 100%; justify-content: center; }

.header.menu-open .mobile-nav { display: block; }
.header.menu-open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.header.menu-open .burger span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer-banner { height: 400px; overflow: hidden; position: relative; }
.footer-banner img { width: 100%; height: 100%; object-fit: cover; }
.footer-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
}

.footer { background: var(--text); color: #fff; padding: 68px 0 36px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 52px;
}
.footer .brand { color: #fff; margin-bottom: 20px; }
.footer .brand-mark {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.footer-desc { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.38); }
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  font-size: 13px; color: rgba(255,255,255,0.5);
  transition: background 0.2s;
}
.footer-social:hover { background: rgba(255,255,255,0.12); }

.footer-col h5 {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 2px; color: rgba(255,255,255,0.28);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.52); transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col p { font-size: 14px; color: rgba(255,255,255,0.52); line-height: 1.9; }
.footer-col a { color: rgba(255,255,255,0.52); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-bottom p, .footer-bottom a { font-size: 12px; color: rgba(255,255,255,0.24); }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: rgba(255,255,255,0.55); }

/* ================================================================
   CERTIFICATIONS STRIP
   ================================================================ */
.certs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.certs-inner { display: flex; align-items: center; gap: 52px; flex-wrap: wrap; }
.certs-label { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); white-space: nowrap; }
.cert-item { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; }
.cert-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--soft); display: grid; place-items: center;
  font-size: 16px;
}

/* ================================================================
   FLOATING CTA
   ================================================================ */
.floating-cta {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 50;
  display: none;
  flex-direction: column;
  gap: 8px; align-items: flex-end;
}
.float-btn {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px;
  border-radius: 999px; font-size: 13px; font-weight: 500;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.16);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit; cursor: pointer;
}
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }
.float-tel  { background: var(--white); color: var(--text); border: 1px solid var(--line); }
.float-devis { background: var(--navy); color: #fff; }

/* ================================================================
   FAQ
   ================================================================ */
.faq-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 80px; }
.faq-copy .heading { margin: 16px 0 16px; font-size: clamp(26px, 2.4vw, 44px); }
.faq-copy .lead { max-width: 220px; }
.accordion { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; min-height: 78px;
  background: transparent; border: none;
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  text-align: left; font-size: 18px;
  font-weight: 500; color: var(--text); padding: 0;
}
.faq-icon {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 300; color: #aaa;
  flex: 0 0 30px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { font-size: 15px; line-height: 1.7; color: var(--muted); padding-bottom: 24px; font-weight: 300; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--navy); color: #fff; border-color: var(--navy); }
.faq-item.open .faq-a { max-height: 300px; }

/* ================================================================
   BEFORE / AFTER SLIDER
   ================================================================ */
.ba-slide { display: none; }
.ba-slide.active { display: block; }
.ba-main {
  position: relative; border-radius: var(--r);
  overflow: hidden; cursor: ew-resize;
  user-select: none; touch-action: none;
}
.ba-before, .ba-after { position: absolute; inset: 0; }
.ba-before img, .ba-after img { 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: 1.5px; background: rgba(255,255,255,0.85);
  transform: translateX(-50%); z-index: 10; pointer-events: none;
}
.ba-handle-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 48px; height: 48px; background: #fff;
  border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  font-size: 15px; color: var(--text);
  pointer-events: all; cursor: ew-resize;
}
.ba-label {
  position: absolute; bottom: 20px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(0,0,0,0.48); backdrop-filter: blur(8px);
  color: #fff; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; z-index: 5;
}
.ba-label-before { left: 20px; }
.ba-label-after  { right: 20px; z-index: 6; }
.ba-hint {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  color: rgba(255,255,255,0.4); font-size: 12px;
  text-align: center; pointer-events: none; z-index: 4;
  transition: opacity 0.3s; margin-top: 34px; letter-spacing: 1px;
}
.ba-main.dragging .ba-hint { opacity: 0; }
.ba-meta { margin-top: 18px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.ba-meta-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 18px 20px;
}
.ba-meta-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.3); margin-bottom: 6px; }
.ba-meta-val { font-size: 17px; font-weight: 500; color: #fff; }

/* ================================================================
   BENTO GRID RÉALISATIONS
   ================================================================ */
.bento {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr;
  grid-template-rows: 300px 260px;
  gap: 14px;
}
.bento-card { position: relative; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.bento-card:first-child { grid-row: 1 / 3; }
.bento-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.bento-card:hover img { transform: scale(1.04); }
.bento-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 52%); }
.bento-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 22px; color: #fff; }
.bento-tag {
  display: inline-block; background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px); border-radius: 999px;
  padding: 3px 11px; font-size: 10px; letter-spacing: 1.2px;
  text-transform: uppercase; margin-bottom: 6px;
}
.bento-info h3 { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.bento-info p  { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 300; }

/* ================================================================
   CONTACT FORM
   ================================================================ */
.form-card {
  background: var(--white); border-radius: var(--r);
  padding: 48px; box-shadow: 0 2px 32px rgba(0,0,0,0.05);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.form-field input,
.form-field textarea,
.form-field select {
  border: none; border-bottom: 1px solid var(--line);
  height: 46px; font-size: 15px; color: var(--text);
  background: transparent; outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--navy); }
.form-field textarea { height: 100px; resize: vertical; padding-top: 12px; }
.form-full { grid-column: 1 / -1; }
.form-submit {
  margin-top: 28px; width: 100%; height: 54px;
  background: var(--navy); color: #fff;
  border: none; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(198,85,45,0.3); background: var(--navy-d); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1280px) {
  :root { --container: calc(100% - 56px); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card:first-child { grid-row: auto; }
}
@media (max-width: 1024px) {
  .nav-links, .nav-tel { display: none; }
  .burger { display: flex; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-right .nav-cta { display: none; }
  .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .ba-meta { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --container: calc(100% - 32px); }
  .nav { height: 76px; }
  .brand { font-size: 16px; }
  .section { padding: 72px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer { padding-bottom: 84px; }
  .real-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .bento { grid-template-columns: 1fr; }
  .bento-card { height: 240px; }
  .certs-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }
  .certs-label { grid-column: 1 / -1; }
  .cert-item { white-space: normal; }
  .floating-cta {
    bottom: 0;
    left: 0;
    right: auto;
    width: 100vw;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1.5px solid var(--line);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .float-btn {
    flex: 1;
    justify-content: center;
    border-radius: 14px;
    height: 52px;
    font-size: 15px;
    box-shadow: none;
  }
  .float-tel {
    border: 1.5px solid var(--line);
    background: var(--soft);
    color: var(--text);
  }
  .float-devis {
    box-shadow: none;
  }
}
