Basculer le menu
Changer de menu des préférences
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.

« Modèle:Accueil/shared/styles.css » : différence entre les versions

De Nefald
Hiob (discussion | contributions)
mAucun résumé des modifications
Hiob (discussion | contributions)
Aucun résumé des modifications
 
(10 versions intermédiaires par le même utilisateur non affichées)
Ligne 2 : Ligne 2 :
   TABLE DES MATIÈRES
   TABLE DES MATIÈRES
   ====================================
   ====================================
   1. HEADER & HERO
   1. VARIABLES CSS
   2. BARRE DE RECHERCHE
  2. HEADER & HERO
  3. GRID SYSTEM
   3. BARRE DE RECHERCHE
   4. BADGES
   4. EVENT (Bannière événement)
   5. CARDS
   5. NAVIGATION CARDS
   6. LINKS & BUTTONS
   6. LAYOUT PRINCIPAL
   7. SOCIAL MEDIA
  6b. CADRES
   8. FOOTER
   7. FEATURED ARTICLES
   9. ANIMATIONS
   8. UPDATES
   10. MEDIA QUERIES
   9. STATS
  10. SOCIAL BUTTONS
  11. LINKS BOX
  12. UTILITIES
  13. ANIMATIONS
   14. MEDIA QUERIES
   ==================================== */
   ==================================== */


/* ====================================
/* ====================================
   1. HEADER & HERO
   1. VARIABLES CSS
   ==================================== */
   ==================================== */


.tg-mainpage-header {
: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;
     position: relative;
     margin-top: -2rem;
     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;
     margin-bottom: 2rem;
    padding: 8rem 2rem 6rem;
    clear: both;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.3) 0%, rgba(36, 59, 85, 0.2) 100%);
}
}


.tg-mainpage-header::before {
.home-header::before {
     content: '';
     content: '';
     position: absolute;
     position: absolute;
Ligne 36 : Ligne 69 :
     right: 0;
     right: 0;
     bottom: 0;
     bottom: 0;
     background-image: url();
     background:
    background-repeat: no-repeat;
        radial-gradient(circle at 20% 50%, rgba(135, 191, 219, 0.1) 0%, transparent 50%),
    background-position: center;
        radial-gradient(circle at 80% 50%, rgba(238, 165, 41, 0.1) 0%, transparent 50%);
    background-size: contain;
    opacity: 0.05;
    filter: var(--filter-invert);
     pointer-events: none;
     pointer-events: none;
    animation: spin 120s infinite linear;
}
}


.tg-mainpage-content {
.home-header__content {
     align-items: center;
     position: relative;
    display: flex;
     z-index: 2;
     flex-direction: column;
     text-align: center;
     text-align: center;
    pointer-events: auto;
     max-width: 800px;
     max-width: 800px;
    margin: 0 auto;
     animation: fadeIn 0.8s ease-out;
     animation: fadeIn 0.8s ease-out;
}
}


.tg-mainpage-header-nefald {
.home-header__logo {
     position: relative;
     max-width: 300px;
    width: 180px;
     height: auto;
     max-width: 100%;
     margin-bottom: 1.5rem;
     margin-bottom: 1.5rem;
     filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
     filter: drop-shadow(0 4px 20px rgba(135, 191, 219, 0.3));
}
}


.tg-mainpage-header-nefald::before {
.home-header__title {
     content: '';
     font-size: 2.5rem;
     position: absolute;
     font-weight: 800;
     left: 0;
     margin-bottom: 1rem;
    right: 0;
     color: var(--color-base);
    top: -100%;
     text-shadow: 0 2px 20px rgba(135, 191, 219, 0.4);
    margin: 0 auto;
     width: 50%;
    height: 100%;
    background-image: url();
    background-repeat: no-repeat;
     background-position: bottom center;
    opacity: 0.2;
    filter: var(--filter-invert);
}
}


.tg-mainpage-header-nefald img {
.home-header__subtitle {
     width: 100%;
     font-size: 1rem;
    height: auto;
     color: var(--color-subtle);
     filter: var(--filter-invert);
    line-height: 1.6;
}
}


.tg-mainpage-header-tagline {
/* ====================================
     margin-top: 0.5rem;
  3. BARRE DE RECHERCHE
  ==================================== */
 
.home-search {
    position: relative;
    max-width: 600px;
    margin-left: auto;
     margin-right: auto;
     margin-bottom: 2rem;
     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);
     color: var(--color-subtle);
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.8;
}
}


