/* =========================================================
   SINGLE HERO
========================================================= */

.ro-ringotut-hero{
  padding: var(--ro-space-24);
  background-color: var(--ro-single-surface);
}

.ro-ringotut-hero__card{
  width: 100%;
}

.ro-ringotut-hero__content{
  display: flex;
  align-items: stretch;
  gap: var(--ro-space-24);
}

.ro-ringotut-hero__media{
  width: 46%;
  flex: 0 0 46%;
}

.ro-ringotut-hero__media > img{
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--ro-radius-8);
  display: block;
}

.ro-ringotut__header{
  width: 54%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ro-space-10);
}

.ro-ringotut__headerInner{
  width: 100%;
}

.ro-ringotut__title{
  margin: 0;
  line-height: .95;
}

.ro-ringotut-hero__description{
  margin: 0;
  max-width: none;
  font-size: var(--ro-font-size-l);
  line-height: var(--ro-line-height-base);
  color: var(--ro-neutral-900);
}

/* ligne 3 : objectifs */
.ro-ringotut-hero__objectifs{
  display: flex;
  flex-wrap: wrap;
  gap: var(--ro-space-8);
}

.ro-ringotut-hero__objectif{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 var(--ro-space-6);
  border-radius: var(--ro-radius-12);
  background: var(--ro-single-surface);
  color: var(--ro-single-text);
  border: 1px solid var(--ro-single-border);
  font-size: var(--ro-font-size-s);
  font-weight: var(--ro-font-weight-regular);
  line-height: 1;
}

/* ligne 4 : catégorie + difficulté + durées */
.ro-ringotut-hero__metaPrimary{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ro-space-8);
}

.ro-ringotut-hero__usage{
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--ro-space-10);
  border-radius: 999px;
  background: var(--ro-single-accent);
  color: var(--ro-single-text-on-accent);
  border: 1px solid var(--ro-single-border);
  font-size: var(--ro-font-size-m);
  font-weight: var(--ro-font-weight-bold);
  line-height: 1;
}

.ro-ringotut-hero__level{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 var(--ro-space-10);
  border-radius: 999px;
  background: var(--ro-single-surface);
  border: 1px solid var(--ro-single-border);
  color: var(--ro-single-text);
  font-size: var(--ro-font-size-m);
  font-weight: var(--ro-font-weight-bold);
  line-height: 1;
}

.ro-ringotut-hero__levelLeaves{
    
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.ro-ringotut-hero__levelLeaves[data-count="1"]{
  width: 14px;
  height: 14px;
  background: url("../img/ro-leaf.svg") center / contain no-repeat;
}

.ro-ringotut-hero__levelLeaves[data-count="2"]{
  width: 30px;
  height: 18px;
  background:
    url("../img/ro-leaf.svg") left center / 14px 14px no-repeat,
    url("../img/ro-leaf.svg") right center / 14px 14px no-repeat;
}

.ro-ringotut-hero__levelLeaves[data-count="3"]{
  width: 46px;
  height: 14px;
  background:
    url("../img/ro-leaf.svg") left center / 14px 14px no-repeat,
    url("../img/ro-leaf.svg") center center / 14px 14px no-repeat,
    url("../img/ro-leaf.svg") right center / 14px 14px no-repeat;
}

.ro-ringotut-hero__metaItem{
  display: inline-flex;
  align-items: center;
  font-size: var(--ro-font-size-m);
  font-weight: var(--ro-font-weight-bold);
  line-height: 1.3;
  color: var(--ro-neutral-900);
}

.ro-ringotut-hero__metaItem + .ro-ringotut-hero__metaItem::before{
  content: "•";
  margin-right: var(--ro-space-8);
  color: var(--ro-neutral-600);
}

/* ligne 5 : rating + validation */
.ro-ringotut-hero__statusRow{
  width: 100%;
}

.ro-ringotut-hero__status{
  display: flex;
  align-items: center;
  gap: var(--ro-space-12);
  flex-wrap: wrap;
}

.ro-scoreline{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ro-scoreline__rating{
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.ro-scoreline__value{
  font-size: var(--ro-font-size-m);
  font-weight: var(--ro-font-weight-bold);
}

.ro-scoreline__icon{
  font-size: 18px !important;
  line-height: 1;
}

.ro-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ro-font-size-s);
  line-height: 1.2;
}

.ro-badge i{
  font-size: 20px;
  line-height: 1;
}

/* ligne 6 : auteur + date */
.ro-ringotut-hero__author{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ro-space-8);
  font-size: var(--ro-font-size-s);
  line-height: 1.35;
  color: var(--ro-neutral-800);
}

