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)
Aucun résumé des modifications
Hiob (discussion | contributions)
Aucun résumé des modifications
Balise : Révoqué
Ligne 4 : Ligne 4 :


.home-header {
.home-header {
     /* Layout - PLEINE LARGEUR */
     /* Layout - PLEINE LARGEUR FORCÉE */
     display: flex;
     display: flex;
     width: 100% !important;
     width: 100vw !important;
     max-width: 100% !important;
     max-width: 100vw !important;
     margin: 0 !important;
    margin-left: calc(50% - 50vw) !important;
     margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
     min-height: 70px;
     min-height: 70px;
     overflow: visible;
     overflow: visible;
Ligne 49 : Ligne 52 :
     gap: 16px;
     gap: 16px;
     width: 100%;
     width: 100%;
    max-width: 1200px;
    margin: 0 auto;
     padding: 16px 20px;
     padding: 16px 20px;
     flex-wrap: wrap;
     flex-wrap: wrap;

Version du 1 novembre 2025 à 14:49

/* =============================================================================
   HEADER COMPONENT - Bandeau horizontal pleine largeur
   ============================================================================= */

.home-header {
    /* Layout - PLEINE LARGEUR FORCÉE */
    display: flex;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    min-height: 70px;
    overflow: visible;
    
    /* Style */
    background: var(--color-surface-1, #f8f9fa);
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* Transition */
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-header--has-link {
    cursor: pointer;
}

.home-header--has-link:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Dark mode */
.skin-theme-clientpref-night .home-header {
    background: var(--color-surface-1, #1e1e1e);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skin-theme-clientpref-night .home-header--has-link:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* =============================================================================
   CONTENT CONTAINER
   ============================================================================= */

.home-header__content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    flex-wrap: wrap;
}

/* =============================================================================
   ELEMENTS
   ============================================================================= */

/* Badge */
.home-header__badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-emphasized, #fff);
    background: var(--color-progressive, #36c);
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.skin-theme-clientpref-night .home-header__badge {
    background: var(--color-progressive, #4d90fe);
    color: var(--color-emphasized, #000);
}

/* Title */
.home-header__title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-base, #202122);
    flex-shrink: 0;
}

.skin-theme-clientpref-night .home-header__title {
    color: var(--color-base, #eee);
}

/* Subtitle */
.home-header__subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--color-subtle, #54595d);
    flex-grow: 1;
}

.skin-theme-clientpref-night .home-header__subtitle {
    color: var(--color-subtle, #a2a9b1);
}

/* Text */
.home-header__text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-base, #202122);
}

.skin-theme-clientpref-night .home-header__text {
    color: var(--color-base, #eee);
}

/* Link wrapper et link */
.home-header__link-wrapper {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.home-header__link-wrapper a {
    text-decoration: none !important;
}

.home-header__link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-progressive, #36c) !important;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.home-header__link-wrapper:hover .home-header__link,
.home-header--has-link:hover .home-header__link {
    color: var(--color-progressive-hover, #2a9) !important;
}

.skin-theme-clientpref-night .home-header__link {
    color: var(--color-progressive, #4d90fe) !important;
}

.skin-theme-clientpref-night .home-header__link-wrapper:hover .home-header__link,
.skin-theme-clientpref-night .home-header--has-link:hover .home-header__link {
    color: var(--color-progressive-hover, #3d8dfe) !important;
}

/* =============================================================================
   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.