[data-home-color=sorties]{--section-color:#00a8ff;--section-rgb:0,168,255}
[data-home-color=flashs]{--section-color:#ff174f;--section-rgb:255,23,79}
[data-home-color=souvenirs]{--section-color:#ffe600;--section-rgb:255,230,0}
[data-home-color=tests]{--section-color:#a8ff00;--section-rgb:168,255,0}
[data-home-color=chroniques]{--section-color:#d500ff;--section-rgb:213,0,255}
[data-home-color=dossiers]{--section-color:#00fff0;--section-rgb:0,255,240}
.yuki-home-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:24px;padding:8px;border:1px solid #ffffff24;border-radius:8px;background:#141417;box-shadow:4px 4px 0 #0006}
.yuki-home-tabs button{display:flex;justify-content:center;align-items:center;gap:8px;min-width:0;min-height:48px;padding:12px 8px;background:#ffffff04;border:1px solid #ffffff18;border-bottom:3px solid var(--section-color);border-radius:4px;color:#ddd;font-size:11px;font-weight:900;line-height:1.4;text-transform:uppercase;cursor:pointer}
.yuki-home-tabs button>i{color:var(--section-color);flex:none;text-shadow:0 0 8px rgba(var(--section-rgb),1);filter:drop-shadow(0 0 7px rgba(var(--section-rgb),.95))}
.yuki-home-tabs button[aria-selected=true]{color:#090a0d;background:linear-gradient(135deg,var(--section-color),rgba(var(--section-rgb),.72));border-color:var(--section-color);box-shadow:inset -3px -3px 0 #0003,0 0 18px rgba(var(--section-rgb),.28)}
.yuki-home-tabs button[aria-selected=true]>i{color:inherit}
.yuki-home-tabs button:hover{border-color:var(--section-color)}
.yuki-home-tabs button:focus-visible,.yuki-home-sections>[data-home-section]:focus-visible{outline:2px solid var(--section-color);outline-offset:3px}
.yuki-home-sections.is-tabbed>[data-home-section]{margin-bottom:0;animation:none;scroll-margin-top:150px}
.yuki-home-sections>[data-home-section][hidden]{display:none!important}
.yuki-home-sections>[data-home-section]>div:first-child h2:not(article h2){color:var(--section-color)}
body:is(.home,.blog) .yuki-home-sections>[data-home-section]>div:first-child h2:not(article h2)::before{background:var(--section-color);color:#111}
@media(max-width:1100px){.yuki-home-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){.yuki-home-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.yuki-home-tabs button{font-size:10px}}

/* Section headings use the same coloured icon as their tab, instead of a number. */
body:is(.home,.blog) #page .yuki-home-sections>[data-home-section]>div:first-child h2:not(article h2)::before{content:none;display:none}
body:is(.home,.blog) #page .yuki-home-sections>[data-home-section]>div:first-child h2:not(article h2){display:flex;align-items:center;gap:12px}
.yuki-home-section-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;color:var(--section-color);font-size:20px;font-style:normal;text-shadow:0 0 7px rgba(var(--section-rgb),1),0 0 18px rgba(var(--section-rgb),.72)}

[data-home-color=actualites]{--section-color:#ff5c00;--section-rgb:255,92,0}
#home-section-actualites #primary>div:first-child h2:not(article h2){color:var(--section-color)}

/* Home news: 1 column on phones, 2 on tablets, 3 on desktop. */
.yuki-home-sections .yuki-home-news-grid{grid-template-columns:minmax(0,1fr);gap:24px}
.yuki-home-sections .yuki-home-news-grid>article{min-width:0;border-radius:12px}
.yuki-home-sections .yuki-home-news-grid h3{overflow-wrap:anywhere}
@media(min-width:640px){.yuki-home-sections .yuki-home-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.yuki-home-sections .yuki-home-news-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
