/* =========================================================
   ENZO JOSSI — V5.2
   PAGES RÉSULTATS SEO
   ========================================================= */

/* CTA DES CARTES ---------------------------------------- */

.result-card .result-detail-link {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;

  margin-top:auto;
  padding:14px 0 2px;

  border-top:1px solid rgba(255,255,255,.12);

  color:#fff;
  text-decoration:none;

  font-size:8px;
  line-height:1;
  font-weight:900;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.result-card .result-detail-link span {
  color:#e00000;
  font-size:16px;
}

.result-card .result-detail-link:hover {
  color:#e00000;
}


/* PAGE -------------------------------------------------- */

.race-result-page,
.race-result-page input,
.race-result-page button {
  font-family:Arial,Helvetica,sans-serif;
}

.race-result-page {
  margin:0;
  background:#070707;
  color:#fff;
  -webkit-font-smoothing:antialiased;
}

.race-result-shell {
  width:min(1180px,calc(100% - 64px));
  margin:0 auto;
  padding:132px 0 86px;
}

.race-result-breadcrumb {
  display:flex;
  align-items:center;
  gap:12px;

  margin-bottom:34px;

  color:#777;

  font-size:8px;
  font-weight:900;
  letter-spacing:.16em;
}

.race-result-breadcrumb a {
  color:#aaa;
  text-decoration:none;
}

.race-result-breadcrumb a:hover {
  color:#fff;
}


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

.race-result-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) 210px;
  gap:50px;
  align-items:end;

  padding-bottom:35px;
}

.race-result-kicker {
  margin-bottom:14px;

  color:#e00000;

  font-size:9px;
  line-height:1;
  font-weight:900;
  letter-spacing:.20em;
}

.race-result-eventline {
  display:flex;
  flex-wrap:wrap;
  gap:15px;

  margin-bottom:12px;

  color:#8d8d8d;

  font-size:9px;
  line-height:1;
  font-weight:900;
  letter-spacing:.16em;
}

.race-result-eventline span + span::before {
  content:"·";
  margin-right:15px;
  color:#444;
}

.race-result-heading h1 {
  max-width:900px;

  margin:0;

  font-size:clamp(50px,6vw,88px);
  line-height:.9;
  font-weight:900;
  letter-spacing:-.055em;
  text-transform:uppercase;
}

.race-result-meta {
  display:flex;
  flex-wrap:wrap;
  gap:0;

  margin-top:22px;

  color:#aaa;

  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
}

.race-result-meta span + span::before {
  content:"·";
  margin:0 11px;
  color:#e00000;
}

.race-result-rankbox {
  min-height:180px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  background:#e00000;

  text-align:center;
}

.race-result-rankbox small {
  margin-bottom:13px;

  color:rgba(255,255,255,.7);

  font-size:7px;
  font-weight:900;
  letter-spacing:.20em;
}

.race-result-rankbox strong {
  color:#fff;

  font-size:58px;
  line-height:.85;
  font-weight:1000;
  letter-spacing:-.06em;
  text-transform:uppercase;
}


/* IMAGE ------------------------------------------------- */

.race-result-image {
  position:relative;

  width:100%;
  aspect-ratio:16/9;

  margin:0 0 46px;

  overflow:hidden;
  background:#111;

  border-top:3px solid #e00000;
}

.race-result-image picture,
.race-result-image img {
  display:block;
  width:100%;
  height:100%;
}

.race-result-image img {
  object-fit:cover;
  object-position:var(--race-x,50%) var(--race-y,50%);
  transform:scale(var(--race-zoom,1));
  transform-origin:var(--race-x,50%) var(--race-y,50%);
}


/* TEXTE ------------------------------------------------- */

.race-result-story {
  width:min(820px,100%);
  margin:0 auto;
}

.race-result-lead {
  margin:0 0 30px;
  padding:0 0 25px;

  border-bottom:3px solid #e00000;

  color:#fff;

  font-size:clamp(20px,2vw,27px);
  line-height:1.5;
  font-weight:600;
}

