/*
 * REKOMU HOME V2
 * CSS volontairement isolé : il ne s’applique qu’à la page qui charge home_v2.css
 */

.home-v2 {
  --v2-purple: #8077f1;
  --v2-purple-dark: #5F3B78;
  --v2-purple-soft: #F3EDF7;
  --v2-text: #171717;
  --v2-muted: #777;
  --v2-line: #e9e4eb;

  color: var(--v2-text);
  font-family: 'Outfit', sans-serif;

  background-color: #faf8f6;
  background-image:
    linear-gradient(rgba(250, 248, 246, 0.88), rgba(250, 248, 246, 0.88)),
    url('https://www.transparenttextures.com/patterns/paper-fibers.png');
  background-repeat: repeat;
}

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

.home-v2 a {
  color: inherit;
}

/* ---------- HEADER : restylé uniquement sur home_v2 ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 22px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #efeaf3;
  box-shadow: 0 6px 20px rgba(29, 21, 38, 0.04);
}

.header-left a {
  display: flex;
  align-items: center;
}

.logo {
  max-width: 128px;
  height: auto;
}

.search-header {
  display: none;
}

.header-right {
  gap: 14px;
}

.icon-connexion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-connexion img {
  width: 24px;
  height: 24px;
  opacity: 0.95;
}

.burger-icon {
  color: #1d1b1d;
  background: #f5f2f7;
  box-shadow: none;
  padding: 7px 10px;
}

.burger-icon:hover {
  background: #ece4f7;
}

.burger-dropdown {
  top: 62px;
}

/* ---------- HERO ---------- */

.home-v2-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 28px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  gap: 42px;
  align-items: center;
}

.home-v2-hero__content h1 {
  margin: 0 0 22px;
  color: #161616;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -2.3px;
}

.home-v2-hero__content h1 span {
  color: var(--v2-purple);
}

.home-v2-search {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid #dfdcdf;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(28, 21, 31, .06);
}

.home-v2-search button {
  flex: 0 0 auto;
  padding: 5px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 18px;
  cursor: pointer;
}

.home-v2-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--v2-text);
  font: inherit;
  font-size: 15px;
}

.home-v2-search input::placeholder {
  color: #9a969b;
}

.home-v2-categories {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  padding: 2px 0 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-v2-categories::-webkit-scrollbar,
.home-v2-creators__scroll::-webkit-scrollbar {
  display: none;
}

.home-v2-category {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid #e7e3e8;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(24, 18, 26, .04);
  color: #333;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease;
}

.home-v2-category:hover {
  background: var(--v2-purple-soft);
  border-color: #d9c1fa;
}

.home-v2-hero__visual {
  min-width: 0;
}

.home-v2-hero__photo-card {
  position: relative;
  min-height: 340px;
  padding: 36px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 28px;
  background: #ddd;
  box-shadow: 0 18px 45px rgba(32, 25, 26, .11);
}

.home-v2-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-v2-hero__photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,11,19,0.04) 0%, rgba(15,11,19,0.24) 100%),
    linear-gradient(90deg, rgba(36,28,36,0.45) 0%, rgba(36,28,36,0.06) 55%, rgba(36,28,36,0.25) 100%);
}

.home-v2-hero__scribble {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.96);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 33px;
  font-style: italic;
  text-align: right;
  line-height: 1.06;
  text-shadow: 0 3px 10px rgba(0,0,0,.14);
  margin-left: auto;
}

.home-v2-hero__bubble {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.93);
  color: #252125;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-4deg);
}

/* ---------- SECTIONS ---------- */

.home-v2-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 28px;
}

.home-v2-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.home-v2-section__head h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #171717;
}

/* ---------- CREATEURS ---------- */

.home-v2-creators {
  border-top: 1px solid #f0edef;
  border-bottom: 1px solid #f0edef;
}

.home-v2-creators__scroll {
  display: flex;
  gap: clamp(20px, 3.5vw, 48px);
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.home-v2-creator {
  flex: 0 0 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-snap-align: start;
  text-decoration: none;
  text-align: center;
}

.home-v2-creator__avatar {
  width: 86px;
  height: 86px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, #a968ff, #e3c7ff);
}

.home-v2-creator__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

.home-v2-creator strong {
  width: 100%;
  margin-top: 8px;
  overflow: hidden;
  color: #242124;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- PRODUITS ---------- */

.home-v2-products {
  padding-top: 38px;
}

.home-v2-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}

/* ---------- CARTE PRODUIT ---------- */

.reko-card-v2 {
  min-width: 0;
  overflow: hidden;
  position: relative;
  background: #fff;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(35, 26, 37, .045);
  transition: transform .2s ease, box-shadow .2s ease;
}

.reko-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(35, 26, 37, .08);
}

