/* QUALIT LP — direction « bâche chantier » */
:root {
  --orange: #e05b11;
  --orange-deep: #c94f0e;
  --red: #b91e1a;
  --gray: #9d9d9e;
  --ink: #161618;
  --bg: #101113;
  --bg-soft: #18191c;
  --paper: #f4f4f5;
  --white: #ffffff;
  --line: rgba(22, 22, 24, 0.12);
  --line-inv: rgba(255, 255, 255, 0.12);
  --brand: linear-gradient(135deg, #e05b11 0%, #b91e1a 100%);
  --display: "Outfit", sans-serif;
  --body: "Source Sans 3", sans-serif;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --max: 68rem;
  --header-h: 3.75rem;
  --radius: 0.2rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  font-weight: 800;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  max-width: 18ch;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: var(--gutter);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.lede {
  max-width: 34ch;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--ink) 64%, transparent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.15rem;
  padding: 0.75rem 1.3rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 14px 32px rgba(224, 91, 17, 0.35);
}

.btn--primary:hover {
  background: var(--orange-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.section--light .btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.section--light .btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn--block {
  width: 100%;
}

/* Header — bandeau sombre type bâche */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(16, 17, 19, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand img {
  height: 2.45rem;
  width: auto;
  object-fit: contain;
}

.header-cta {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  background: var(--orange);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--orange-deep);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out both;
}

@keyframes heroZoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1.04);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 11, 12, 0.22) 0%,
      rgba(10, 11, 12, 0.05) 32%,
      rgba(10, 11, 12, 0.42) 62%,
      rgba(10, 11, 12, 0.94) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 1rem) 0 1.25rem;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-brand {
  width: clamp(6.5rem, 20vw, 9.5rem);
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5));
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.35em;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.5);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  max-width: 38ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.02rem;
  line-height: 1.45;
}

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}

.google-rating:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.google-rating__g {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: #f1f3f4;
}

.google-rating__score {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.google-rating__stars {
  color: #fbbc05;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.google-rating__label {
  padding-left: 0.55rem;
  border-left: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  white-space: nowrap;
}

@media (max-width: 420px) {
  .google-rating__label {
    display: none;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 900px) {
  .hero-actions {
    padding-bottom: 0.75rem;
  }
}

.hero-actions .btn--primary {
  flex: 1 1 15rem;
}

@media (max-width: 640px) {
  .cta-phone {
    display: none;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--light {
  background: var(--paper);
  color: var(--ink);
}

.section--dark {
  background: var(--bg);
  color: #fff;
}

.section--dark .lede {
  color: rgba(255, 255, 255, 0.7);
}

.section-head {
  margin-bottom: clamp(1.85rem, 4vw, 2.85rem);
}

.section-head h2 {
  position: relative;
  padding-bottom: 0.7rem;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: 0.7rem;
  background: var(--brand);
}

/* Services */
.services-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .services-layout {
    grid-template-columns: minmax(14rem, 0.85fr) 1.35fr;
    gap: 3rem;
    align-items: start;
  }

  .services-layout__intro {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    margin-bottom: 0;
  }
}

.services {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }

  .services__wide {
    grid-column: 1 / -1;
  }
}

.services li {
  position: relative;
  padding: 1.15rem 1.2rem 1.2rem 1.25rem;
  background: color-mix(in srgb, var(--white) 70%, var(--paper));
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand);
}

.services li:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.services h3 {
  margin: 0 0 0.35em;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.services p {
  margin: 0;
  max-width: 42ch;
  font-size: 0.98rem;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}

/* Benefits */
.benefit-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .benefit-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.benefit-row article {
  padding-top: 1rem;
  border-top: 3px solid transparent;
  border-image: var(--brand) 1;
}

.benefit-row h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.benefit-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.mid-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.75rem;
}

/* Avis */
.section--avis {
  background: var(--bg-soft);
  color: #fff;
  padding-bottom: 0;
  overflow: hidden;
}

.avis-scoreboard {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.85rem;
  align-items: end;
}

@media (min-width: 720px) {
  .avis-scoreboard {
    grid-template-columns: 1fr auto;
  }
}

.avis-scoreboard h2 {
  margin: 0;
  color: #fff;
}

.avis-scoreboard h2::after {
  content: none;
}

.avis-scoreboard__badge {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.05rem 1.25rem;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.avis-scoreboard__g {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: #f1f3f4;
  flex-shrink: 0;
}

.avis-scoreboard__score {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.avis-scoreboard__score span {
  font-size: 0.42em;
  font-weight: 600;
  color: var(--gray);
}

.avis-scoreboard__stars {
  margin: 0.25rem 0 0.15rem;
  color: #fbbc05;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.avis-scoreboard__caption {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

.avis-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  padding-bottom: clamp(2.75rem, 5vw, 4rem);
}

.avis-marquee__track {
  display: flex;
  gap: 0.85rem;
  width: max-content;
  animation: avisScroll 70s linear infinite;
}

.avis-marquee:hover .avis-marquee__track {
  animation-play-state: paused;
}

@keyframes avisScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.avis-card {
  flex: 0 0 min(21.5rem, 82vw);
  padding: 1.3rem 1.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-inv);
  border-radius: var(--radius);
}

.avis-card__stars {
  display: flex;
  gap: 0.12rem;
  margin-bottom: 0.7rem;
  color: #fbbc05;
}

.avis-card__stars svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.avis-card__text {
  margin-bottom: 0.9rem;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.88);
}

.avis-card__author {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.avis-card__date {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.82rem;
  color: var(--gray);
}

.avis-card__source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--gray);
}

