« Modèle:Accueil/shared/styles.css » : différence entre les versions
De Nefald
Autres actions
m gap + clean Balise : Révoqué |
Annulation des modifications 4484 de Hiob (discussion) Balise : Annulation |
||
| Ligne 8 : | Ligne 8 : | ||
5. NAVIGATION CARDS | 5. NAVIGATION CARDS | ||
6. LAYOUT PRINCIPAL | 6. LAYOUT PRINCIPAL | ||
6b. CADRES | 6b. CADRES | ||
7. FEATURED ARTICLES | 7. FEATURED ARTICLES | ||
8. UPDATES | 8. UPDATES | ||
| Ligne 26 : | Ligne 26 : | ||
--color-primary: #87bfdb; | --color-primary: #87bfdb; | ||
--color-secondary: #eea529; | --color-secondary: #eea529; | ||
--color-surface-0: #202122; | --color-surface-0: #202122; | ||
--color-surface-1: #27292a; | --color-surface-1: #27292a; | ||
--color-surface-2: #2e3031; | --color-surface-2: #2e3031; | ||
--color-base: #eaecf0; | --color-base: #eaecf0; | ||
--color-subtle: #a2a9b1; | --color-subtle: #a2a9b1; | ||
--border-color-base: #3f4142; | --border-color-base: #3f4142; | ||
--space-xs: 0.25rem; | --space-xs: 0.25rem; | ||
--space-sm: 0.5rem; | --space-sm: 0.5rem; | ||
| Ligne 40 : | Ligne 38 : | ||
--space-xl: 2rem; | --space-xl: 2rem; | ||
--space-2xl: 3rem; | --space-2xl: 3rem; | ||
--radius-sm: 4px; | --radius-sm: 4px; | ||
--radius-md: 8px; | --radius-md: 8px; | ||
--radius-lg: 12px; | --radius-lg: 12px; | ||
--radius-xl: 16px; | --radius-xl: 16px; | ||
} | } | ||
| Ligne 70 : | Ligne 57 : | ||
padding: 3rem 1.5rem; | padding: 3rem 1.5rem; | ||
background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%); | background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%); | ||
border-radius: | border-radius: 16px; | ||
overflow: hidden; | overflow: hidden; | ||
margin-bottom: | margin-bottom: 2rem; | ||
} | } | ||
| Ligne 99 : | Ligne 86 : | ||
max-width: 400px; | max-width: 400px; | ||
height: auto; | height: auto; | ||
margin-bottom: | margin-bottom: 1.5rem; | ||
filter: drop-shadow(0 4px 20px rgba(135, 191, 219, 0.3)); | filter: drop-shadow(0 4px 20px rgba(135, 191, 219, 0.3)); | ||
} | } | ||
| Ligne 106 : | Ligne 93 : | ||
font-size: 2.5rem; | font-size: 2.5rem; | ||
font-weight: 800; | font-weight: 800; | ||
margin-bottom: | margin-bottom: 1rem; | ||
color: var(--color-base); | color: var(--color-base); | ||
text-shadow: 0 2px 20px rgba(135, 191, 219, 0.4); | text-shadow: 0 2px 20px rgba(135, 191, 219, 0.4); | ||
| Ligne 126 : | Ligne 113 : | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: auto; | margin-right: auto; | ||
margin-bottom: | margin-bottom: 2rem; | ||
padding: | padding: 1rem 1.5rem; | ||
background: var(--color-surface-0); | background: var(--color-surface-0); | ||
border: 2px solid var(--border-color-base); | border: 2px solid var(--border-color-base); | ||
| Ligne 133 : | Ligne 120 : | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 0.5rem; | ||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | ||
} | } | ||
| Ligne 164 : | Ligne 151 : | ||
.home-search__kbd { | .home-search__kbd { | ||
padding: | padding: 0.25rem 0.5rem; | ||
background: var(--color-surface-2); | background: var(--color-surface-2); | ||
border: 1px solid var(--border-color-base); | border: 1px solid var(--border-color-base); | ||
border-radius: | border-radius: 4px; | ||
font-size: 0.75rem; | font-size: 0.75rem; | ||
font-family: monospace; | font-family: monospace; | ||
| Ligne 180 : | Ligne 167 : | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 1rem; | ||
padding: | padding: 0.75rem 1.5rem; | ||
background: linear-gradient(135deg, rgba(238, 165, 41, 0.1) 0%, rgba(135, 191, 219, 0.1) 100%); | background: linear-gradient(135deg, rgba(238, 165, 41, 0.1) 0%, rgba(135, 191, 219, 0.1) 100%); | ||
border-radius: var(--radius- | border-left: 4px solid var(--color-secondary); | ||
margin-bottom: | 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 { | .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); | color: var(--color-secondary); | ||
padding: 0.25rem 0.5rem; | |||
background: rgba(238, 165, 41, 0.2); | |||
border-radius: 4px; | |||
} | } | ||
.home-event- | .home-event-bar__title { | ||
font-size: 0.95rem; | |||
font-weight: 600; | |||
color: var(--color-base); | color: var(--color-base); | ||
} | } | ||
.home-event-bar__link { | .home-event-bar__link { | ||
font-size: 0.875rem; | |||
font-weight: 600; | |||
color: var(--color-primary); | color: var(--color-primary); | ||
text-decoration: none; | text-decoration: none; | ||
white-space: nowrap; | |||
transition: color 0.2s; | transition: color 0.2s; | ||
} | } | ||
.home-event-bar__link:hover { | .home-event-bar__link:hover { | ||
color: var(--color- | 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; | |||
} | |||
} | } | ||
| Ligne 215 : | Ligne 247 : | ||
5. NAVIGATION CARDS | 5. NAVIGATION CARDS | ||
==================================== */ | ==================================== */ | ||
.home-nav { | |||
margin-bottom: 2rem; | |||
} | |||
.home-nav-grid { | .home-nav-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat( | grid-template-columns: repeat(6, 1fr); | ||
gap: | gap: 1rem; | ||
} | } | ||
.home-nav-card { | .home-nav-card { | ||
padding: var(-- | 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); | border-radius: var(--radius-lg); | ||
text- | text-decoration: none; | ||
transition: | 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 { | .home-nav-card:hover { | ||
transform: translateY(-4px); | transform: translateY(-4px); | ||
box-shadow: 0 8px 24px rgba( | 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 { | .home-nav-card__icon { | ||
font-size: 2rem; | |||
margin-bottom: 0.75rem; | |||
position: relative; | |||
z-index: 1; | |||
} | } | ||
.home-nav-card__title { | .home-nav-card__title { | ||
font-size: 1rem; | font-size: 1rem; | ||
font-weight: | font-weight: 600; | ||
text-align: center; | |||
position: relative; | |||
z-index: 1; | |||
} | } | ||
| Ligne 256 : | Ligne 320 : | ||
.home-container { | .home-container { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 1fr 400px; | ||
gap: | gap: 2rem; | ||
margin-bottom: | margin-bottom: 2rem; | ||
} | } | ||
.home-main | .home-main { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: | gap: 2rem; | ||
} | } | ||
.home-sidebar { | .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; | display: flex; | ||
align-items: center; | |||
gap: | 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: '💬'; | |||
.home- | font-size: 1.25rem; | ||
} | } | ||
.home-links__title::before { | |||
.home- | content: '🔗'; | ||
font-size: 1.25rem; | |||
} | } | ||
| Ligne 302 : | Ligne 409 : | ||
.home-featured { | .home-featured { | ||
padding: | padding: 1.5rem; | ||
background: var(--color-surface-0); | background: var(--color-surface-0); | ||
border: 2px solid var(--border-color-base); | |||
border-radius: var(--radius-xl); | border-radius: var(--radius-xl); | ||
} | |||
.home-featured__header { | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
margin-bottom: 1.5rem; | |||
} | } | ||
.home-featured__title { | .home-featured__title { | ||
font-size: 1. | font-size: 1.5rem; | ||
font-weight: 700; | font-weight: 700; | ||
color: var(--color-base); | color: var(--color-base); | ||
} | } | ||
.home- | .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; | display: flex; | ||
flex-direction: column; | 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); | color: var(--color-base); | ||
} | } | ||
.home- | .home-featured-item__excerpt { | ||
color: var(--color- | font-size: 0.875rem; | ||
color: var(--color-subtle); | |||
line-height: 1.5; | |||
overflow: hidden; | |||
} | } | ||
| Ligne 344 : | Ligne 493 : | ||
.home-updates { | .home-updates { | ||
background: var(--color-surface- | padding: 1.5rem; | ||
background: var(--color-surface-0); | |||
border: 2px solid var(--border-color-base); | |||
border-radius: var(--radius-xl); | 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; | |||
} | } | ||
| Ligne 354 : | Ligne 514 : | ||
font-weight: 700; | font-weight: 700; | ||
color: var(--color-base); | color: var(--color-base); | ||
} | } | ||
| Ligne 360 : | Ligne 519 : | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: | gap: 1rem; | ||
} | } | ||
.home- | .home-update-item { | ||
color: var(--color- | 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- | .home-update-item__title { | ||
font-size: 1rem; | |||
font-weight: 600; | font-weight: 600; | ||
color: var(--color-base); | |||
margin-bottom: 0.25rem; | |||
} | } | ||
.home- | .home-update-item__text { | ||
color: var(--color- | 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); | |||
} | |||
/* ==================================== | /* ==================================== | ||
| Ligne 385 : | Ligne 574 : | ||
.home-stats { | .home-stats { | ||
background: var(--color-surface- | padding: 1.5rem; | ||
background: var(--color-surface-0); | |||
border: 2px solid var(--border-color-base); | |||
border-radius: var(--radius-xl); | border-radius: var(--radius-xl); | ||
} | } | ||
| Ligne 395 : | Ligne 584 : | ||
font-weight: 700; | font-weight: 700; | ||
color: var(--color-base); | color: var(--color-base); | ||
margin-bottom: | margin-bottom: 1.5rem; | ||
} | } | ||
| Ligne 401 : | Ligne 590 : | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, 1fr); | ||
gap: | gap: 1rem; | ||
} | } | ||
.home-stat-item { | .home-stat-item { | ||
padding: | padding: 1rem; | ||
background: var(--color-surface- | background: var(--color-surface-1); | ||
border-radius: var(--radius-lg); | border-radius: var(--radius-lg); | ||
text-align: center; | text-align: center; | ||
} | } | ||
.home-stats__number { | .home-stats__number { | ||
font-size: 1. | font-size: 1.5rem; | ||
font-weight: 700; | font-weight: 700; | ||
color: var(--color-primary); | color: var(--color-primary); | ||
margin-bottom: | margin-bottom: 0.25rem; | ||
} | } | ||
| Ligne 449 : | Ligne 637 : | ||
.home-links { | .home-links { | ||
padding: | padding: 1.5rem; | ||
background: var(--color-surface-0); | background: var(--color-surface-0); | ||
border: 2px solid var(--border-color-base); | border: 2px solid var(--border-color-base); | ||
| Ligne 459 : | Ligne 647 : | ||
font-weight: 700; | font-weight: 700; | ||
color: var(--color-base); | color: var(--color-base); | ||
margin-bottom: | margin-bottom: 1rem; | ||
} | } | ||
| Ligne 465 : | Ligne 653 : | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: | gap: 0.5rem; | ||
} | } | ||
| Ligne 471 : | Ligne 659 : | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 0.5rem; | ||
padding: | padding: 0.75rem; | ||
background: var(--color-surface-1); | background: var(--color-surface-1); | ||
border-radius: var(--radius-md); | border-radius: var(--radius-md); | ||
| Ligne 526 : | Ligne 714 : | ||
@media (max-width: 1024px) { | @media (max-width: 1024px) { | ||
.home-container { | .home-container { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
.home-sidebar { | .home-sidebar { | ||
grid-template-columns: 1fr 1fr; | grid-template-columns: 1fr 1fr; | ||
} | } | ||
| Ligne 542 : | Ligne 730 : | ||
.home-nav-grid { | .home-nav-grid { | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, 1fr); | ||
} | } | ||
} | } | ||
| Ligne 567 : | Ligne 755 : | ||
.home-nav-grid { | .home-nav-grid { | ||
grid-template-columns: repeat(3, 1fr); | grid-template-columns: repeat(3, 1fr); | ||
} | } | ||
.home-sidebar { | .home-sidebar { | ||
grid-template-columns: 1fr | grid-template-columns: 1fr; | ||
} | } | ||
} | } | ||
| Ligne 597 : | Ligne 769 : | ||
.home-nav-grid { | .home-nav-grid { | ||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, 1fr); | ||
} | } | ||
| Ligne 605 : | Ligne 777 : | ||
.home-stats__grid { | .home-stats__grid { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
.home-stats__number { | .home-stats__number { | ||
font-size: 2rem; | font-size: 2rem; | ||
} | } | ||
} | } | ||
Dernière version du 6 février 2026 à 11:11
/* ====================================
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: 400px;
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: 1.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
==================================== */
/* ====================================
SUPPRESSION DES STYLES CONFLICTUELS
Les règles suivantes ont été SUPPRIMÉES car elles
entraient en conflit avec le modèle ButtonLink :
- #home-card-discord, #home-card-patreon, #home-card-gitlab
- min-height forcé
- display: flex !important
- Centrage forcé des images
Le modèle ButtonLink gère maintenant tout automatiquement.
==================================== */
/* ====================================
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);
}
/* ====================================
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;
}
}