/* Sponso'ring — fiche combattant
   Mobile : une seule colonne, sections réordonnées (campagne d'abord) + barre de don collante.
   ≥ 768 px : variantes desktop des blocs. ≥ 1024 px : deux colonnes (contenu + colonne campagne). */

/* ---------- Header posé sur la photo (mobile / tablette) ---------- */
.icon-btn--round { border-radius: 22px; background: rgba(11, 11, 12, .6); }

@media (max-width: 1023.98px) {
  .site-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 0;
  }
}

/* ---------- Badges supplémentaires ---------- */
.badge--verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(63, 191, 127, .14);
  color: #6FD9A3;
}
@media (min-width: 768px) {
  .badge--md { font-size: 12px; padding: 6px 10px; }
  .badge--verified { gap: 6px; }
}

/* ---------- Hero ---------- */
.f-hero { position: relative; height: 580px; overflow: hidden; }
.cover--yanis-hero { object-position: 40% 50%; }
.f-hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(11, 11, 12, 0), var(--bg) 50%);
}
.f-hero__inner { padding-top: 20px; padding-bottom: 20px; }
.f-hero__id { display: flex; flex-direction: column; gap: 12px; }
.f-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.f-hero__nick { font-size: 14px; color: var(--red); }
.f-hero__name { margin-top: 4px; font-size: 60px; }
.f-hero__meta { font-size: 15px; color: var(--text-body); }
.f-hero__meta svg { vertical-align: -3px; margin-right: 6px; }
.f-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.f-hero__share { background: rgba(11, 11, 12, .6); font-size: 16px; padding: 0 22px; }

@media (min-width: 768px) {
  .f-hero { height: 520px; }
  .cover--yanis-hero { object-position: 50% 30%; }
  .f-hero__overlay { background: linear-gradient(rgba(11, 11, 12, 0), var(--bg) 70%); }
  .f-hero__inner {
    padding-top: 40px;
    padding-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }
  .f-hero__badges { gap: 8px; }
  .f-hero__nick { font-size: 16px; }
  .f-hero__name { margin-top: 12px; font-size: clamp(72px, 9vw, 104px); }
  .f-hero__meta { font-size: 17px; }
}

