/* Rankings: podium and list, built with the theme tokens only. */
.lp_rank { max-width: 1160px; margin: 0 auto; padding: 0 16px 72px; }
.lp_rank_head .outils_titre span { color: var(--rouge); }

.lp_rank_zones { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 28px 0 36px; }
.lp_rank_tabs { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--glass-border); border-radius: 50px; background: var(--glass-bg); }
.lp_rank_tab { padding: 10px 22px; border-radius: 50px; color: rgba(245, 245, 247, .7); font: 600 14px/1 'Inter', sans-serif; text-decoration: none; transition: background var(--tr), color var(--tr); }
.lp_rank_tab:hover { color: var(--blanc_pur); }
.lp_rank_tab.is-active { background: var(--rouge); box-shadow: 0 4px 14px var(--rouge-glow); color: var(--blanc_pur); }
.lp_rank_country select { height: 48px; padding: 0 40px 0 20px; border: 1px solid var(--glass-border); border-radius: 50px; background-color: var(--gris-card); color: var(--blanc_pur); font: 600 14px/1 'Inter', sans-serif; cursor: pointer; }
.lp_rank_country select:focus { outline: 2px solid var(--blanc_pur); outline-offset: 2px; }
.lp_rank_empty, .lp_rank_note { color: rgba(245, 245, 247, .6); font: 400 14px/1.6 'Inter', sans-serif; text-align: center; }
.lp_rank_note { margin-top: 28px; }