.tg-mainpage-header-search {
/* ====================================
  4. EVENT BAR (Bannière événement)
  ==================================== */
 
.home-event-bar {
    display: flex;
     align-items: center;
     align-items: center;
     background-color: var(--tg-color-progressive);
    gap: 1rem;
     border-radius: var(--tg-border-radius-pill);
    padding: 0.75rem 1.5rem;
     color: var(--tg-color-inverted-progressive);
     background: linear-gradient(135deg, rgba(238, 165, 41, 0.1) 0%, rgba(135, 191, 219, 0.1) 100%);
     cursor: pointer;
    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;
     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-size: 0.875rem;
     font-weight: var(--font-weight-medium);
     font-weight: 600;
     gap: 0.5rem;
    color: var(--color-primary);
     line-height: 1;
     text-decoration: none;
     margin-top: 1rem;
     white-space: nowrap;
    padding: 1rem 2rem;
     transition: color 0.2s;
     user-select: none;
}
 
.home-event-bar__link:hover {
     color: var(--color-secondary);
}
}


.tg-mainpage-header-search:before {
@media (max-width: 768px) {
    content: '';
    .home-event-bar {
    width: 1rem;
        flex-direction: column;
    height: 1rem;
        align-items: flex-start;
     mask-image: url();
        gap: 0.5rem;
    mask-size: contain;
        padding: 1rem;
     background-color: currentColor;
     }
     display: block;
   
    .home-event-bar__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
     }
   
    .home-event-bar__link {
        align-self: flex-end;
     }
}
}


/* ====================================
/* ====================================
   2. BARRE DE RECHERCHE
   5. NAVIGATION CARDS
   ==================================== */
   ==================================== */


.home-search {
.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;
     display: flex;
    flex-direction: column;
     align-items: center;
     align-items: center;
     gap: 1rem;
     justify-content: center;
    max-width: 560px;
     padding: 1.5rem 1rem;
    width: 100%;
     background: var(--color-surface-0);
    margin: 0 auto;
     border: 2px solid var(--border-color-base);
     padding: 1.125rem 1.75rem;
     border-radius: var(--radius-lg);
     background: rgba(255, 255, 255, 0.03);
     text-decoration: none;
     border: 1.5px solid rgba(255, 255, 255, 0.08);
     color: var(--color-base);
     border-radius: 16px;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
     cursor: pointer;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 140px;
}
}


.home-search:hover {
.home-nav-card::before {
     background: rgba(255, 255, 255, 0.06);
     content: '';
     border-color: rgba(255, 255, 255, 0.12);
    position: absolute;
     box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    top: 0;
    transform: translateY(-2px);
     left: 0;
     right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    transition: opacity 0.3s, transform 0.3s;
}
}


.home-search:active {
.home-nav-card:hover {
     transform: translateY(0);
     transform: translateY(-4px);
     box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
     box-shadow: 0 8px 24px rgba(135, 191, 219, 0.2);
}
}


.home-search:focus {
.home-nav-card:hover::before {
     outline: 2px solid rgba(66, 133, 244, 0.4);
     opacity: 0.25;
     outline-offset: 3px;
     transform: scale(1.05);
}
}


.home-search__icon {
.home-nav-card__icon {
     font-size: 1.25rem;
     font-size: 2rem;
     opacity: 0.4;
     margin-bottom: 0.75rem;
     flex-shrink: 0;
     position: relative;
     transition: opacity 0.2s ease;
     z-index: 1;
}
}


.home-search:hover .home-search__icon {
.home-nav-card__title {
     opacity: 0.6;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    position: relative;
     z-index: 1;
}
}


.home-search__text {
/* ====================================
    flex: 1;
  6. LAYOUT PRINCIPAL
    font-size: 1rem;
  ==================================== */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    user-select: none;
    text-align: left;
    transition: color 0.2s ease;
}


.home-search:hover .home-search__text {
.home-container {
     color: rgba(255, 255, 255, 0.8);
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
     margin-bottom: 2rem;
}
}


.home-search__kbd {
.home-main {
     font-family: monospace;
     display: flex;
     font-size: 0.8125rem;
     flex-direction: column;
     font-weight: 600;
     gap: 2rem;
    padding: 0.375rem 0.625rem;
    min-width: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    transition: all 0.2s ease;
}
}


.home-search:hover .home-search__kbd {
.home-sidebar {
     background: rgba(255, 255, 255, 0.06);
     display: grid;
     border-color: rgba(255, 255, 255, 0.12);
     grid-template-columns: 1fr;
     color: rgba(255, 255, 255, 0.6);
    gap: 1.5rem;
     align-content: start;
}
}


/* ====================================
/* ====================================
   3. GRID SYSTEM
   6B. CADRES MODULES (Featured, Stats, etc.)
   ==================================== */
   ==================================== */


