/* ==========================================================================
   HOME.CSS — page d'accueil
   ========================================================================== */

.hero {
  padding: 160px 24px 80px;
  background: var(--color-beige);
  position: relative;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero__blob--a {
  top: -10%;
  left: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(43, 49, 232, 0.35), transparent 70%);
  animation: blob-float-a 20s ease-in-out infinite;
}

.hero__blob--b {
  bottom: -15%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(122, 43, 232, 0.3), transparent 70%);
  animation: blob-float-b 24s ease-in-out infinite;
}

@keyframes blob-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -40px) scale(1.15); }
}

@keyframes blob-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.1); }
}

.hero__grid {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.hero__rating {
  font-size: 14px;
  color: var(--color-text-faint);
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 380px;
}

.hero__image-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 12px 30px -10px rgba(11, 11, 14, 0.25);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: rgba(11, 11, 14, 0.25);
  overflow: hidden;
}

.hero__scroll-cue::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  animation: scroll-cue 2s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(16px); }
}

/* -------------------- Marquee clients -------------------- */
.marquee {
  padding: 44px 0;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}

.marquee__item {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: rgba(11, 11, 14, 0.35);
  white-space: nowrap;
}

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

/* -------------------- Bento services -------------------- */
.bento__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}

.bento__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}

.bento__item--wide2x2 { grid-column: span 2; grid-row: span 2; }
.bento__item--wide2x1 { grid-column: span 2; grid-row: span 1; }

.bento__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bento__content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 180px;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento__num {
  font-family: var(--font-heading);
  font-size: 13px;
  opacity: 0.65;
}

.bento__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
}

.bento__desc {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.85;
}

.bento__more {
  margin-top: var(--space-sm);
  font-size: 14px;
  font-weight: 600;
}

/* -------------------- Portfolio -------------------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-rows: 300px;
  gap: 20px;
}

.portfolio__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}

.portfolio__item--wide2x2 { grid-column: span 2; grid-row: span 2; }
.portfolio__item--wide2x1 { grid-column: span 2; grid-row: span 1; }

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 11, 14, 0.88));
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  pointer-events: none;
}

.portfolio__client {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-white);
}

.portfolio__tag {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* -------------------- Pourquoi nous / compteurs -------------------- */
.why-us__grid {
  margin-bottom: var(--space-xl);
}

.counters__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
}

.counter {
  text-align: center;
  min-width: 160px;
}

.counter__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--color-primary);
}

.counter__label {
  font-size: 14px;
  color: var(--color-text-faint);
  margin-top: var(--space-xs);
}

/* -------------------- Témoignages -------------------- */
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial__quote {
  font-size: 17px;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
}

.testimonial__role {
  font-size: 13px;
  color: var(--color-text-faint);
}
