/* ===================================================
   G.D NETTOYAGE - pages.css
   Services, zone, avis, contact. Les styles communs sont dans ui.css.
   =================================================== */

/* ===================================================
   SERVICES
   =================================================== */
.s-section { padding-bottom: clamp(48px, 8vw, 96px); }

.s-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
}

.s-item {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}
.s-item + .s-item { border-top: 1px solid var(--line); }

.s-name {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.s-text {
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 24px;
}
.s-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.s-tags li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

.s-inline { display: none; }

/* Photo fixe qui change au fil des services */
.s-sticky {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  height: calc(100vh - var(--header-h) - 48px);
  align-self: start;
}
.s-frames {
  position: relative;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
}
.s-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 0 100% 0);
  /* l'ancienne photo reste visible le temps que la nouvelle la recouvre */
  transition: clip-path 0s 1.1s, z-index 0s 1.1s;
}
.s-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease-out);
}
.s-frame.is-active {
  z-index: 2;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-wipe);
}
.s-frame.is-active img { transform: scale(1); }

/* La lame suit l'essuyage */
.s-frame::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 5px;
  background: var(--ink);
  border-bottom: 3px solid var(--aqua);
  opacity: 0;
}
.s-frame.is-active::after { animation: s-blade 1.1s var(--ease-wipe); }
@keyframes s-blade {
  from { top: 0; opacity: 1; }
  85% { opacity: 1; }
  to { top: 100%; opacity: 0; }
}

/* Avant / après */
.s-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.s-compare { margin: 0; }

/* Façon de travailler */
.s-why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(24px, 4vw, 48px);
}
.s-why div { padding-top: 20px; border-top: 1px solid var(--line); }
.s-why dt { font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.s-why dd { color: var(--ink-soft); line-height: 1.6; }

/* ===================================================
   ZONE
   =================================================== */
.z-section { padding-bottom: clamp(72px, 10vw, 128px); }
.z-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.z-map {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
}
.z-map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(0.4) contrast(1.02);
}
.z-points { margin: 8px 0 28px; }
.z-points div { padding: 18px 0; border-top: 1px solid var(--line); }
.z-points div:last-child { border-bottom: 1px solid var(--line); }
.z-points dt { font-weight: 700; margin-bottom: 4px; }
.z-points dd { color: var(--ink-soft); line-height: 1.6; }

/* ===================================================
   AVIS
   =================================================== */
.a-section { padding-bottom: clamp(72px, 10vw, 128px); }

.a-count { margin-top: 16px; color: var(--ink-soft); line-height: 1.6; }
.a-count .h-link { margin-left: 4px; }

.a-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.a-review {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--mist);
  border-radius: var(--radius);
}
.a-review.is-big { grid-row: span 2; }
/* Avis arrivés depuis Facebook */
.a-review.is-new { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.a-review.is-new.is-shown { opacity: 1; transform: none; }

.a-head { display: flex; align-items: center; gap: 12px; }
.a-avatar {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.a-who { line-height: 1.3; }
.a-who strong { display: block; }
.a-who time { font-size: 0.9rem; color: var(--ink-soft); }
.a-tag {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--aqua-deep);
  background: #fff;
  white-space: nowrap;
}

.a-text { margin: 0; }
.a-text p {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}
.a-review.is-big .a-text p {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.a-reply {
  padding-left: 16px;
  border-left: 3px solid var(--aqua);
  color: var(--ink-soft);
  line-height: 1.5;
}
.a-reply span { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }

.a-leave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.a-leave .h-title { margin-bottom: 12px; }

/* ===================================================
   CONTACT
   =================================================== */
.c-section { padding-bottom: clamp(72px, 10vw, 128px); }
.c-layout {
  --c-label-w: 140px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.c-list { border-top: 1px solid var(--line); }
.c-list li { position: relative; }

.c-row {
  display: grid;
  grid-template-columns: var(--c-label-w) minmax(0, 1fr) auto;
  grid-template-areas:
    "label value go"
    ".     note  go";
  column-gap: 20px;
  row-gap: 6px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--aqua), var(--aqua)) 0 100% / 0% 2px no-repeat;
  transition: background-size 0.7s var(--ease-out);
}
.c-row:hover, .c-row:focus-visible { background-size: 100% 2px; }

.c-label { grid-area: label; font-size: 0.95rem; color: var(--ink-soft); }
.c-value {
  grid-area: value;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  transition: transform 0.5s var(--ease-out);
}
.c-value-sm { font-size: clamp(1.1rem, 2.1vw, 1.6rem); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.c-row:hover .c-value { transform: translateX(6px); }
.c-note { grid-area: note; font-size: 0.95rem; color: var(--ink-soft); }
.c-go {
  grid-area: go;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.c-row:hover .c-go { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Bouton « Copier l'adresse » à la place de la note */
.c-copy {
  position: absolute;
  left: calc(var(--c-label-w) + 20px);
  bottom: 26px;
  z-index: 1;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--aqua-deep);
  cursor: pointer;
  border-bottom: 1px solid currentColor;
}
.c-copy.is-done { color: var(--ink); border-color: transparent; }

.c-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.c-facts dt { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 4px; }
.c-facts dd { font-weight: 700; }

.c-photo {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
}
.c-photo img {
  width: 100%; height: 115%;
  object-fit: cover;
  object-position: 50% 20%;
  will-change: transform;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 968px) {
  .s-layout, .z-layout, .c-layout { grid-template-columns: 1fr; }
  .s-sticky { display: none; }
  .s-item { min-height: 0; padding: 40px 0; }
  .s-inline {
    display: block;
    margin: 0 0 24px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .s-inline img { width: 100%; height: 100%; object-fit: cover; }
  .s-compare-grid { grid-template-columns: 1fr; max-width: 460px; }
  .s-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-photo { max-width: 460px; aspect-ratio: 4 / 5; }
  .a-grid { grid-template-columns: 1fr; }
  .a-review.is-big { grid-row: auto; }
}

@media (max-width: 640px) {
  .s-why, .c-facts { grid-template-columns: 1fr; gap: 16px; }
  .c-layout { --c-label-w: 0px; }
  .c-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label go"
      "value go"
      "note  go";
    padding: 22px 0;
  }
  .c-copy { left: 0; bottom: 20px; }
  .a-leave .h-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .s-frame, .s-frame.is-active { transition: none; }
  .s-frame img { transform: none; transition: none; }
  .s-frame.is-active::after { animation: none; }
  .c-value { transition: none; }
}

/* ===================================================
   AVIS : transparence (Code de la consommation)
   =================================================== */
.a-note {
  max-width: 72ch;
  margin-top: clamp(32px, 5vw, 48px);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ===================================================
   MENTIONS LÉGALES
   =================================================== */
.l-section { padding-bottom: clamp(72px, 10vw, 128px); }
.l-wrap { max-width: 960px; }
.l-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.l-block:first-child { border-top: 1px solid var(--line); }
.l-title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.l-body p { color: var(--ink-soft); line-height: 1.65; }
.l-body p + p { margin-top: 8px; }
.l-body strong { color: var(--ink); }
.l-body a { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--aqua); }
.l-body a:hover { color: var(--aqua-deep); }

@media (max-width: 640px) {
  .l-block { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
}