.home-grid {
.home-featured,
     display: grid;
.home-updates,
     grid: auto-flow dense/repeat(auto-fit, minmax(9.375rem, 1fr));
.home-stats,
     grid-auto-rows: minmax(3rem, auto);
.home-social,
     grid-gap: var(--space-xs);
.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-grid--col2 {
.home-social__title::before {
     grid-template-columns: 1fr 1fr;
     content: '💬';
    font-size: 1.25rem;
}
}


.home-grid a.external {
.home-links__title::before {
     background-image: none;
     content: '🔗';
    font-size: 1.25rem;
}
}


/* ====================================
/* ====================================
   4. BADGES
   7. FEATURED ARTICLES
   ==================================== */
   ==================================== */


.home-badge {
.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;
     display: flex;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: space-between;
     height: 100%;
     margin-bottom: 1.5rem;
     padding: var(--space-md);
}
     border-radius: var(--border-radius-medium);
 
     font-size: var(--font-size-small);
.home-featured__title {
     font-weight: var(--font-weight-semibold);
     font-size: 1.5rem;
     line-height: var(--line-height-xxx-small);
    font-weight: 700;
     text-align: center;
     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;
     text-decoration: none;
    color: var(--color-base);
    transition: all 0.3s;
}
}


.home-badge:hover {
.home-featured-item:hover {
     filter: brightness(1.1);
     background: var(--color-surface-2);
    transform: translateX(4px);
}
}


.home-badge--green {
.home-featured-item__image {
     background: var(--color-success);
    width: 120px;
    color: #fff;
    height: 80px;
    object-fit: cover;
     border-radius: var(--radius-md);
}
}


.home-badge--red {
.home-featured-item__content {
     background: var(--color-destructive);
     display: flex;
     color: #fff;
    flex-direction: column;
     justify-content: center;
}
}


.home-badge--blue {
.home-featured-item__title {
     background: var(--color-progressive);
    font-size: 1.125rem;
     color: #fff;
    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;
}
}


/* ====================================
/* ====================================
   5. CARDS
   8. UPDATES
   ==================================== */
   ==================================== */


.home-card {
.home-updates {
     padding: var(--space-md);
     padding: 1.5rem;
     border: 1px solid var(--border-color-base);
    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);
     background: var(--color-surface-1);
     border-radius: var(--border-radius-medium);
     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-card__title {
.home-update-item__content {
     margin-bottom: var(--space-xs);
     flex: 1;
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-xs);
}
}


.home-card__content {
.home-update-item__title {
     font-size: var(--font-size-small);
     font-size: 1rem;
     line-height: var(--line-height-sm);
    font-weight: 600;
    color: var(--color-base);
     margin-bottom: 0.25rem;
}
 
.home-update-item__text {
    font-size: 0.875rem;
     color: var(--color-subtle);
     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-card .template-statsbar {
.home-stats__title {
     margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-base);
     margin-bottom: 1.5rem;
}
}


#home-card-discord {
.home-stats__grid {
     background: #5865f2;
     display: grid;
     color: #fff;
    grid-template-columns: repeat(2, 1fr);
     gap: 1rem;
}
}


#home-card-patreon {
.home-stat-item {
     background: #ff424d;
    padding: 1rem;
     color: #fff;
     background: var(--color-surface-1);
     border-radius: var(--radius-lg);
    text-align: center;
}
}


#home-card-kofi {
.home-stats__number {
     background: #ff5e5b;
    font-size: 2.5rem;
     color: #fff;
     font-weight: 700;
     color: var(--color-primary);
    margin-bottom: 0.25rem;
}
}


#home-card-reddit {
.home-stats__label {
     background: #ff4500;
     font-size: 0.875rem;
     color: #fff;
     color: var(--color-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
}


/* ====================================
/* ====================================
   6. LINKS & BUTTONS
   10. SOCIAL BUTTONS
   ==================================== */
   ==================================== */


.home-link {
.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;
     display: grid;
     margin-top: var(--space-xs);
     gap: 0.75rem;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    grid-gap: var(--space-xs);
    text-align: center;
}
}


.home-link__button {
.home-social-btn {
     display: flex;
     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-link__button a {
.home-social-btn--patreon {
    flex-grow: 1;
     color: #ff424d;
    padding: var(--space-xs);
     border: 1px solid var(--border-color-base);
    background: var(--color-surface-2);
    border-radius: var(--border-radius-medium);
    color: var(--color-emphasized) !important;
    line-height: var(--line-height-xxx-small);
    text-decoration: none !important;
    transition: background 0.2s ease;
}
}


.home-link__button a:hover {
.home-social-btn--kofi {
     background: var(--color-surface-2--hover);
     color: #ff5e5b;
}
}


.home-link__button a:active {
.home-social-btn--reddit {
     background: var(--color-surface-2--active);
     color: #ff4500;
}
}


/* ====================================
/* ====================================
   7. SOCIAL MEDIA
   11. LINKS BOX
   ==================================== */
   ==================================== */


#home-card-discord {
.home-links {
     background: #5865f2;
    padding: 1.5rem;
     background: var(--color-surface-0);
    border: 2px solid var(--border-color-base);
    border-radius: var(--radius-xl);
}
}


#home-card-patreon {
.home-links__title {
     background: #ff424d;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-base);
     margin-bottom: 1rem;
}
}