.reko-card-v2__media {
  position: relative;
  aspect-ratio: 1 / .94;
  overflow: hidden;
  background: #f5f3f4;
}

.reko-card-v2__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.reko-card-v2__media .reko-card-v2__image-link img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  transition: transform .3s ease;
}

.reko-card-v2:hover .reko-card-v2__image-link img {
  transform: scale(1.025);
}

.reko-card-v2__media {
  position: relative;
  aspect-ratio: 1 / .94;
  overflow: hidden;
  background: #f5f3f4;
}

.reko-card-v2__like-wrap {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.reko-card-v2__like-wrap .like-form {
  position: static !important;
  width: 100%;
  height: 100%;
  margin: 0;
}

.reko-card-v2__like-wrap .like-btn {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #252225;
}

.reko-card-v2__like-wrap .reko-heart-full {
  color: var(--v2-purple);
}


.reko-card-v2__promo {
  position: absolute;
  left: 9px;
  bottom: 9px;
  z-index: 4;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--v2-purple-dark);
  font-size: 10px;
  font-weight: 600;
}

.reko-card-v2__body {
  position: relative;
  padding: 28px 12px 12px;
}

.reko-card-v2__author {
  position: absolute;
  top: -10px;
  left: 10px;
  max-width: calc(100% - 20px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  color: #292529;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,.98);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.reko-card-v2__author img {
  flex: 0 0 auto;
  width: 30px !important;
  height: 30px !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  object-fit: cover;
}

.reko-card-v2__author span {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reko-card-v2__details h3 {
  margin: 4px 0 0;
  color: #1d1b1d;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.reko-card-v2__details h3 a {
  color: inherit;
  text-decoration: none;
}

.reko-card-v2__brand {
  margin: 2px 0 0;
  color: #8b878b;
  font-size: 13px;
  line-height: 1.2;
}

.reko-card-v2__footer {
  min-height: 39px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reko-card-v2__price {
  flex: 0 0 auto;
  color: #171517;
  font-size: 17px;
  line-height: 1;
}

.reko-card-v2__cta {
  min-width: 0;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--v2-purple-soft);
  color: var(--v2-purple-dark) !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.reko-card-v2__cta:hover {
  background: var(--v2-purple);
  color: #fff !important;
}

/* ---------- CTA CREATEUR ---------- */

.home-v2-creator-cta {
  max-width: 1184px;
  margin: 36px auto 20px;
  padding: 35px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 26px;
  background: linear-gradient(125deg, #f6efff, #eee1ff);
}

.home-v2-creator-cta__eyebrow {
  margin: 0 0 3px;
  color: var(--v2-purple-dark);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-v2-creator-cta h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
}

.home-v2-creator-cta p:not(.home-v2-creator-cta__eyebrow) {
  max-width: 620px;
  margin: 10px 0 0;
  color: #665f67;
  font-size: 14px;
}

.home-v2-creator-cta__button {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--v2-purple);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- TABLETTE ---------- */

@media (max-width: 960px) {
  .home-v2-hero {
    grid-template-columns: 1fr 380px;
    gap: 24px;
  }

  .home-v2-hero__content h1 {
    font-size: 42px;
  }

  .home-v2-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- MOBILE ---------- */

@media (max-width: 720px) {
  .header {
    padding: 12px 14px;
  }

  .logo {
    max-width: 112px;
  }

  .icon-connexion img {
    width: 22px;
    height: 22px;
  }

  .burger-icon {
    padding: 6px 9px;
    font-size: 18px;
  }

  .home-v2-hero {
    padding: 20px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }

  .home-v2-hero__content h1 {
    margin-bottom: 16px;
    font-size: clamp(30px, 9vw, 42px);
    line-height: 0.98;
    letter-spacing: -1.6px;
  }

  .home-v2-search {
    min-height: 52px;
    padding: 0 14px;
  }

  .home-v2-categories {
    margin-top: 12px;
  }

  .home-v2-category {
    padding: 8px 12px;
    font-size: 12px;
  }

  .home-v2-hero__photo-card {
    min-height: 235px;
    padding: 24px;
    border-radius: 20px;
  }

  .home-v2-hero__scribble {
    font-size: 27px;
  }

  .home-v2-hero__bubble {
    right: 16px;
    bottom: 16px;
    font-size: 11px;
    padding: 10px 14px;
  }

  .home-v2-section {
    padding: 24px 14px;
  }

  .home-v2-section__head {
    margin-bottom: 14px;
  }

  .home-v2-section__head h2 {
    font-size: 28px;
  }

  .home-v2-creators__scroll {
    gap: 14px;
  }

  .home-v2-creator {
    flex-basis: 82px;
  }

  .home-v2-creator__avatar {
    width: 68px;
    height: 68px;
  }

  .home-v2-creator strong {
    font-size: 11px;
  }

  .home-v2-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 8px;
  }

  .reko-card-v2 {
    border-radius: 12px;
  }

  .reko-card-v2__media {
    aspect-ratio: 1 / 1.03;
  }

  .reko-card-v2 .like-form,
  .reko-card-v2__like,
  .reko-card-v2 .reko-card-v2__like.like-form {
    top: 7px !important;
    right: 7px !important;
    width: 30px;
    height: 30px;
  }

  .reko-card-v2__like .like-btn,
  button.reko-card-v2__like.like-btn {
    font-size: 20px;
  }

  .reko-card-v2__promo {
    left: 6px;
    bottom: 6px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .reko-card-v2__body {
    padding: 25px 9px 9px;
  }

  .reko-card-v2__author {
    top: -8px;
    left: 7px;
    gap: 4px;
    padding: 3px 7px 3px 3px;
    font-size: 9.5px;
  }

  .reko-card-v2__author img {
    width: 28px !important;
    height: 28px !important;
  }

  .reko-card-v2__author span {
    max-width: 92px;
  }

  .reko-card-v2__details h3 {
    font-size: 13px;
    line-height: 1.2;
  }

  .reko-card-v2__brand {
    margin-top: 2px;
    font-size: 11px;
  }

  .reko-card-v2__footer {
    min-height: 34px;
    margin-top: 7px;
  }

  .reko-card-v2__price {
    font-size: 14px;
  }

  .reko-card-v2__cta {
    padding: 7px 9px;
    font-size: 10px;
  }

  .home-v2-creator-cta {
    margin: 24px 14px 8px;
    padding: 24px 20px;
    display: block;
    border-radius: 20px;
  }

  .home-v2-creator-cta h2 {
    font-size: 28px;
  }

  .home-v2-creator-cta__button {
    margin-top: 18px;
    display: inline-flex;
  }
}

@media (max-width: 370px) {
  .reko-card-v2__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .reko-card-v2__cta {
    width: 100%;
  }
}

/* ---------- CTA INSCRIPTION ---------- */

/* ---------- SECTIONS : resserrer un peu les espaces ---------- */

.home-v2-section {
  padding: 28px 14px;
}

.home-v2-section--tight {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ---------- CTA INSCRIPTION ---------- */

.home-v2-signup-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, .9fr);
  align-items: center;
  gap: 24px;
  padding: 28px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f5efff 0%, #eee7ff 100%);
  overflow: hidden;
}

.home-v2-signup-cta__content {
  min-width: 0;
}

.home-v2-signup-cta__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #615bb7;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-v2-signup-cta h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 500;
}

.home-v2-signup-cta p {
  margin: 12px 0 0;
  max-width: 500px;
  color: #665f67;
  font-size: 14px;
  line-height: 1.45;
}

.home-v2-signup-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

.home-v2-signup-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #615bb7;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(97, 91, 183, 0.18);
  transition: all .2s ease;
}

.home-v2-signup-cta__button:hover {
  background: #544ea7;
  transform: translateY(-1px);
}

.home-v2-signup-cta__scribble {
  color: #8b7cf6;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- DESKTOP : éviter le bloc trop étalé ---------- */

@media (min-width: 721px) {
  .home-v2-signup-cta {
    max-width: 100%;
  }
}

/* ---------- MOBILE ---------- */

@media (max-width: 720px) {
  .home-v2-signup-cta {
    grid-template-columns: minmax(0, 1.35fr) minmax(110px, .65fr);
    gap: 12px;
    padding: 18px 14px;
    border-radius: 18px;
  }

  .home-v2-signup-cta h2 {
    font-size: 21px;
    line-height: 1.03;
  }

  .home-v2-signup-cta p {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  .home-v2-signup-cta__actions {
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
  }

  .home-v2-signup-cta__button {
    padding: 9px 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .home-v2-signup-cta__scribble {
    font-size: 14px;
    text-align: right;
    transform: rotate(-5deg);
    transform-origin: center;
    white-space: nowrap;
    display: block;
    margin-top: 8px;
    margin-right: 0;
    padding-left: 8px;

  }
}