.avis-card__source svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* Devis */
.devis-layout {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 860px) {
  .devis-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.75rem;
    align-items: start;
  }
}

.reassure {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.reassure li {
  position: relative;
  padding-left: 1.25rem;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
}

.reassure li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brand);
}

.devis-form {
  padding: 0;
  background: transparent;
  border: 0;
  min-height: 12rem;
}

.devis-form [data-paperform-id] {
  width: 100%;
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line-inv);
  padding: 0 0 calc(5.25rem + env(safe-area-inset-bottom));
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bar {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.1rem;
  padding: 0.85rem 0;
  text-align: center;
}

.footer-bar a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-bar a:hover {
  color: var(--orange);
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-credit img {
  height: 0.9rem;
  width: auto;
  opacity: 0.85;
}

@media (min-width: 900px) {
  .site-footer {
    padding-bottom: 0;
  }
}

/* Float call */
.float-call {
  position: fixed;
  z-index: 60;
  right: var(--gutter);
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3.15rem;
  padding: 0.7rem 1.15rem;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(224, 91, 17, 0.42);
}

.float-call:hover {
  background: var(--orange-deep);
  color: #fff;
}

.float-call__icon {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
  animation: pulse 1.8s ease infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

@media (min-width: 900px) {
  .float-call {
    display: none;
  }
}

/* Inner pages */
.page-hero {
  padding: calc(var(--header-h) + 2.25rem) var(--gutter) 1.75rem;
  background: var(--bg);
  color: #fff;
}

.page-hero h1 {
  color: #fff;
}

.is-legal .site-header,
.page-merci .site-header {
  background: rgba(16, 17, 19, 0.96);
}

.legal {
  max-width: 46rem;
  padding-bottom: 2.5rem;
}

.legal h2 {
  margin-top: 1.75rem;
  font-size: 1.45rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 1em;
}

.merci-box {
  max-width: 34rem;
  padding: 2.5rem var(--gutter) 3.5rem;
}

.merci-box .hero-actions {
  margin-top: 1.25rem;
  padding-bottom: 0;
}

.page-merci .merci-box .btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.page-merci .merci-box .btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .hero-media img,
  .avis-marquee__track,
  .float-call__icon,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