#home-card-kofi {
.home-links__list {
     background: #ff5e5b;
    display: flex;
    flex-direction: column;
     gap: 0.5rem;
}
}


#home-card-reddit {
.home-links__item {
     background: #ff4500;
    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);
}
}


/* ====================================
/* ====================================
   8. FOOTER
   12. UTILITIES
   ==================================== */
   ==================================== */


#home-content {
.home-grid {
     margin-top: var(--space-lg);
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}
 
.home-grid--col2 {
    grid-template-columns: 1fr 1fr;
}
}


.home-footer {
.home-grid a.external {
     font-size: var(--font-size-small);
     background-image: none;
    font-family: var(--font-family-monospace);
    text-align: center;
    margin-top: var(--space-xl);
    padding: var(--space-md);
    opacity: 0.7;
}
}


/* ====================================
/* ====================================
   9. ANIMATIONS
   13. ANIMATIONS
   ==================================== */
   ==================================== */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


@keyframes fadeIn {
@keyframes fadeIn {
Ligne 411 : Ligne 751 :


/* ====================================
/* ====================================
   10. MEDIA QUERIES
   14. MEDIA QUERIES
   ==================================== */
   ==================================== */


/* Desktop - Keyboard hint */
@media (min-width: 768px) {
@media (hover: hover) {
     .home-header__title {
     .tg-mainpage-header-search:after {
         font-size: 3rem;
         content: '/';
    }
        margin-top: -2px;
   
        margin-bottom: -2px;
    .home-header__subtitle {
         margin-left: 2px;
         font-size: 1.125rem;
        width: 18px;
    }
        height: 18px;
}
        display: flex;
 
        background-color: var(--tg-color-inverted-progressive);
@media (min-width: 1200px) {
        color: var(--tg-color-progressive);
    .home-header__title {
         border-radius: var(--tg-border-radius-small);
         font-size: 3.5rem;
        line-height: 1;
    }
        align-items: center;
   
        justify-content: center;
    .home-header__subtitle {
         font-size: 10px;
         font-size: 1.25rem;
        font-weight: 900;
        opacity: 0.6;
     }
     }
}
}


/* Tablet */
@media (max-width: 1024px) {
@media (max-width: 768px) {
     .home-container {
     .tg-mainpage-header {
         grid-template-columns: 1fr;
         padding: 6rem 1.5rem 4rem;
    }
         margin-bottom: 1rem;
   
    .home-sidebar {
         grid-template-columns: 1fr 1fr;
     }
     }
      
      
     .tg-mainpage-header-nefald {
     .home-event {
         width: 140px;
         grid-template-columns: 1fr;
        margin-bottom: 1rem;
     }
     }
      
      
     .tg-mainpage-header-tagline {
     .home-event__image {
         font-size: 1rem;
        height: 200px;
         margin-bottom: 1.5rem;
    }
   
    .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 {
     .home-search {
         margin: 0 1rem;
         margin-left: 1rem;
         padding: 1rem 1.25rem;
         margin-right: 1rem;
         border-radius: 14px;
         padding: 0.75rem 1rem;
     }
     }
      
      
Ligne 463 : Ligne 816 :
     }
     }
      
      
     .home-search__icon {
     .home-nav-grid {
         font-size: 1.125rem;
         grid-template-columns: repeat(3, 1fr);
     }
     }
      
      
     .home-search__text {
     .home-sidebar {
        font-size: 0.9375rem;
    }
   
    .home-grid--col2 {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
     }
     }
}
}


/* Mobile */
@media (max-width: 480px) {
@media (max-width: 480px) {
     .tg-mainpage-header {
     .home-grid {
         padding: 5rem 1rem 3rem;
         padding: 0 0.5rem;
     }
     }
      
      
     .tg-mainpage-header-nefald {
     .home-nav-grid {
         width: 120px;
         grid-template-columns: repeat(2, 1fr);
     }
     }
      
      
     .home-search {
     .home-nav-card {
         padding: 0.875rem 1rem;
         padding: 1rem 0.75rem;
        gap: 0.75rem;
     }
     }
      
      
     .home-card {
     .home-stats__grid {
         padding: var(--space-sm);
         grid-template-columns: 1fr;
    }
}
 
/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    .home-search {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.1);
     }
     }
      
      
     .home-search:hover {
     .home-stats__number {
         background: rgba(255, 255, 255, 0.08);
         font-size: 2rem;
        border-color: rgba(255, 255, 255, 0.15);
     }
     }
}
}

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;
    }
}
Les témoins (''cookies'') nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de témoins.