/* V4 wow — peau 2026. Couleurs / logo / textes inchangés. */

:root {
  --text: #555;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --rail: 56px;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.65;
  color: var(--text);
}

p {
  line-height: 1.65;
}

.welcome-content p,
.call-out-section p,
.mentions-section p {
  max-width: 68ch;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.header-section {
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.header-section.is-compact .logo-block {
  padding: 10px 0;
}

.header-section.is-compact .logo-block .logo img {
  max-height: 56px;
}

.slider-section {
  min-height: 480px;
}

.slider .slide img {
  min-height: 480px;
  border: 0;
}

.ow-section {
  padding-block: clamp(2rem, 5vw, 5rem);
}

.service-box,
.welcome-box,
.avis-card,
.statistics-box,
.contact-detail-box {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-box {
  overflow: hidden;
  background: #fff;
}

.service-box:hover,
.welcome-box:hover,
.avis-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.welcome-section {
  background: var(--soft);
}

.entreprise-section {
  background: #fffaf0;
}

.avis-card {
  border-left-width: 4px;
}

.contact-form input[type="submit"],
.main-contact-form .btn {
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form input[type="submit"]:hover,
.main-contact-form .btn:hover {
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ---------- Sticky rail (desktop) ---------- */
.sticky-rail {
  display: none;
}

.sticky-bar {
  display: none;
}

@media (min-width: 900px) {
  body {
    padding-right: var(--rail);
  }

  .sticky-rail {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: var(--rail);
    z-index: 40;
  }

  .sticky-rail .sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--rail);
    height: var(--rail);
    min-width: 44px;
    min-height: 44px;
    border: 0;
    cursor: pointer;
    color: #fff;
    padding: 0;
    text-decoration: none;
  }

  .sticky-rail .sticky-wa { background: #25d366; }
  .sticky-rail .sticky-tel { background: var(--black); }
  .sticky-rail .sticky-devis { background: var(--yellow); color: #231f20; }

  .sticky-rail .sticky-btn:hover {
    filter: brightness(1.08);
  }

  .sticky-rail .sticky-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

/* ---------- Barre basse (mobile) ---------- */
@media (max-width: 899px) {
  body {
    padding-bottom: calc(var(--rail) + env(safe-area-inset-bottom, 0px));
  }

  .sticky-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--rail) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 100;
    background: var(--black);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
  }

  .sticky-bar .sticky-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: "Cabin", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
  }

  .sticky-bar .sticky-wa { color: #25d366; }
  .sticky-bar .sticky-devis { color: var(--yellow); }

  .sticky-bar .sticky-label {
    display: block;
    line-height: 1;
  }

  .slider-section,
  .slider .slide img {
    min-height: 320px;
  }

  .slider .slide img {
    height: 320px;
  }

  .slider-form-wrap {
    position: static;
    top: auto;
  }
}

.sticky-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

/* ---------- Drawer devis ---------- */
.devis-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 31, 32, 0.45);
  z-index: 45;
}

.devis-overlay[hidden],
.devis-drawer[hidden] {
  display: none;
}

.devis-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  z-index: 50;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  padding: 24px 20px 40px;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.28s ease;
}

.devis-drawer .drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: var(--heading);
}

.devis-drawer h2 {
  font-family: "Cabin", sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  color: #231f20;
  background: var(--yellow);
  margin: 40px 0 0;
  padding: 16px 12px;
}

.devis-drawer .drawer-form {
  background: var(--black);
  padding: 20px 0 24px;
  border-radius: var(--radius);
}

.devis-drawer .drawer-form input[type="text"],
.devis-drawer .drawer-form textarea {
  width: calc(100% - 50px);
  margin-left: 25px;
  margin-right: 25px;
}

.devis-drawer .drawer-form .row-2 {
  padding: 0 25px;
}

.devis-drawer .drawer-form .row-2 input[type="text"] {
  width: 48%;
  margin-left: 0;
  margin-right: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.is-in,
  .service-box,
  .welcome-box,
  .avis-card,
  .header-section,
  .devis-drawer,
  .contact-form input[type="submit"],
  .main-contact-form .btn {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