/* ---------- Fiche technique (desktop) ---------- */
.tape { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tape__grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.tape__grid > div { padding: 18px 0; }
.tape__grid dt { font-size: 11px; color: var(--text-2); }
.tape__grid dd { margin: 6px 0 0; font-size: 34px; }

/* ---------- Mise en page ---------- */
.fiche-layout { display: flex; flex-direction: column; padding-bottom: 8px; }
.fiche-main, .fiche-aside { display: contents; }

.fsec { padding: 24px 0; display: flex; flex-direction: column; gap: 16px; }
.fsec__title { font-size: 32px; }
.fsec__note { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.fsec__more { text-align: center; font-size: 14px; color: var(--text-soft); padding: 10px 0; }
.fsec__more:hover { color: var(--text); }

.fsec--campaign { padding: 8px 0 28px; }
.fsec--rewards, .fsec--news { gap: 12px; }
.fsec--rewards .fsec__title, .fsec--news .fsec__title { margin-bottom: 4px; }
.fsec--backers { gap: 14px; }
.fsec--wall { gap: 4px; }
.fsec--wall .fsec__title { margin-bottom: 12px; }
.fsec--wall .fsec__more { padding: 14px 0; }

/* Ordre mobile : la campagne et le bouton de don passent avant tout le reste */
@media (max-width: 1023.98px) {
  .fsec--campaign { order: 1; }
  .fsec--palmares { order: 2; }
  .fsec--funds { order: 3; }
  .fsec--rewards { order: 4; }
  .fsec--next { order: 5; }
  .fsec--about { order: 6; }
  .fsec--backers { order: 7; }
  .fsec--sponsor { order: 8; }
  .fsec--news { order: 9; }
  .fsec--wall { order: 10; }
}

@media (min-width: 768px) {
  .fsec__title { font-size: 40px; }
  .fsec--campaign { padding-top: 32px; }
  .fsec--funds { gap: 18px; }
  .fsec--news { gap: 16px; }
  .fsec--news .fsec__title { margin-bottom: 0; }
}

@media (min-width: 1024px) {
  .fiche-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 80px;
  }
  .fiche-main { display: flex; flex-direction: column; gap: 48px; flex: 999 1 560px; min-width: 0; }
  .fiche-aside { display: flex; flex-direction: column; gap: 20px; flex: 1 1 360px; min-width: 0; }
  .fsec, .fsec--campaign { padding: 0; }
  .fsec__title--aside { font-size: 26px; }
  .fsec--rewards, .fsec--backers { gap: 10px; }
  .fsec--backers .fsec__title { margin-bottom: 4px; }
}

/* ---------- Campagne ---------- */
.camp {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.camp__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.camp__status { font-size: 12px; color: var(--red); display: flex; align-items: center; gap: 6px; }
.camp__dot { width: 8px; height: 8px; border-radius: 4px; background: var(--red); }
.camp__end { font-size: 13px; color: var(--text-2); }
.camp__title { font-size: 32px; }
.camp__amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: var(--text-2); font-size: 15px; }
.camp__amount .d { font-size: 44px; color: var(--text); }
.camp__progress { height: 10px; border-radius: 5px; }
.camp__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.camp__v {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  font-size: 24px;
}
.camp__l { display: block; font-size: 12px; color: var(--text-2); margin-top: 4px; }
.camp__cta { height: 54px; width: 100%; }
.camp__monthly { height: 48px; width: 100%; border-color: #3A3A42; font-size: 15px; }
.camp__note { font-size: 12px; line-height: 1.5; color: var(--text-2); text-align: center; }
.camp__note a { color: var(--text-soft); }
.camp[hidden], .sticky-cta [hidden] { display: none !important; }
.camp__status--open { color: var(--green); }
.camp__lead { font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.camp__stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .camp { padding: 24px; }
  .camp__amount { font-size: 16px; }
  .camp__amount .d { font-size: 48px; }
  .camp__stats { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-soft); }
  .camp__v { display: inline; font-family: var(--font-body); text-transform: none; line-height: inherit; font-size: 14px; font-weight: 700; color: var(--text); }
  .camp__l { display: inline; font-size: 14px; color: inherit; margin: 0; }
  .camp__monthly { font-size: 16px; }
}
@media (min-width: 1024px) {
  .camp__title { font-size: 30px; }
}

/* ---------- Palmarès (mobile) ---------- */
.record { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.record__wld {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.record__wld > div { padding: 16px 8px; }
.record__wld > div + div { border-left: 1px solid var(--border); }
.record__n { font-size: 48px; }
.record__n--dim { color: var(--text-2); }
.record__l { font-size: 11px; color: var(--text-2); margin-top: 6px; }
.record__sub { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.record__facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.record__facts > div { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.record__facts > div:nth-child(odd) { border-right: 1px solid var(--border); }
.record__facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.record__facts dt { font-size: 11px; color: var(--text-2); }
.record__facts dd { margin: 4px 0 0; font-weight: 700; font-size: 17px; }

/* ---------- Distinction ---------- */
.award {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(217, 164, 65, .1);
  border: 1px solid rgba(217, 164, 65, .3);
}
.award svg { flex: none; color: var(--gold); }
.award p { font-size: 14px; line-height: 1.45; }
.award span { color: var(--text-2); }
@media (min-width: 768px) { .award p { font-size: 15px; } }

/* ---------- Qui je suis ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "text text" "video t1" "video t2";
  gap: 8px;
}
.about__text { grid-area: text; margin-bottom: 8px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.about__award { grid-area: award; }
.about__video { grid-area: video; position: relative; overflow: hidden; height: 328px; border-radius: 12px; }
.about__thumb { position: relative; overflow: hidden; height: 160px; border-radius: 12px; }
.about__thumb--1 { grid-area: t1; }
.about__thumb--2 { grid-area: t2; }
.about__thumb--3 { grid-area: t3; }
.about__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(11, 11, 12, .55);
  border-radius: inherit;
}
.play-btn {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 0;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.about__video-label { position: absolute; z-index: 1; left: 10px; bottom: 10px; font-size: 11px; color: var(--text-soft); }

@media (min-width: 768px) {
  .about {
    grid-template-columns: 220px 4px repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "video . text text text"
      "video . award award award"
      "video . t1 t2 t3";
    column-gap: 8px;
    row-gap: 16px;
  }
  .about__text { margin: 0; font-size: 17px; line-height: 1.65; }
  .about__video { height: 390px; border-radius: 14px; }
  .about__thumb { height: 120px; border-radius: 10px; align-self: start; }
  .play-btn { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .about__video-label { left: 12px; bottom: 12px; }
}

/* ---------- Utilisation des fonds ---------- */
.funds-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; gap: 2px; }
.funds-bar span { display: block; }
.funds { display: flex; flex-direction: column; gap: 2px; }
.fund {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto 40px;
  grid-template-areas: "sw label amt pct";
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.fund:last-child { border-bottom: 0; }
.fund__sw { grid-area: sw; width: 12px; height: 12px; border-radius: 3px; }
.fund__label { grid-area: label; font-size: 15px; }
.fund__amt { grid-area: amt; font-weight: 700; }
.fund__pct { grid-area: pct; text-align: right; font-size: 14px; color: var(--text-2); }

@media (min-width: 768px) {
  .funds-bar { height: 20px; border-radius: 10px; gap: 3px; }
  .funds { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
  .fund, .fund:last-child {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "sw pct" "label label" "amt amt";
    column-gap: 8px;
    row-gap: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .fund__pct {
    text-align: left;
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    line-height: .95;
    font-size: 28px;
    color: var(--text);
  }
  .fund__label { font-size: 14px; margin-top: 8px; }
  .fund__amt { font-size: 13px; font-weight: 400; color: var(--text-2); margin-top: 2px; }
}

/* ---------- Contreparties ---------- */
.rewards { display: flex; flex-direction: column; gap: 12px; }
.reward {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s;
}
.reward:hover { border-color: var(--border-strong); color: var(--text); }
.reward__amt { font-size: 28px; color: var(--red); min-width: 72px; }
.reward__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.reward__title { font-weight: 700; font-size: 15px; }
.reward__meta { font-size: 13px; color: var(--text-2); }
.reward__chev { align-self: center; flex: none; color: var(--text-faint); }

@media (min-width: 768px) {
  .rewards { gap: 10px; }
  .reward { padding: 14px; background: transparent; }
  .reward__amt { font-size: 24px; min-width: 64px; }
  .reward__body { gap: 3px; }
}

/* ---------- Prochain combat ---------- */
.next {
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.next__label { font-size: 12px; color: var(--red-dark); }
.next__vs { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 28px; }
.next__x { font-size: 20px; color: var(--red-dark); }
.next__opp { color: #5B5B66; }
.next__info { font-size: 14px; line-height: 1.5; }

@media (min-width: 768px) {
  .next { gap: 10px; }
  .next__vs { display: block; font-size: 26px; }
  .next__x { font-size: 18px; }
}

/* ---------- Ils me soutiennent ---------- */
.backers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.backers li {
  height: 64px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
}
.backers__logo { background: var(--text); color: #111114; font: 800 11px/1.2 var(--font-body); }
.backers__free { border: 1px dashed #3A3A42; font-size: 12px; }
.backers__free a { color: var(--text-2); text-decoration: none; }
.backers__free a:hover { color: var(--text); }
.backers__team { font-size: 13px; color: var(--text-2); }

.team { display: flex; gap: 12px; }
.team__card {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.team__img { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.team__img--round { border-radius: 20px; }
.team__name { display: block; font-size: 14px; font-weight: 700; }
.team__role { display: block; font-size: 12px; color: var(--text-2); }

@media (min-width: 768px) {
  .backers li { height: 60px; }
  .backers__logo { font-size: 10px; }
}

/* ---------- Sponsoring ---------- */
.spons { display: flex; flex-direction: column; gap: 14px; }
.club-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(217, 164, 65, .1);
  border: 1px solid rgba(217, 164, 65, .35);
}
.club-note svg { flex: none; margin-top: 2px; color: var(--gold); }
.club-note p { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.club-note a { font-weight: 700; }

.offers { display: flex; flex-direction: column; gap: 14px; }
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "tier price" "perks perks";
  align-items: baseline;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.offer__tier {
  grid-area: tier;
  font-family: var(--font-narrow);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  font-size: 13px;
  color: var(--gold);
}
.offer__price { grid-area: price; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: .95; font-size: 26px; }
.offer__perks { grid-area: perks; font-size: 14px; line-height: 1.5; color: var(--text-soft); }
.spons__cta { height: 52px; width: 100%; }

@media (min-width: 768px) {
  .spons { border: 1px solid var(--gold); border-radius: 16px; padding: 22px; gap: 12px; }
  .club-note { padding: 0; border: 0; background: none; gap: 10px; }
  .club-note svg { width: 18px; height: 18px; }
  .offers { gap: 6px; font-size: 14px; }
  .offer {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "tier perks price";
    gap: 0;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: none;
  }
  .offer:last-child { border-bottom: 0; }
  .offer__tier { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 14px; }
  .offer__perks { color: var(--text); line-height: inherit; }
  .offer__perks::before { content: "\00a0· "; }
  .offer__price { font-family: var(--font-body); text-transform: none; line-height: inherit; font-size: 14px; font-weight: 700; }
  .spons__cta { height: 50px; font-size: 15px; }
}

/* ---------- Actualités ---------- */
.news { display: flex; flex-direction: column; gap: 12px; }
.news__item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.news__img { position: relative; height: 160px; }
.news__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.news__meta { font-size: 11px; color: var(--text-2); }
.news__title { font-weight: 700; font-size: 16px; }
.news__text { font-size: 14px; line-height: 1.5; color: var(--text-soft); }

@media (min-width: 768px) {
  .news { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
  .news__img { height: 170px; }
  .news__body { padding: 16px; }
  .news__title { font-size: 17px; }
}

/* ---------- Mur des supporters ---------- */
.wall__item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wall__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1C1C21;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}
.wall__body {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name amt" "msg msg" "when when";
  gap: 3px 8px;
}
.wall__who { display: contents; }
.wall__name { grid-area: name; font-weight: 700; font-size: 15px; }
.wall__when { grid-area: when; font-size: 12px; color: var(--text-faint); }
.wall__amt { grid-area: amt; font-weight: 700; color: var(--red); }
.wall__msg { grid-area: msg; font-size: 14px; line-height: 1.45; color: var(--text-soft); }

@media (min-width: 768px) {
  .wall__item { gap: 14px; padding: 14px 0; }
  .wall__avatar { width: 44px; height: 44px; }
  .wall__body { grid-template-areas: "name amt" "msg msg"; }
  .wall__who { display: block; grid-area: name; }
  .wall__name { font-size: 16px; }
  .wall__when { font-size: 13px; }
  .wall__when::before { content: " · "; }
  .wall__msg { font-size: 15px; }
}

/* ---------- Barre de don collante (mobile) ---------- */
.sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 12, .94);
  border-top: 1px solid var(--border);
}
.sticky-cta__amt { font-weight: 700; font-size: 15px; }
.sticky-cta__meta { font-size: 12px; color: var(--text-2); }
.sticky-cta .btn { flex: 1; height: 52px; }
