/* Section resultats concrets ARTIPOS.
   Utilisee par les pages metiers pour garder le meme layout et limiter les styles locaux. */

.results-section {
  --results-accent-rgb: var(--results-page-accent-rgb, 232, 98, 42);
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(500px, 0.65fr) minmax(0, 1.35fr);
  gap: 100px;
  align-items: stretch;
}

.results-visual {
  position: relative;
  align-self: stretch;
  min-height: 0;
}

.results-visual-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #E8E7E4;
  border-radius: var(--radius-card);
  background: #fff;
}

.results-visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-light.results-section .results-testimonial-card,
.results-section .results-testimonial-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  top: auto;
  transform: none;
  z-index: 2;
  max-width: none;
  width: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #E8E7E4;
  border-radius: var(--radius-card);
  padding: 20px 18px;
  box-shadow: 0 18px 36px rgba(17, 17, 16, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-light.results-section .results-testimonial-card:hover,
.results-section .results-testimonial-card:hover {
  border-color: #E8E7E4;
  box-shadow: 0 18px 36px rgba(17, 17, 16, .12);
  transform: none;
}

.results-testimonial-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.results-testimonial-head .google-logo {
  margin: 0;
}

.results-testimonial-stars {
  color: var(--primary);
  letter-spacing: 2px;
  font-size: 0.8rem;
  line-height: 1;
}

.results-section .results-testimonial-quote {
  margin-bottom: 18px;
  color: #787773;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.55;
  text-align: left;
}

.results-section .results-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #E8E7E4;
  padding-top: 12px;
}

.section-light.results-section .results-testimonial-avatar,
.results-section .results-testimonial-avatar {
  width: 44px;
  height: 44px;
  margin: 0;
  margin-bottom: 0;
  border-radius: 50%;
  background: rgba(var(--results-accent-rgb), .08);
  border-color: rgba(var(--results-accent-rgb), .18);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.results-section .results-testimonial-name {
  color: #111110;
  font-weight: 600;
  font-size: 0.9rem;
}

.results-section .results-testimonial-role {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.results-copy .section-header {
  text-align: left;
  max-width: none;
  margin: 0 0 40px;
}

.results-section .section-header {
  margin-bottom: 40px;
}

.results-section .section-header .h2 {
  margin-top: 80px;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.12;
}

.results-section .results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.result-card {
  padding: 32px 32px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.025) 100%);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}

.result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--results-accent-rgb), .22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.result-value {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.result-card .subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.65;
}

.result-card .subtitle strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
}

.result-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.42);
  font-size: 0.78rem;
  line-height: 1.55;
}

.section-light.results-section .result-card {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid #E8E7E4;
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(17,17,16,.03);
  text-align: left;
  align-items: flex-start;
  gap: 0;
}

.section-light.results-section .result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(var(--results-accent-rgb), .9);
}

.section-light.results-section .result-card:hover {
  border-color: rgba(var(--results-accent-rgb), .22);
  box-shadow: 0 8px 24px rgba(var(--results-accent-rgb), .08);
  transform: none;
}

.section-light.results-section .result-value {
  color: #111110;
  font-size: clamp(1.55rem, 2.3vw, 1.9rem);
  margin-bottom: 8px;
  line-height: 0.98;
}

.section-light.results-section .result-card .subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.52;
}

.section-light.results-section .result-card .subtitle strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 4px;
  color: #111110;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.section-light.results-section .result-value-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  padding: .42rem .85rem;
  border-radius: 100px;
  background: #DCFCE7;
  color: #166534;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.section-light.results-section .result-note {
  margin-top: 16px;
  padding: 10px 12px;
  border-top: none;
  border-radius: 10px;
  background: #F9F8F6;
  color: #AEAAA4;
  font-size: 0.7rem;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .results-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .results-visual {
    position: static;
    min-height: 0;
    display: grid;
    gap: 16px;
  }

  .results-visual-frame {
    position: static;
    inset: auto;
    height: auto;
  }

  .results-visual-frame img {
    height: auto;
  }

  .section-light.results-section .results-testimonial-card,
  .results-section .results-testimonial-card {
    position: static;
    transform: none;
    max-width: none;
    width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 992px) {
  .results-section .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .results-section {
    overflow-x: clip;
  }

  .results-layout > *,
  .results-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .results-layout {
    gap: 20px;
  }

  .results-visual {
    display: contents;
  }

  .results-copy {
    display: contents;
    order: 2;
  }

  .results-copy .section-header {
    display: contents;
    margin-bottom: 0;
  }

  .results-copy .section-header .section-label {
    order: 1;
    margin-bottom: 0;
  }

  .results-visual-frame {
    order: 2;
    aspect-ratio: 4 / 5;
    height: auto;
    margin: 0 0 16px;
    border-radius: var(--radius-card);
  }

  .results-copy .section-header .h2 {
    order: 3;
  }

  .results-section .results-grid {
    order: 4;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-light.results-section .results-testimonial-card,
  .results-section .results-testimonial-card {
    order: 5;
    width: 100%;
    margin-top: 4px;
    padding: 16px 14px;
  }

  .results-visual-frame img {
    height: 100%;
    object-position: center top;
  }

  .section-light.results-section .result-card {
    padding: 18px 16px;
  }

  .section-light.results-section .result-note {
    margin-top: 12px;
    padding: 8px 10px;
  }
}

@media (max-width: 420px) {
  .results-testimonial-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