/* Podium. */
.lp_rank_podium { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: 18px; margin: 0 0 36px; padding: 0 !important; list-style: none !important; }
.lp_rank_step { margin: 0; padding: 0; list-style: none; }
.lp_rank_step_1 { order: 2; }
.lp_rank_step_2 { order: 1; }
.lp_rank_step_3 { order: 3; }
.lp_rank_step a { position: relative; display: block; height: 340px; border: 1px solid var(--glass-border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); text-decoration: none; isolation: isolate; transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr); }
.lp_rank_step_1 a { height: 440px; border-color: var(--rouge); box-shadow: 0 12px 40px var(--rouge-glow); }
.lp_rank_step_3 a { height: 300px; }
.lp_rank_step a:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--rouge); }
.lp_rank_step_photo { position: absolute; inset: 0; z-index: -2; background: var(--gris-card); }
.lp_rank_step_photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.lp_rank_step a:hover .lp_rank_step_photo img { transform: scale(1.06); }
.lp_rank_step_photo .card_image_placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(245, 245, 247, .25); }
.lp_rank_step a::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(19, 21, 26, .97) 0%, rgba(19, 21, 26, .6) 45%, rgba(19, 21, 26, .05) 100%); }
.lp_rank_step_rank { position: absolute; top: 14px; left: 18px; color: var(--blanc_pur); font-family: var(--font-title), sans-serif; font-size: 84px; line-height: .9; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.lp_rank_step_1 .lp_rank_step_rank { display: flex; align-items: center; justify-content: center; width: 104px; height: 104px; border: 5px solid var(--gris); border-radius: 50%; background: var(--rouge); box-shadow: 0 8px 30px var(--rouge-glow); font-size: 76px; line-height: 1; text-shadow: none; }
.lp_rank_step_body { position: absolute; right: 20px; bottom: 20px; left: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lp_rank_step_value { color: var(--blanc_pur); font-family: var(--font-title), sans-serif; font-size: 40px; line-height: 1; }
.lp_rank_step_1 .lp_rank_step_value { font-size: 58px; }
.lp_rank_step h2 { margin: 0; padding: 0 !important; color: var(--blanc_pur); font-family: var(--font-title), sans-serif; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.lp_rank_step_1 h2 { font-size: 32px; }
.lp_rank_step h2::after { display: none !important; }

/* List. */
.lp_rank_list { margin: 0; padding: 6px 24px !important; border: 1px solid var(--glass-border); border-radius: var(--radius-xl); background: var(--gris-card); box-shadow: var(--shadow-card); list-style: none !important; }
.lp_rank_row { margin: 0; padding: 0; list-style: none; }
.lp_rank_row + .lp_rank_row { border-top: 1px solid var(--glass-border); }
.lp_rank_row a { display: grid; grid-template-columns: 56px 64px 1fr auto; align-items: center; gap: 18px; padding: 14px 0; color: var(--blanc_pur); text-decoration: none; }
.lp_rank_row_rank { color: rgba(245, 245, 247, .45); font-family: var(--font-title), sans-serif; font-size: 34px; line-height: 1; text-align: center; transition: color var(--tr); }
.lp_rank_row a:hover .lp_rank_row_rank { color: var(--rouge); }
.lp_rank_row_photo { display: block; width: 64px; height: 64px; border-radius: var(--radius-md, 14px); overflow: hidden; background: var(--glass-bg); }
.lp_rank_row_photo img { width: 100%; height: 100%; object-fit: cover; }
.lp_rank_row_photo .card_image_placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(245, 245, 247, .25); }
.lp_rank_row_photo .card_image_placeholder svg { width: 22px; height: 22px; }
.lp_rank_row_main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lp_rank_row_main strong { overflow: hidden; font: 700 16px/1.25 'Inter', sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.lp_rank_row_main em { display: flex; align-items: center; gap: 8px; color: rgba(245, 245, 247, .6); font: 500 13px/1.3 'Inter', sans-serif; font-style: normal; }
.lp_rank_row_main em .drapeau_pays { width: 18px; height: auto; border-radius: 3px; }
.lp_rank_bar { display: block; height: 6px; margin-top: 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lp_rank_bar i { display: block; width: var(--lp-rank); height: 100%; border-radius: 999px; background: var(--rouge); box-shadow: 0 0 14px var(--rouge-glow); transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.lp_rank_row_value { color: var(--blanc_pur); font-family: var(--font-title), sans-serif; font-size: 28px; line-height: 1; white-space: nowrap; }

.lp_rank_anim .lp_rank_step, .lp_rank_anim .lp_rank_row { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.lp_rank_anim .lp_rank_step.is-in, .lp_rank_anim .lp_rank_row.is-in { opacity: 1; transform: none; }
.lp_rank_anim .lp_rank_step_1 { transition-delay: .35s; }
.lp_rank_anim .lp_rank_step_3 { transition-delay: .15s; }
.lp_rank_anim .lp_rank_row:not(.is-in) .lp_rank_bar i { width: 0; }

@media (max-width: 760px) {
    .lp_rank_podium { grid-template-columns: 1fr; gap: 14px; }
    .lp_rank_step_1, .lp_rank_step_2, .lp_rank_step_3 { order: 0; }
    .lp_rank_step a, .lp_rank_step_3 a { height: 230px; border-radius: var(--radius-lg); }
    .lp_rank_step_1 a { height: 320px; }
    .lp_rank_step_rank { font-size: 64px; }
    .lp_rank_step_1 .lp_rank_step_rank { width: 84px; height: 84px; font-size: 60px; }
    .lp_rank_step_1 .lp_rank_step_value { font-size: 46px; }
    .lp_rank_list { padding: 2px 14px !important; border-radius: var(--radius-lg); }
    .lp_rank_row a { grid-template-columns: 34px 48px 1fr auto; gap: 10px; }
    .lp_rank_row_rank { font-size: 24px; }
    .lp_rank_row_photo { width: 48px; height: 48px; }
    .lp_rank_row_main strong { font-size: 14px; }
    .lp_rank_row_main em { font-size: 12px; }
    .lp_rank_row_value { font-size: 20px; }
    .lp_rank_tab { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { .lp_rank_bar i, .lp_rank_step_photo img { transition: none; } }

/* Unit under the podium figure, hub cards and links to the other rankings. */
.lp_rank_head a.outils_kicker { text-decoration: none; }
.lp_rank_step_unit { margin-top: -4px; color: rgba(245, 245, 247, .7); font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.lp_rank_family { margin-top: 40px; }
.lp_rank_family > h2 { margin: 0 0 16px; padding: 0 !important; color: var(--blanc_pur); font-family: var(--font-title), sans-serif; font-size: 30px; line-height: 1; text-transform: uppercase; }
.lp_rank_family > h2::after { display: none !important; }
.lp_rank_cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.lp_rank_card { position: relative; display: block; height: 280px; border: 1px solid var(--glass-border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); color: var(--blanc_pur); text-decoration: none; isolation: isolate; transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr); }
.lp_rank_card:hover { transform: translateY(-6px); border-color: var(--rouge); box-shadow: var(--shadow-hover); color: var(--blanc_pur); }
.lp_rank_card_photo { position: absolute; inset: 0; z-index: -2; background: var(--gris-card); }
.lp_rank_card_photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.lp_rank_card:hover .lp_rank_card_photo img { transform: scale(1.06); }
.lp_rank_card_photo .card_image_placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(245, 245, 247, .25); }
.lp_rank_card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(19, 21, 26, .97) 0%, rgba(19, 21, 26, .7) 50%, rgba(19, 21, 26, .15) 100%); }
.lp_rank_card_body { position: absolute; right: 20px; bottom: 18px; left: 20px; display: flex; flex-direction: column; gap: 10px; }
.lp_rank_card h3 { margin: 0; padding: 0; color: var(--blanc_pur); font-family: var(--font-title), sans-serif; font-size: 30px; line-height: 1; text-transform: uppercase; }
.lp_rank_card p { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; font: 600 14px/1.3 'Inter', sans-serif; }
.lp_rank_card p strong { min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lp_rank_card p em { flex: none; color: rgba(245, 245, 247, .7); font-style: normal; }
.lp_rank_card_one { display: flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rouge); box-shadow: 0 4px 14px var(--rouge-glow); font-family: var(--font-title), sans-serif; font-size: 18px; line-height: 1; }
.lp_rank_card_cta { display: inline-flex; align-items: center; gap: 8px; color: var(--rouge); font: 700 13px/1 'Inter', sans-serif; }
.lp_rank_more { margin-top: 44px; }
.lp_rank_more h2 { margin: 0 0 14px; padding: 0 !important; color: var(--blanc_pur); font-family: var(--font-title), sans-serif; font-size: 26px; line-height: 1; text-transform: uppercase; }
.lp_rank_more h2::after { display: none !important; }
.lp_rank_chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lp_rank_chip { padding: 11px 18px; border: 1px solid var(--glass-border); border-radius: 50px; background: var(--glass-bg); color: var(--blanc_pur); font: 600 13px/1.2 'Inter', sans-serif; text-decoration: none; transition: border-color var(--tr), transform var(--tr); }
.lp_rank_chip:hover { transform: translateY(-2px); border-color: var(--rouge); color: var(--blanc_pur); }
.lp_rank_anim .lp_rank_card { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease, border-color var(--tr), box-shadow var(--tr); }
.lp_rank_anim .lp_rank_card.is-in { opacity: 1; transform: none; }
.lp_rank_anim .lp_rank_card.is-in:hover { transform: translateY(-6px); }
@media (max-width: 760px) {
    .lp_rank_cards { grid-template-columns: 1fr; }
    .lp_rank_card { height: 230px; border-radius: var(--radius-lg); }
}
