« Modèle:Accueil/shared/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications Balise : Révocation manuelle |
Aucun résumé des modifications |
||
| (13 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
.home- | /* ==================================== | ||
TABLE DES MATIÈRES | |||
==================================== | |||
1. VARIABLES CSS | |||
2. HEADER & HERO | |||
3. BARRE DE RECHERCHE | |||
4. EVENT (Bannière événement) | |||
5. NAVIGATION CARDS | |||
6. LAYOUT PRINCIPAL | |||
6b. CADRES | |||
7. FEATURED ARTICLES | |||
8. UPDATES | |||
9. STATS | |||
10. SOCIAL BUTTONS | |||
11. LINKS BOX | |||
12. UTILITIES | |||
13. ANIMATIONS | |||
14. MEDIA QUERIES | |||
==================================== */ | |||
/* ==================================== | |||
1. VARIABLES CSS | |||
==================================== */ | |||
:root { | |||
--color-primary: #87bfdb; | |||
--color-secondary: #eea529; | |||
--color-surface-0: #202122; | |||
--color-surface-1: #27292a; | |||
--color-surface-2: #2e3031; | |||
--color-base: #eaecf0; | |||
--color-subtle: #a2a9b1; | |||
--border-color-base: #3f4142; | |||
--space-xs: 0.25rem; | |||
--space-sm: 0.5rem; | |||
--space-md: 1rem; | |||
--space-lg: 1.5rem; | |||
--space-xl: 2rem; | |||
--space-2xl: 3rem; | |||
--radius-sm: 4px; | |||
--radius-md: 8px; | |||
--radius-lg: 12px; | |||
--radius-xl: 16px; | |||
} | |||
/* ==================================== | |||
2. HEADER & HERO | |||
==================================== */ | |||
.home-header { | |||
position: relative; | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
justify-content: center; | |||
min-height: 400px; | |||
padding: 3rem 1.5rem; | |||
background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%); | |||
border-radius: 16px; | |||
overflow: hidden; | |||
margin-bottom: 2rem; | |||
} | |||
.home-header::before { | |||
content: ''; | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
bottom: 0; | |||
background: | |||
radial-gradient(circle at 20% 50%, rgba(135, 191, 219, 0.1) 0%, transparent 50%), | |||
radial-gradient(circle at 80% 50%, rgba(238, 165, 41, 0.1) 0%, transparent 50%); | |||
pointer-events: none; | |||
} | } | ||
.home- | .home-header__content { | ||
position: relative; | |||
z-index: 2; | |||
text-align: center; | |||
max-width: 800px; | |||
animation: fadeIn 0.8s ease-out; | |||
} | } | ||
.home- | .home-header__logo { | ||
max-width: 300px; | |||
height: auto; | |||
margin-bottom: 1.5rem; | |||
filter: drop-shadow(0 4px 20px rgba(135, 191, 219, 0.3)); | |||
} | } | ||
.home- | .home-header__title { | ||
font-size: 2.5rem; | |||
font-weight: 800; | |||
margin-bottom: 1rem; | |||
color: var(--color-base); | color: var(--color-base); | ||
text-shadow: 0 2px 20px rgba(135, 191, 219, 0.4); | |||
} | |||
.home-header__subtitle { | |||
font-size: 1rem; | |||
color: var(--color-subtle); | |||
line-height: 1.6; | |||
} | |||
/* ==================================== | |||
3. BARRE DE RECHERCHE | |||
==================================== */ | |||
.home-search { | |||
position: relative; | |||
max-width: 600px; | |||
margin-left: auto; | |||
margin-right: auto; | |||
margin-bottom: 2rem; | |||
padding: 1rem 1.5rem; | |||
background: var(--color-surface-0); | |||
border: 2px solid var(--border-color-base); | |||
border-radius: 50px; | |||
display: flex; | |||
align-items: center; | |||
gap: 0.5rem; | |||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |||
} | } | ||
.home- | .home-search:hover { | ||
border-color: var(--color-primary); | |||
box-shadow: 0 4px 20px rgba(135, 191, 219, 0.15); | |||
} | } | ||
.home- | .home-search__icon { | ||
flex-shrink: 0; | |||
width: 20px; | |||
height: 20px; | |||
color: var(--color-subtle); | |||
transition: color 0.2s; | |||
} | } | ||
.home- | .home-search__input { | ||
flex: 1; | |||
border: none; | |||
background: transparent; | |||
font-size: 1rem; | |||
color: var(--color-base); | |||
outline: none; | |||
} | } | ||
.home- | .home-search__input::placeholder { | ||
color: var(--color-subtle); | |||
} | } | ||
.home- | .home-search__kbd { | ||
padding: 0.25rem 0.5rem; | |||
background: var(--color-surface-2); | |||
border: 1px solid var(--border-color-base); | |||
border-radius: 4px; | |||
font-size: 0.75rem; | |||
font-family: monospace; | |||
color: var(--color-subtle); | |||
} | |||
/* ==================================== | |||
4. EVENT BAR (Bannière événement) | |||
==================================== */ | |||
.home-event-bar { | |||
display: flex; | |||
align-items: center; | |||
gap: 1rem; | |||
padding: 0.75rem 1.5rem; | |||
background: linear-gradient(135deg, rgba(238, 165, 41, 0.1) 0%, rgba(135, 191, 219, 0.1) 100%); | |||
border-left: 4px solid var(--color-secondary); | |||
border-radius: var(--radius-md); | |||
margin-bottom: 2rem; | |||
transition: all 0.3s ease; | |||
} | } | ||
.home- | .home-event-bar:hover { | ||
background: linear-gradient(135deg, rgba(238, 165, 41, 0.15) 0%, rgba(135, 191, 219, 0.15) 100%); | |||
transform: translateX(4px); | |||
} | } | ||
.home- | .home-event-bar__icon { | ||
font-size: 1.5rem; | |||
line-height: 1; | |||
flex-shrink: 0; | |||
} | } | ||
.home- | .home-event-bar__content { | ||
flex: 1; | |||
display: flex; | |||
align-items: center; | |||
gap: 0.75rem; | |||
} | } | ||
.home- | .home-event-bar__label { | ||
font-size: 0.75rem; | |||
font-weight: 600; | |||
text-transform: uppercase; | |||
letter-spacing: 0.05em; | |||
color: var(--color-secondary); | |||
padding: 0.25rem 0.5rem; | |||
background: rgba(238, 165, 41, 0.2); | |||
border-radius: 4px; | |||
} | } | ||
.home- | .home-event-bar__title { | ||
font-size: 0.95rem; | |||
font-weight: 600; | |||
color: var(--color-base); | |||
} | } | ||
.home- | .home-event-bar__link { | ||
font-size: 0.875rem; | |||
font-weight: 600; | |||
color: var(--color-primary); | |||
text-decoration: none; | |||
white-space: nowrap; | |||
transition: color 0.2s; | |||
} | } | ||
.home- | .home-event-bar__link:hover { | ||
color: var(--color-secondary); | |||
} | } | ||
.home- | @media (max-width: 768px) { | ||
.home-event-bar { | |||
flex-direction: column; | |||
align-items: flex-start; | |||
gap: 0.5rem; | |||
padding: 1rem; | |||
} | |||
.home-event-bar__content { | |||
flex-direction: column; | |||
align-items: flex-start; | |||
gap: 0.5rem; | |||
} | |||
.home-event-bar__link { | |||
align-self: flex-end; | |||
} | |||
} | } | ||
. | |||
.home- | /* ==================================== | ||
5. NAVIGATION CARDS | |||
==================================== */ | |||
.home-nav { | |||
margin-bottom: 2rem; | |||
} | } | ||
.home- | .home-nav-grid { | ||
display: grid; | |||
grid-template-columns: repeat(6, 1fr); | |||
gap: 1rem; | |||
} | } | ||
.home- | .home-nav-card { | ||
position: relative; | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
justify-content: center; | |||
padding: 1.5rem 1rem; | |||
background: var(--color-surface-0); | |||
border: 2px solid var(--border-color-base); | |||
border-radius: var(--radius-lg); | |||
text-decoration: none; | |||
color: var(--color-base); | |||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |||
overflow: hidden; | |||
min-height: 140px; | |||
} | } | ||
.home- | .home-nav-card::before { | ||
content: ''; | |||
position: absolute; | |||
top: 0; | top: 0; | ||
left: 0; | |||
right: 0; | right: 0; | ||
border- | bottom: 0; | ||
border-bottom- | background-size: cover; | ||
background-position: center; | |||
opacity: 0.15; | |||
transition: opacity 0.3s, transform 0.3s; | |||
} | |||
.home-nav-card:hover { | |||
transform: translateY(-4px); | |||
border-color: var(--color-primary); | |||
box-shadow: 0 8px 24px rgba(135, 191, 219, 0.2); | |||
} | |||
.home-nav-card:hover::before { | |||
opacity: 0.25; | |||
transform: scale(1.05); | |||
} | |||
.home-nav-card__icon { | |||
font-size: 2rem; | |||
margin-bottom: 0.75rem; | |||
position: relative; | |||
z-index: 1; | |||
} | |||
.home-nav-card__title { | |||
font-size: 1rem; | |||
font-weight: 600; | |||
text-align: center; | |||
position: relative; | |||
z-index: 1; | |||
} | |||
/* ==================================== | |||
6. LAYOUT PRINCIPAL | |||
==================================== */ | |||
.home-container { | |||
display: grid; | |||
grid-template-columns: 1fr 400px; | |||
gap: 2rem; | |||
margin-bottom: 2rem; | |||
} | |||
.home-main { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 2rem; | |||
} | |||
.home-sidebar { | |||
display: grid; | |||
grid-template-columns: 1fr; | |||
gap: 1.5rem; | |||
align-content: start; | |||
} | |||
/* ==================================== | |||
6B. CADRES MODULES (Featured, Stats, etc.) | |||
==================================== */ | |||
.home-featured, | |||
.home-updates, | |||
.home-stats, | |||
.home-social, | |||
.home-links { | |||
background: var(--color-surface-0); | |||
border: 1px solid var(--border-color-base); | |||
border-radius: var(--radius-lg); | |||
padding: 1.5rem; | |||
transition: border-color 0.3s ease; | |||
} | |||
.home-featured:hover, | |||
.home-updates:hover, | |||
.home-stats:hover, | |||
.home-social:hover, | |||
.home-links:hover { | |||
border-color: var(--color-primary); | |||
} | |||
/* Titres des sections */ | |||
.home-featured__title, | |||
.home-updates__title, | |||
.home-stats__title, | |||
.home-social__title, | |||
.home-links__title { | |||
font-size: 1.25rem; | |||
font-weight: 700; | |||
color: var(--color-base); | |||
margin-bottom: 1.5rem; | |||
padding-bottom: 0.75rem; | |||
border-bottom: 2px solid var(--border-color-base); | |||
display: flex; | |||
align-items: center; | |||
gap: 0.5rem; | |||
} | |||
.home-featured__title::before { | |||
content: '⭐'; | |||
font-size: 1.25rem; | |||
} | |||
.home-updates__title::before { | |||
content: '📰'; | |||
font-size: 1.25rem; | |||
} | |||
.home-stats__title::before { | |||
content: '📊'; | |||
font-size: 1.25rem; | |||
} | } | ||
.home- | .home-social__title::before { | ||
content: '💬'; | |||
font-size: 1.25rem; | |||
} | } | ||
.home- | .home-links__title::before { | ||
content: '🔗'; | |||
font-size: 1.25rem; | |||
} | } | ||
.home- | /* ==================================== | ||
7. FEATURED ARTICLES | |||
==================================== */ | |||
.home-featured { | |||
padding: 1.5rem; | |||
background: var(--color-surface-0); | |||
border: 2px solid var(--border-color-base); | |||
border-radius: var(--radius-xl); | |||
} | } | ||
.home- | .home-featured__header { | ||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
margin-bottom: 1.5rem; | |||
} | |||
.home-featured__title { | |||
font-size: 1.5rem; | |||
font-weight: 700; | |||
color: var(--color-base); | |||
} | } | ||
.home- | .home-featured__link { | ||
font-size: 0.875rem; | |||
color: var(--color-primary); | |||
text-decoration: none; | |||
font-weight: 600; | |||
} | } | ||
.home- | .home-featured__link:hover { | ||
text-decoration: underline; | |||
} | } | ||
.home- | .home-featured__grid { | ||
display: grid; | |||
gap: 1rem; | |||
} | } | ||
.home- | .home-featured-item { | ||
display: grid; | |||
grid-template-columns: 120px 1fr; | |||
gap: 1rem; | |||
padding: 1rem; | |||
background: var(--color-surface-1); | |||
border-radius: var(--radius-lg); | |||
text-decoration: none; | |||
color: var(--color-base); | |||
transition: all 0.3s; | |||
} | } | ||
.home- | .home-featured-item:hover { | ||
background: var(--color-surface-2); | |||
transform: translateX(4px); | |||
} | } | ||
.home- | .home-featured-item__image { | ||
width: 120px; | |||
height: 80px; | |||
object-fit: cover; | |||
border-radius: var(--radius-md); | |||
} | } | ||
.home- | .home-featured-item__content { | ||
display: flex; | |||
flex-direction: column; | |||
justify-content: center; | |||
} | } | ||
.home- | .home-featured-item__title { | ||
font-size: 1.125rem; | |||
font-weight: 600; | |||
margin-bottom: 0.5rem; | |||
color: var(--color-base); | |||
} | } | ||
.home- | .home-featured-item__excerpt { | ||
font-size: 0.875rem; | |||
color: var(--color-subtle); | |||
line-height: 1.5; | |||
overflow: hidden; | |||
} | } | ||
/* ==================================== | |||
8. UPDATES | |||
==================================== */ | |||
.home-updates { | |||
padding: 1.5rem; | |||
background: var(--color-surface-0); | |||
border: 2px solid var(--border-color-base); | |||
border-radius: var(--radius-xl); | |||
} | } | ||
.home- | .home-updates__header { | ||
display: flex; | |||
align-items: center; | |||
gap: 0.5rem; | |||
margin-bottom: 1.5rem; | |||
} | } | ||
.home-updates__icon { | |||
font-size: 1.5rem; | |||
} | |||
.home-updates__title { | |||
font-size: 1.25rem; | |||
font-weight: 700; | |||
color: var(--color-base); | |||
} | |||
.home-updates__list { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 1rem; | |||
} | |||
.home-update-item { | |||
display: flex; | |||
gap: 1rem; | |||
padding: 1rem; | |||
background: var(--color-surface-1); | |||
border-radius: var(--radius-lg); | |||
border-left: 3px solid var(--color-primary); | |||
} | |||
.home-update-item__icon { | |||
flex-shrink: 0; | |||
width: 40px; | |||
height: 40px; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
background: rgba(135, 191, 219, 0.15); | |||
border-radius: 50%; | |||
font-size: 1.25rem; | |||
} | |||
.home-update-item__content { | |||
flex: 1; | |||
} | |||
.home-update-item__title { | |||
font-size: 1rem; | |||
font-weight: 600; | |||
color: var(--color-base); | |||
margin-bottom: 0.25rem; | |||
} | |||
.home-update-item__text { | |||
font-size: 0.875rem; | |||
color: var(--color-subtle); | |||
line-height: 1.5; | |||
} | |||
.home-update-item__meta { | |||
display: flex; | |||
align-items: center; | |||
gap: 1rem; | |||
margin-top: 0.5rem; | |||
font-size: 0.75rem; | |||
color: var(--color-subtle); | |||
} | |||
/* ==================================== | |||
9. STATS | |||
==================================== */ | |||
.home-stats { | |||
padding: 1.5rem; | |||
background: var(--color-surface-0); | |||
border: 2px solid var(--border-color-base); | |||
border-radius: var(--radius-xl); | |||
} | |||
.home-stats__title { | |||
font-size: 1.25rem; | |||
font-weight: 700; | |||
color: var(--color-base); | |||
margin-bottom: 1.5rem; | |||
} | |||
.home-stats__grid { | |||
display: grid; | |||
grid-template-columns: repeat(2, 1fr); | |||
gap: 1rem; | |||
} | |||
.home-stat-item { | |||
padding: 1rem; | |||
background: var(--color-surface-1); | |||
border-radius: var(--radius-lg); | |||
text-align: center; | |||
} | |||
.home-stats__number { | |||
font-size: 2.5rem; | |||
font-weight: 700; | |||
color: var(--color-primary); | |||
margin-bottom: 0.25rem; | |||
} | |||
.home-stats__label { | |||
font-size: 0.875rem; | |||
color: var(--color-subtle); | |||
text-transform: uppercase; | |||
letter-spacing: 0.05em; | |||
} | |||
/* ==================================== | |||
10. SOCIAL BUTTONS | |||
==================================== */ | |||
.home-social { | |||
padding: 1.5rem; | |||
background: var(--color-surface-0); | |||
border: 2px solid var(--border-color-base); | |||
border-radius: var(--radius-xl); | |||
} | |||
.home-social__title { | |||
font-size: 1.25rem; | |||
font-weight: 700; | |||
color: var(--color-base); | |||
margin-bottom: 1rem; | |||
} | |||
.home-social__grid { | |||
display: grid; | |||
gap: 0.75rem; | |||
} | |||
.home-social-btn { | |||
display: flex; | |||
align-items: center; | |||
gap: 0.75rem; | |||
padding: 0.875rem 1rem; | |||
background: var(--color-surface-1); | |||
border: 2px solid var(--border-color-base); | |||
border-radius: var(--radius-lg); | |||
text-decoration: none; | |||
color: var(--color-base); | |||
font-weight: 600; | |||
transition: all 0.3s; | |||
} | |||
.home-social-btn:hover { | |||
transform: translateX(4px); | |||
border-color: currentColor; | |||
} | |||
.home-social-btn__icon { | |||
font-size: 1.5rem; | |||
} | |||
.home-social-btn--discord { | |||
color: #5865f2; | |||
} | |||
.home-social-btn--patreon { | |||
color: #ff424d; | |||
} | |||
.home-social-btn--kofi { | |||
color: #ff5e5b; | |||
} | |||
.home-social-btn--reddit { | |||
color: #ff4500; | |||
} | |||
/* ==================================== | |||
11. LINKS BOX | |||
==================================== */ | |||
.home-links { | |||
padding: 1.5rem; | |||
background: var(--color-surface-0); | |||
border: 2px solid var(--border-color-base); | |||
border-radius: var(--radius-xl); | |||
} | |||
.home-links__title { | |||
font-size: 1.25rem; | |||
font-weight: 700; | |||
color: var(--color-base); | |||
margin-bottom: 1rem; | |||
} | |||
.home-links__list { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 0.5rem; | |||
} | |||
.home-links__item { | |||
display: flex; | |||
align-items: center; | |||
gap: 0.5rem; | |||
padding: 0.75rem; | |||
background: var(--color-surface-1); | |||
border-radius: var(--radius-md); | |||
text-decoration: none; | |||
color: var(--color-base); | |||
transition: all 0.2s; | |||
} | |||
.home-links__item:hover { | |||
background: var(--color-surface-2); | |||
border-color: var(--color-primary); | |||
} | |||
/* ==================================== | |||
12. UTILITIES | |||
==================================== */ | |||
.home-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); | |||
gap: 0.5rem; | |||
} | |||
.home-grid--col2 { | |||
grid-template-columns: 1fr 1fr; | |||
} | |||
.home-grid a.external { | |||
background-image: none; | |||
} | |||
/* ==================================== | |||
13. ANIMATIONS | |||
==================================== */ | |||
@keyframes fadeIn { | |||
from { | |||
opacity: 0; | |||
transform: translateY(20px); | |||
} | |||
to { | |||
opacity: 1; | |||
transform: translateY(0); | |||
} | |||
} | |||
/* ==================================== | |||
14. MEDIA QUERIES | |||
==================================== */ | |||
@media (min-width: 768px) { | |||
.home-header__title { | |||
font-size: 3rem; | |||
} | |||
.home-header__subtitle { | |||
font-size: 1.125rem; | |||
} | |||
} | } | ||
@media (min-width: 1200px) { | |||
.home-header__title { | |||
font-size: 3.5rem; | |||
} | |||
.home-header__subtitle { | |||
font-size: 1.25rem; | |||
} | |||
} | } | ||
@media (max-width: 1024px) { | |||
.home-container { | |||
grid-template-columns: 1fr; | |||
} | |||
.home-sidebar { | |||
grid-template-columns: 1fr 1fr; | |||
} | |||
.home-event { | |||
grid-template-columns: 1fr; | |||
} | |||
.home-event__image { | |||
height: 200px; | |||
} | |||
.home-nav-grid { | |||
grid-template-columns: repeat(4, 1fr); | |||
} | |||
} | } | ||
@media (max-width: 768px) { | |||
.home-header { | |||
min-height: 300px; | |||
padding: 2rem 1rem; | |||
} | |||
.home-header__logo { | |||
max-width: 200px; | |||
} | |||
.home-search { | |||
margin-left: 1rem; | |||
margin-right: 1rem; | |||
padding: 0.75rem 1rem; | |||
} | |||
.home-search__kbd { | |||
display: none; | |||
} | |||
.home-nav-grid { | |||
grid-template-columns: repeat(3, 1fr); | |||
} | |||
.home-sidebar { | |||
grid-template-columns: 1fr; | |||
} | |||
} | } | ||
.home- | @media (max-width: 480px) { | ||
.home-grid { | |||
padding: 0 0.5rem; | |||
} | |||
.home-nav-grid { | |||
grid-template-columns: repeat(2, 1fr); | |||
} | |||
.home-nav-card { | |||
padding: 1rem 0.75rem; | |||
} | |||
.home-stats__grid { | |||
grid-template-columns: 1fr; | |||
} | |||
.home-stats__number { | |||
font-size: 2rem; | |||
} | |||
} | } | ||
Dernière version du 29 octobre 2025 à 16:03
/* ====================================
TABLE DES MATIÈRES
====================================
1. VARIABLES CSS
2. HEADER & HERO
3. BARRE DE RECHERCHE
4. EVENT (Bannière événement)
5. NAVIGATION CARDS
6. LAYOUT PRINCIPAL
6b. CADRES
7. FEATURED ARTICLES
8. UPDATES
9. STATS
10. SOCIAL BUTTONS
11. LINKS BOX
12. UTILITIES
13. ANIMATIONS
14. MEDIA QUERIES
==================================== */
/* ====================================
1. VARIABLES CSS
==================================== */
:root {
--color-primary: #87bfdb;
--color-secondary: #eea529;
--color-surface-0: #202122;
--color-surface-1: #27292a;
--color-surface-2: #2e3031;
--color-base: #eaecf0;
--color-subtle: #a2a9b1;
--border-color-base: #3f4142;
--space-xs: 0.25rem;
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 1.5rem;
--space-xl: 2rem;
--space-2xl: 3rem;
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
}
/* ====================================
2. HEADER & HERO
==================================== */
.home-header {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 400px;
padding: 3rem 1.5rem;
background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
border-radius: 16px;
overflow: hidden;
margin-bottom: 2rem;
}
.home-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 50%, rgba(135, 191, 219, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 50%, rgba(238, 165, 41, 0.1) 0%, transparent 50%);
pointer-events: none;
}
.home-header__content {
position: relative;
z-index: 2;
text-align: center;
max-width: 800px;
animation: fadeIn 0.8s ease-out;
}
.home-header__logo {
max-width: 300px;
height: auto;
margin-bottom: 1.5rem;
filter: drop-shadow(0 4px 20px rgba(135, 191, 219, 0.3));
}
.home-header__title {
font-size: 2.5rem;
font-weight: 800;
margin-bottom: 1rem;
color: var(--color-base);
text-shadow: 0 2px 20px rgba(135, 191, 219, 0.4);
}
.home-header__subtitle {
font-size: 1rem;
color: var(--color-subtle);
line-height: 1.6;
}
/* ====================================
3. BARRE DE RECHERCHE
==================================== */
.home-search {
position: relative;
max-width: 600px;
margin-left: auto;
margin-right: auto;
margin-bottom: 2rem;
padding: 1rem 1.5rem;
background: var(--color-surface-0);
border: 2px solid var(--border-color-base);
border-radius: 50px;
display: flex;
align-items: center;
gap: 0.5rem;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-search:hover {
border-color: var(--color-primary);
box-shadow: 0 4px 20px rgba(135, 191, 219, 0.15);
}
.home-search__icon {
flex-shrink: 0;
width: 20px;
height: 20px;
color: var(--color-subtle);
transition: color 0.2s;
}
.home-search__input {
flex: 1;
border: none;
background: transparent;
font-size: 1rem;
color: var(--color-base);
outline: none;
}
.home-search__input::placeholder {
color: var(--color-subtle);
}
.home-search__kbd {
padding: 0.25rem 0.5rem;
background: var(--color-surface-2);
border: 1px solid var(--border-color-base);
border-radius: 4px;
font-size: 0.75rem;
font-family: monospace;
color: var(--color-subtle);
}
/* ====================================
4. EVENT BAR (Bannière événement)
==================================== */
.home-event-bar {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem 1.5rem;
background: linear-gradient(135deg, rgba(238, 165, 41, 0.1) 0%, rgba(135, 191, 219, 0.1) 100%);
border-left: 4px solid var(--color-secondary);
border-radius: var(--radius-md);
margin-bottom: 2rem;
transition: all 0.3s ease;
}
.home-event-bar:hover {
background: linear-gradient(135deg, rgba(238, 165, 41, 0.15) 0%, rgba(135, 191, 219, 0.15) 100%);
transform: translateX(4px);
}
.home-event-bar__icon {
font-size: 1.5rem;
line-height: 1;
flex-shrink: 0;
}
.home-event-bar__content {
flex: 1;
display: flex;
align-items: center;
gap: 0.75rem;
}
.home-event-bar__label {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-secondary);
padding: 0.25rem 0.5rem;
background: rgba(238, 165, 41, 0.2);
border-radius: 4px;
}
.home-event-bar__title {
font-size: 0.95rem;
font-weight: 600;
color: var(--color-base);
}
.home-event-bar__link {
font-size: 0.875rem;
font-weight: 600;
color: var(--color-primary);
text-decoration: none;
white-space: nowrap;
transition: color 0.2s;
}
.home-event-bar__link:hover {
color: var(--color-secondary);
}
@media (max-width: 768px) {
.home-event-bar {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
padding: 1rem;
}
.home-event-bar__content {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
.home-event-bar__link {
align-self: flex-end;
}
}
/* ====================================
5. NAVIGATION CARDS
==================================== */
.home-nav {
margin-bottom: 2rem;
}
.home-nav-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 1rem;
}
.home-nav-card {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1.5rem 1rem;
background: var(--color-surface-0);
border: 2px solid var(--border-color-base);
border-radius: var(--radius-lg);
text-decoration: none;
color: var(--color-base);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
overflow: hidden;
min-height: 140px;
}
.home-nav-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-size: cover;
background-position: center;
opacity: 0.15;
transition: opacity 0.3s, transform 0.3s;
}
.home-nav-card:hover {
transform: translateY(-4px);
border-color: var(--color-primary);
box-shadow: 0 8px 24px rgba(135, 191, 219, 0.2);
}
.home-nav-card:hover::before {
opacity: 0.25;
transform: scale(1.05);
}
.home-nav-card__icon {
font-size: 2rem;
margin-bottom: 0.75rem;
position: relative;
z-index: 1;
}
.home-nav-card__title {
font-size: 1rem;
font-weight: 600;
text-align: center;
position: relative;
z-index: 1;
}
/* ====================================
6. LAYOUT PRINCIPAL
==================================== */
.home-container {
display: grid;
grid-template-columns: 1fr 400px;
gap: 2rem;
margin-bottom: 2rem;
}
.home-main {
display: flex;
flex-direction: column;
gap: 2rem;
}
.home-sidebar {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
align-content: start;
}
/* ====================================
6B. CADRES MODULES (Featured, Stats, etc.)
==================================== */
.home-featured,
.home-updates,
.home-stats,
.home-social,
.home-links {
background: var(--color-surface-0);
border: 1px solid var(--border-color-base);
border-radius: var(--radius-lg);
padding: 1.5rem;
transition: border-color 0.3s ease;
}
.home-featured:hover,
.home-updates:hover,
.home-stats:hover,
.home-social:hover,
.home-links:hover {
border-color: var(--color-primary);
}
/* Titres des sections */
.home-featured__title,
.home-updates__title,
.home-stats__title,
.home-social__title,
.home-links__title {
font-size: 1.25rem;
font-weight: 700;
color: var(--color-base);
margin-bottom: 1.5rem;
padding-bottom: 0.75rem;
border-bottom: 2px solid var(--border-color-base);
display: flex;
align-items: center;
gap: 0.5rem;
}
.home-featured__title::before {
content: '⭐';
font-size: 1.25rem;
}
.home-updates__title::before {
content: '📰';
font-size: 1.25rem;
}
.home-stats__title::before {
content: '📊';
font-size: 1.25rem;
}
.home-social__title::before {
content: '💬';
font-size: 1.25rem;
}
.home-links__title::before {
content: '🔗';
font-size: 1.25rem;
}
/* ====================================
7. FEATURED ARTICLES
==================================== */
.home-featured {
padding: 1.5rem;
background: var(--color-surface-0);
border: 2px solid var(--border-color-base);
border-radius: var(--radius-xl);
}
.home-featured__header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.5rem;
}
.home-featured__title {
font-size: 1.5rem;
font-weight: 700;
color: var(--color-base);
}
.home-featured__link {
font-size: 0.875rem;
color: var(--color-primary);
text-decoration: none;
font-weight: 600;
}
.home-featured__link:hover {
text-decoration: underline;
}
.home-featured__grid {
display: grid;
gap: 1rem;
}
.home-featured-item {
display: grid;
grid-template-columns: 120px 1fr;
gap: 1rem;
padding: 1rem;
background: var(--color-surface-1);
border-radius: var(--radius-lg);
text-decoration: none;
color: var(--color-base);
transition: all 0.3s;
}
.home-featured-item:hover {
background: var(--color-surface-2);
transform: translateX(4px);
}
.home-featured-item__image {
width: 120px;
height: 80px;
object-fit: cover;
border-radius: var(--radius-md);
}
.home-featured-item__content {
display: flex;
flex-direction: column;
justify-content: center;
}
.home-featured-item__title {
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--color-base);
}
.home-featured-item__excerpt {
font-size: 0.875rem;
color: var(--color-subtle);
line-height: 1.5;
overflow: hidden;
}
/* ====================================
8. UPDATES
==================================== */
.home-updates {
padding: 1.5rem;
background: var(--color-surface-0);
border: 2px solid var(--border-color-base);
border-radius: var(--radius-xl);
}
.home-updates__header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1.5rem;
}
.home-updates__icon {
font-size: 1.5rem;
}
.home-updates__title {
font-size: 1.25rem;
font-weight: 700;
color: var(--color-base);
}
.home-updates__list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.home-update-item {
display: flex;
gap: 1rem;
padding: 1rem;
background: var(--color-surface-1);
border-radius: var(--radius-lg);
border-left: 3px solid var(--color-primary);
}
.home-update-item__icon {
flex-shrink: 0;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(135, 191, 219, 0.15);
border-radius: 50%;
font-size: 1.25rem;
}
.home-update-item__content {
flex: 1;
}
.home-update-item__title {
font-size: 1rem;
font-weight: 600;
color: var(--color-base);
margin-bottom: 0.25rem;
}
.home-update-item__text {
font-size: 0.875rem;
color: var(--color-subtle);
line-height: 1.5;
}
.home-update-item__meta {
display: flex;
align-items: center;
gap: 1rem;
margin-top: 0.5rem;
font-size: 0.75rem;
color: var(--color-subtle);
}
/* ====================================
9. STATS
==================================== */
.home-stats {
padding: 1.5rem;
background: var(--color-surface-0);
border: 2px solid var(--border-color-base);
border-radius: var(--radius-xl);
}
.home-stats__title {
font-size: 1.25rem;
font-weight: 700;
color: var(--color-base);
margin-bottom: 1.5rem;
}
.home-stats__grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.home-stat-item {
padding: 1rem;
background: var(--color-surface-1);
border-radius: var(--radius-lg);
text-align: center;
}
.home-stats__number {
font-size: 2.5rem;
font-weight: 700;
color: var(--color-primary);
margin-bottom: 0.25rem;
}
.home-stats__label {
font-size: 0.875rem;
color: var(--color-subtle);
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* ====================================
10. SOCIAL BUTTONS
==================================== */
.home-social {
padding: 1.5rem;
background: var(--color-surface-0);
border: 2px solid var(--border-color-base);
border-radius: var(--radius-xl);
}
.home-social__title {
font-size: 1.25rem;
font-weight: 700;
color: var(--color-base);
margin-bottom: 1rem;
}
.home-social__grid {
display: grid;
gap: 0.75rem;
}
.home-social-btn {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.875rem 1rem;
background: var(--color-surface-1);
border: 2px solid var(--border-color-base);
border-radius: var(--radius-lg);
text-decoration: none;
color: var(--color-base);
font-weight: 600;
transition: all 0.3s;
}
.home-social-btn:hover {
transform: translateX(4px);
border-color: currentColor;
}
.home-social-btn__icon {
font-size: 1.5rem;
}
.home-social-btn--discord {
color: #5865f2;
}
.home-social-btn--patreon {
color: #ff424d;
}
.home-social-btn--kofi {
color: #ff5e5b;
}
.home-social-btn--reddit {
color: #ff4500;
}
/* ====================================
11. LINKS BOX
==================================== */
.home-links {
padding: 1.5rem;
background: var(--color-surface-0);
border: 2px solid var(--border-color-base);
border-radius: var(--radius-xl);
}
.home-links__title {
font-size: 1.25rem;
font-weight: 700;
color: var(--color-base);
margin-bottom: 1rem;
}
.home-links__list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.home-links__item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem;
background: var(--color-surface-1);
border-radius: var(--radius-md);
text-decoration: none;
color: var(--color-base);
transition: all 0.2s;
}
.home-links__item:hover {
background: var(--color-surface-2);
border-color: var(--color-primary);
}
/* ====================================
12. UTILITIES
==================================== */
.home-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 0.5rem;
}
.home-grid--col2 {
grid-template-columns: 1fr 1fr;
}
.home-grid a.external {
background-image: none;
}
/* ====================================
13. ANIMATIONS
==================================== */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ====================================
14. MEDIA QUERIES
==================================== */
@media (min-width: 768px) {
.home-header__title {
font-size: 3rem;
}
.home-header__subtitle {
font-size: 1.125rem;
}
}
@media (min-width: 1200px) {
.home-header__title {
font-size: 3.5rem;
}
.home-header__subtitle {
font-size: 1.25rem;
}
}
@media (max-width: 1024px) {
.home-container {
grid-template-columns: 1fr;
}
.home-sidebar {
grid-template-columns: 1fr 1fr;
}
.home-event {
grid-template-columns: 1fr;
}
.home-event__image {
height: 200px;
}
.home-nav-grid {
grid-template-columns: repeat(4, 1fr);
}
}
@media (max-width: 768px) {
.home-header {
min-height: 300px;
padding: 2rem 1rem;
}
.home-header__logo {
max-width: 200px;
}
.home-search {
margin-left: 1rem;
margin-right: 1rem;
padding: 0.75rem 1rem;
}
.home-search__kbd {
display: none;
}
.home-nav-grid {
grid-template-columns: repeat(3, 1fr);
}
.home-sidebar {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.home-grid {
padding: 0 0.5rem;
}
.home-nav-grid {
grid-template-columns: repeat(2, 1fr);
}
.home-nav-card {
padding: 1rem 0.75rem;
}
.home-stats__grid {
grid-template-columns: 1fr;
}
.home-stats__number {
font-size: 2rem;
}
}