« Modèle:Accueil/header/styles.css » : différence entre les versions
De Nefald
Autres actions
< Modèle:Accueil | header
| Aucun résumé des modifications | Aucun résumé des modifications Balise : Révoqué | ||
| Ligne 1 : | Ligne 1 : | ||
| . | .home-header { | ||
|     position: relative; | |||
|     padding-block: 3.5rem; | |||
|     line-height: 1.2; | |||
|     text-align: center; | |||
| } | } | ||
| . | .home-header__pretitle { | ||
|     margin-bottom: 0.5rem; | |||
|     color: #888; | |||
|     font-size: 0.9rem; | |||
|     letter-spacing: 0.05em; | |||
| } | } | ||
| . | .home-header__title { | ||
|     margin: 0; | |||
|     font-size: 2.5rem; /* Mobile */ | |||
|     text-transform: uppercase; | |||
|     line-height: 0.9; | |||
|     font-weight: 600; | |||
| } | } | ||
| @media (min-width: 600px) { | |||
|     .home-header__title { | |||
|         font-size: calc(2.5rem + 1vw); | |||
|     } | |||
| } | } | ||
| @media (min-width: 1200px) { | |||
| . |     .home-header__title { | ||
|         font-size: 4.5rem; | |||
|     } | |||
| } | } | ||
| . | .home-header__subtitle { | ||
|     margin-top: 0.5rem; | |||
|     color: #888; | |||
|     font-size: 0.9rem; | |||
| } | } | ||
| . | /* Barre de recherche */ | ||
| .home-header__search { | |||
|     padding: 1rem; | |||
|     margin-top: 2rem; | |||
|     margin-left: auto; | |||
|     margin-right: auto; | |||
|     max-width: 600px; | |||
|     border: 1px solid #a2a9b1; | |||
|     border-radius: 50px; | |||
|     background-color: #f8f9fa; | |||
|     cursor: pointer; | |||
|     font-size: 0.9rem; | |||
|     font-weight: 500; | |||
|     text-align: center; | |||
|     transition: all 0.3s ease; | |||
| } | } | ||
| . | .home-header__search:hover { | ||
|     background: #fff; | |||
|     box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); | |||
| } | } | ||
| . | /* Effet de glow (simplifié) */ | ||
| .scw-gradient-glow { | |||
|     position: relative; | |||
|     z-index: 1; | |||
|     border-radius: 50px; | |||
| } | } | ||
| .scw-gradient-glow::before { | |||
|     content: ""; | |||
|     position: absolute; | |||
|     top: -2px; | |||
|     left: -2px; | |||
|     right: -2px; | |||
|     bottom: -2px; | |||
|     background: linear-gradient( | |||
|         90deg, | |||
|         #87bfdb, #77abC8, #6797b5, #577f9d, #476684, | |||
|         #43668a, #3e668f, #304a66, #212e3d, #304a66, | |||
|         #3e668f, #43668a, #476684, #577f9d, #6797b5, | |||
|         #77abC8, #87bfdb | |||
|     ); | |||
|     z-index: -1; | |||
|     border-radius: 50px; | |||
|     opacity: 0.7; | |||
|     filter: blur(4px); | |||
|     transition: filter 0.3s ease; | |||
| } | } | ||
| . | .home-header__search:hover::before { | ||
|     filter: blur(8px); | |||
| } | } | ||
| . | .home-header__searchIcon img { | ||
|     margin-right: 0.75rem; | |||
|     opacity: 0.7; | |||
|     filter: invert(0.5); /* Inversion directe */ | |||
| } | } | ||
| .desktoponly { | |||
|     margin-left: 0.5rem; | |||
| } | |||
| @media (hover: none) { | |||
|     .home-header__search .desktoponly { | |||
|         display: none; | |||
|     } | |||
| } | } | ||
Version du 16 octobre 2025 à 13:42
.home-header {
    position: relative;
    padding-block: 3.5rem;
    line-height: 1.2;
    text-align: center;
}
.home-header__pretitle {
    margin-bottom: 0.5rem;
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
.home-header__title {
    margin: 0;
    font-size: 2.5rem; /* Mobile */
    text-transform: uppercase;
    line-height: 0.9;
    font-weight: 600;
}
@media (min-width: 600px) {
    .home-header__title {
        font-size: calc(2.5rem + 1vw);
    }
}
@media (min-width: 1200px) {
    .home-header__title {
        font-size: 4.5rem;
    }
}
.home-header__subtitle {
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}
/* Barre de recherche */
.home-header__search {
    padding: 1rem;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    border: 1px solid #a2a9b1;
    border-radius: 50px;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}
.home-header__search:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
/* Effet de glow (simplifié) */
.scw-gradient-glow {
    position: relative;
    z-index: 1;
    border-radius: 50px;
}
.scw-gradient-glow::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        90deg,
        #87bfdb, #77abC8, #6797b5, #577f9d, #476684,
        #43668a, #3e668f, #304a66, #212e3d, #304a66,
        #3e668f, #43668a, #476684, #577f9d, #6797b5,
        #77abC8, #87bfdb
    );
    z-index: -1;
    border-radius: 50px;
    opacity: 0.7;
    filter: blur(4px);
    transition: filter 0.3s ease;
}
.home-header__search:hover::before {
    filter: blur(8px);
}
.home-header__searchIcon img {
    margin-right: 0.75rem;
    opacity: 0.7;
    filter: invert(0.5); /* Inversion directe */
}
.desktoponly {
    margin-left: 0.5rem;
}
@media (hover: none) {
    .home-header__search .desktoponly {
        display: none;
    }
}