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:Header/styles.css » : différence entre les versions

De Nefald
Hiob (discussion | contributions)
mAucun résumé des modifications
Balise : Révoqué
Hiob (discussion | contributions)
mAucun résumé des modifications
Balise : Révoqué
Ligne 1 : Ligne 1 :
/* Pleine largeur dans la colonne de contenu */
.mw-parser-output > .home-header {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
/* Conserve ton style actuel (hauteur, padding, etc.) */
.home-header {
  /* tes règles existantes ici */
}
/* =============================================================================
/* =============================================================================
   HEADER WRAPPER - Sort du flux normal
   HEADER WRAPPER - Sort du flux normal

Version du 1 novembre 2025 à 20:00

/* Pleine largeur dans la colonne de contenu */
.mw-parser-output > .home-header {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* Conserve ton style actuel (hauteur, padding, etc.) */
.home-header {
  /* tes règles existantes ici */
}


/* =============================================================================
   HEADER WRAPPER - Sort du flux normal
   ============================================================================= */

.home-header-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
    overflow: visible;
}

/* Override MediaWiki */
.mw-parser-output > .home-header-wrapper:first-child {
    margin-top: 0 !important;
}

/* =============================================================================
   HEADER - Bandeau principal
   ============================================================================= */

.home-header {
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-left: 4px solid var(--color-progressive, #3366cc);
    min-height: 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.home-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(51, 102, 204, 0.1) 0%, 
        transparent 50%, 
        rgba(51, 102, 204, 0.05) 100%
    );
    pointer-events: none;
}

/* =============================================================================
   CONTENT - Contenu flexbox
   ============================================================================= */

.home-header__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    padding: 16px 24px;
}

/* =============================================================================
   ÉLÉMENTS - Badge, Titre, Sous-titre, Texte
   ============================================================================= */

.home-header__badge {
    background: var(--color-progressive, #3366cc);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.home-header__title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    flex-shrink: 0;
}

.home-header__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    flex-shrink: 0;
}

.home-header__text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
}

/* =============================================================================
   LIEN - Zone cliquable
   ============================================================================= */

.home-header__link-wrapper {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.home-header__link {
    color: var(--color-progressive, #3366cc);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-header__link:hover {
    background: #ffffff;
    color: var(--color-progressive-hover, #2a4b8d);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hover sur tout le bandeau si lien présent */
.home-header--has-link {
    cursor: pointer;
}

.home-header--has-link:hover {
    background: linear-gradient(135deg, #1e1e35 0%, #1a2847 100%);
    border-left-color: var(--color-progressive-hover, #2a4b8d);
}

.home-header--has-link:hover .home-header__link {
    background: #ffffff;
    color: var(--color-progressive-hover, #2a4b8d);
}

/* =============================================================================
   DARK MODE
   ============================================================================= */

.skin-theme-clientpref-night .home-header {
    background: linear-gradient(135deg, #0a0a0f 0%, #0d1117 100%);
    border-left-color: var(--color-progressive, #3d8dfe);
}

.skin-theme-clientpref-night .home-header::before {
    background: linear-gradient(90deg, 
        rgba(61, 141, 254, 0.15) 0%, 
        transparent 50%, 
        rgba(61, 141, 254, 0.08) 100%
    );
}

.skin-theme-clientpref-night .home-header__badge {
    background: var(--color-progressive, #3d8dfe);
}

.skin-theme-clientpref-night .home-header__link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-progressive, #3d8dfe);
}

.skin-theme-clientpref-night .home-header__link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-progressive-hover, #5ca3ff);
}

.skin-theme-clientpref-night .home-header--has-link:hover {
    background: linear-gradient(135deg, #0d0d15 0%, #10151f 100%);
    border-left-color: var(--color-progressive-hover, #5ca3ff);
}

.skin-theme-clientpref-night .home-header--has-link:hover .home-header__link {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-progressive-hover, #5ca3ff);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .home-header {
        min-height: 80px;
    }

    .home-header__content {
        gap: 12px;
        padding: 12px 16px;
    }

    .home-header__title {
        font-size: 1rem;
    }

    .home-header__subtitle,
    .home-header__text,
    .home-header__link {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .home-header {
        min-height: 100px;
    }

    .home-header__content {
        gap: 10px;
        padding: 12px;
    }

    .home-header__badge {
        flex-basis: 100%;
    }

    .home-header__title {
        font-size: 0.95rem;
        flex-basis: 100%;
    }

    .home-header__subtitle {
        flex-basis: 100%;
        font-size: 0.8rem;
    }

    .home-header__text {
        display: none;
    }

    .home-header__link-wrapper {
        margin-left: 0;
        flex-basis: 100%;
        justify-content: flex-end;
    }
    
    .home-header__link {
        font-size: 0.85rem;
    }
}
Les témoins (''cookies'') nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de témoins.