/* =============================================================
   RÉNOVATION LABRIE v2 — home.css
   ============================================================= */

/* ── HERO ── full-width bg image, overlay sombre, texte gauche */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(20,18,15,.82) 0%,
    rgba(20,18,15,.65) 55%,
    rgba(20,18,15,.38) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  padding-block: calc(var(--nav-h) + 48px) 56px;
}

/* Badge RBQ */
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .6s .05s var(--ease) forwards;
}
.hero__chip-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:.25; }
}

/* Titre — une seule ligne max, taille contrôlée */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.022em;
  color: #fff;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp .75s .12s var(--ease) forwards;
}
.hero__title em {
  font-style: normal;
  color: var(--orange-lt);
}

.hero__desc {
  font-size: .97rem;
  color: rgba(255,255,255,.68);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .75s .22s var(--ease) forwards;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp .75s .30s var(--ease) forwards;
}

/* Stats — 3 blocs inline */
.hero__stats {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  opacity: 0;
  animation: fadeUp .75s .40s var(--ease) forwards;
}
.hero__stat {
  padding: 12px 20px;
  border-right: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.hero__stat:last-child { border-right: none; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
}
.hero__stat-lbl {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
  margin-top: 3px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── SERVICE CARDS (home) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.svc-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--border);
  cursor: default;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.svc-card:hover {
  box-shadow: 0 12px 40px rgba(28,26,23,.1);
  transform: translateY(-4px);
  border-color: var(--orange-border);
}

.svc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.55) saturate(.7);
  transition: transform .7s var(--ease), filter .4s;
}
.svc-card:hover .svc-card__img {
  transform: scale(1.05);
  filter: brightness(.45) saturate(.6);
}

.svc-card__body {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,26,23,.95) 0%, rgba(28,26,23,.1) 60%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.svc-card__icon {
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .88rem;
  margin-bottom: 10px;
  transition: transform .3s;
}
.svc-card:hover .svc-card__icon { transform: scale(1.08) rotate(-3deg); }

.svc-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}
.svc-card--feat .svc-card__title { font-size: 1.6rem; }

.svc-card__desc {
  font-size: .83rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 380px;
}
.svc-card__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.svc-card__tags .tag {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.65);
  border-radius: 100px;
  font-size: .65rem;
}

/* Grid positioning */
.svc-card--feat { grid-column: span 7; min-height: 480px; }
.svc-card--sm   { grid-column: span 5; min-height: 230px; }
.svc-card--md   { grid-column: span 6; min-height: 280px; }

/* ── GALLERY PREVIEW (home) ── */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 300px 200px;
  gap: 8px;
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
}
.gal-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.88) saturate(.9);
  transition: transform .6s var(--ease), filter .3s;
}
.gal-item:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1.1);
}
.gal-item__cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(28,26,23,.85) 0%, transparent 100%);
  padding: 22px 14px 10px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s, transform .25s;
}
.gal-item:hover .gal-item__cap { opacity: 1; transform: none; }
.gal-item:nth-child(1) { grid-column: span 7; }
.gal-item:nth-child(2) { grid-column: span 5; }
.gal-item:nth-child(3) { grid-column: span 4; }
.gal-item:nth-child(4) { grid-column: span 4; }
.gal-item:nth-child(5) { grid-column: span 4; }

/* ── HOME QUOTE FORM ── */
.home-quote__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.home-quote__form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 4px 32px rgba(28,26,23,.06);
}
.home-quote__form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.home-quote__form-sub {
  font-size: .84rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.quote-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 32px;
}
.quote-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-secondary);
}
.quote-feature i { color: var(--orange); font-size: .82rem; width: 16px; flex-shrink: 0; }
.quote-contacts { display: flex; flex-direction: column; gap: 12px; }

/* ── TESTIMONIALS (home) ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .3s, transform .3s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(28,26,23,.08);
  transform: translateY(-3px);
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: #f5a623;
  font-size: .82rem;
}
.testimonial-card__quote {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.testimonial-card__name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
}
.testimonial-card__loc {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── RESPONSIVE HOME ── */
/* ── SECTION HEADER (flex : titre + lien droite) ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}

/* ── WHY INTRO (2 colonnes) ── */
.why-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 32px;
}
.why-intro__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(28,26,23,.1);
}
.why-intro__img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  filter: brightness(.8) saturate(.85);
  display: block;
}

/* ── RESPONSIVE ── */
@media (max-width: 1050px) {
  .services-grid .svc-card--feat { grid-column: span 12; min-height: 360px; }
  .services-grid .svc-card--sm { grid-column: span 12; min-height: 280px; }
  .services-grid .svc-card--md { grid-column: span 6; }
  .home-quote__grid { grid-template-columns: 1fr; gap: 48px; }
  .why-intro { grid-template-columns: 1fr; gap: 32px; }
  .why-intro__img { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
}

@media (max-width: 820px) {
  .hero__content { max-width: none; }
  .hero__stats { display: none; }
}

@media (max-width: 640px) {
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }

  .services-grid .svc-card--sm,
  .services-grid .svc-card--md { grid-column: span 12; min-height: 220px; }

  .gallery-preview {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gal-item:nth-child(1) { grid-column: span 2; height: 220px; }
  .gal-item:nth-child(2) { grid-column: span 2; height: 180px; }
  .gal-item:nth-child(3),
  .gal-item:nth-child(4) { grid-column: span 1; height: 160px; }
  .gal-item:nth-child(5) { grid-column: span 2; height: 160px; }

  .home-quote__form-card { padding: 24px 18px; }
  .section-header { flex-direction: column; align-items: flex-start; }
}