.ro-ringotut-hero__author-name,
.ro-ringotut-hero__updated{
  font-size: var(--ro-font-size-s);
  font-weight: var(--ro-font-weight-regular);
}

.ro-avatar{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--ro-single-border);
  flex: 0 0 auto;
}

.ro-sep{
  opacity: .65;
}

/* responsive visibility */
.ro-ringotut-hero__scoreMobile,
.ro-badge--mobile,
.ro-ringotut-hero__updated--mobile{
  display: none;
}

.ro-ringotut-hero__scoreDesktop,
.ro-badge--desktop{
  display: inline-flex;
}

.ro-ringotut-hero__updated--desktop{
  display: inline;
}

/* ------------------------ TABLETTE ------------------------- */
@media (max-width: 1024px){
  .ro-ringotut-hero{
    padding: var(--ro-space-16);
  }

  .ro-ringotut-hero__content{
    gap: var(--ro-space-16);
  }

  .ro-ringotut-hero__media{
    width: 44%;
    flex-basis: 44%;
  }

  .ro-ringotut-hero__media > img{
    max-height: 260px;
  }

  .ro-ringotut__header{
    width: 56%;
  }

  .ro-ringotut-hero__description{
    font-size: var(--ro-font-size-m);
  }
}

/* ------------------------ MOBILE ------------------------- */
@media (max-width: 680px){
  .ro-ringotut-hero{
    padding: var(--ro-space-16);
  }

  .ro-ringotut-hero__content{
    flex-direction: column;
    gap: var(--ro-space-12);
  }

  .ro-ringotut__header{
    display: contents;
  }

  .ro-ringotut__headerInner{
    order: 1;
    width: 100%;
  }

  .ro-ringotut-hero__metaPrimary{
    order: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .ro-ringotut-hero__media{
    order: 3;
    width: 100%;
  }

  .ro-ringotut-hero__description{
    order: 4;
    max-width: none;
    font-size: var(--ro-font-size-m);
  }

  .ro-ringotut-hero__objectifs{
    order: 5;
    gap: 6px;
  }

  .ro-ringotut-hero__author{
    order: 6;
    gap: 6px;
    align-items: center;
  }

  .ro-ringotut-hero__usage{
    display: none;
  }

  .ro-ringotut-hero__level,
  .ro-ringotut-hero__metaItem,
  .ro-ringotut-hero__scoreMobile,
  .ro-ringotut-hero__scoreMobile .ro-scoreline,
  .ro-ringotut-hero__scoreMobile .ro-scoreline__rating,
  .ro-ringotut-hero__scoreMobile .ro-scoreline__value,
  .ro-ringotut-hero__scoreMobile .ro-scoreline__votes{
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ro-neutral-900);
    font-size: var(--ro-font-size-s);
    font-weight: var(--ro-font-weight-bold);
    line-height: 1.3;
    box-shadow: none;
  }

  .ro-ringotut-hero__levelLeaves{
    display: none;
  }

  .ro-ringotut-hero__level::after,
  .ro-ringotut-hero__metaItem::after,
  .ro-ringotut-hero__scoreMobile::after{
    content: "•";
    margin-left: 6px;
    color: var(--ro-neutral-600);
  }

  .ro-ringotut-hero__metaPrimary > *:last-child::after{
    content: "";
    margin: 0;
  }

  .ro-ringotut-hero__objectifs .ro-ringotut-hero__objectif:nth-child(n+4){
    display: none;
  }

  .ro-ringotut-hero__statusRow{
    display: none;
  }

  .ro-ringotut-hero__scoreMobile{
    display: inline-flex;
    align-items: center;
  }

  .ro-ringotut-hero__scoreDesktop,
  .ro-badge--desktop,
  .ro-ringotut-hero__updated--desktop{
    display: none;
  }

  .ro-ringotut-hero__updated--mobile{
    display: inline;
  }

  .ro-badge--mobile{
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
}