.race-result-report {
  color:#c9c9c9;

  font-size:16.5px;
  line-height:1.78;
}

.race-result-report p {
  margin:0 0 23px;
}

.race-result-signature {
  margin-top:34px;
  padding-top:18px;

  border-top:1px solid #252525;

  color:#888;

  font-size:8px;
  line-height:1.3;
  font-weight:900;
  letter-spacing:.17em;
  text-transform:uppercase;
}


/* NAVIGATION -------------------------------------------- */

.race-result-footer {
  margin-top:68px;
  padding-top:25px;

  border-top:1px solid #252525;
}

.race-result-back {
  color:#e00000;
  text-decoration:none;

  font-size:9px;
  font-weight:900;
  letter-spacing:.15em;
}

.race-result-nav {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;

  margin-top:27px;
}

.race-result-nav a {
  min-height:115px;

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  padding:22px;
  box-sizing:border-box;

  background:#101010;
  border:1px solid #242424;

  color:#fff;
  text-decoration:none;

  transition:.2s ease;
}

.race-result-nav a:hover {
  border-color:#e00000;
  transform:translateY(-2px);
}

.race-result-nav small {
  color:#e00000;

  font-size:7px;
  font-weight:900;
  letter-spacing:.15em;
}

.race-result-nav strong {
  margin-top:16px;

  font-size:18px;
  line-height:1.08;
  font-weight:900;
  text-transform:uppercase;
}


/* 404 --------------------------------------------------- */

.race-result-not-found {
  min-height:100vh;

  width:min(900px,calc(100% - 48px));
  margin:0 auto;

  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
}

.race-result-not-found > p {
  color:#e00000;
  font-size:9px;
  font-weight:900;
  letter-spacing:.18em;
}

.race-result-not-found h1 {
  margin:14px 0 36px;

  font-size:clamp(48px,8vw,100px);
  line-height:.85;
  font-weight:900;
}

.race-result-not-found h1 span {
  color:#e00000;
}

.race-result-not-found a {
  color:#fff;
  text-decoration:none;

  padding-bottom:7px;
  border-bottom:2px solid #e00000;

  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
}


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

@media(max-width:900px){

  .race-result-shell {
    width:calc(100% - 36px);
    padding:108px 0 58px;
  }

  .race-result-breadcrumb {
    margin-bottom:26px;
    font-size:7px;
  }

  .race-result-hero {
    grid-template-columns:minmax(0,1fr) 92px;
    gap:14px;

    padding-bottom:24px;
  }

  .race-result-kicker {
    margin-bottom:10px;
    font-size:7px;
  }

  .race-result-eventline {
    gap:9px;
    margin-bottom:9px;
    font-size:7px;
  }

  .race-result-eventline span + span::before {
    margin-right:9px;
  }

  .race-result-heading h1 {
    font-size:clamp(34px,10vw,53px);
    line-height:.92;
  }

  .race-result-meta {
    margin-top:14px;
    font-size:7px;
  }

  .race-result-rankbox {
    min-height:116px;
  }

  .race-result-rankbox small {
    margin-bottom:9px;
    font-size:5.5px;
  }

  .race-result-rankbox strong {
    font-size:32px;
  }

  .race-result-image {
    aspect-ratio:4/5;
    margin-bottom:30px;
  }

  .race-result-image img {
    object-position:var(--race-mobile-x,50%) var(--race-mobile-y,50%);
    transform:scale(var(--race-mobile-zoom,1));
    transform-origin:var(--race-mobile-x,50%) var(--race-mobile-y,50%);
  }

  .race-result-lead {
    margin-bottom:23px;
    padding-bottom:20px;
    font-size:18px;
  }

  .race-result-report {
    font-size:15.5px;
    line-height:1.72;
  }

  .race-result-report p {
    margin-bottom:20px;
  }

  .race-result-footer {
    margin-top:48px;
  }

  .race-result-nav {
    grid-template-columns:1fr;
  }

  .result-card .result-detail-link {
    font-size:7px;
  }
}
