Files
HouseHub/modules/home/home.css
T
2025-12-24 16:14:56 +01:00

162 lines
3.5 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* === HOME : fond et overlay === */
/* Fond image uniquement pour la home */
body.pf-home {
position: relative;
background-image: url("/modules/home/assets/img/background.jpg");
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
/* Texte global plutôt clair sur la home (sur l'image) */
color: #f9fafb;
}
/* Header translucide par-dessus l'image sur la home */
.pf-home .pf-header {
background: rgba(36, 59, 83, 0.85);
backdrop-filter: blur(4px); /* optionnel, si supporté */
}
/* Voile sombre sur toute la page home */
body.pf-home::before {
content: "";
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.35);
z-index: -1;
}
/* S'assurer que le contenu passe au-dessus du voile */
body.pf-home > * {
position: relative;
z-index: 0;
}
/* Descendre légèrement le contenu sous le header sur la home */
body.pf-home .pf-main {
padding-top: 80px;
}
/* === HOME / MODULES CARDS === */
/* Container des cartes de modules */
.pf-modules-cards {
margin-top: 16px;
}
/* Card module : réutilise .pf-card mais plus "clicable" */
.pf-card--module {
min-width: 240px;
max-width: 320px;
display: flex;
flex-direction: column;
text-decoration: none;
color: inherit;
background: #ffffff;
cursor: pointer;
transition: transform 0.15s ease, box-shadow 0.15s ease,
border-color 0.15s ease, background-color 0.15s ease;
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.pf-card--module:hover {
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
border-color: #bcccdc;
background-color: #f8fafc;
}
/* Désactivation / "à venir" */
.pf-card--disabled {
cursor: default;
opacity: 0.7;
}
.pf-card--disabled:hover {
transform: none;
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
border-color: #d9e2ec;
background-color: #f8fafc;
}
/* Icône dans la card */
.pf-card-icon {
font-size: 24px;
margin-bottom: 8px;
}
/* CTA (texte en bas de card) */
.pf-card-cta {
margin-top: 12px;
font-size: 12px;
font-weight: 600;
color: #243b53;
display: inline-flex;
align-items: center;
gap: 4px;
}
.pf-card-cta::after {
content: "→";
font-size: 12px;
}
/* Assure que le CTA reste en bas quand le texte est plus long */
.pf-card--module .pf-card-body {
flex: 1;
}
/* Bloc user info */
.pf-user-info {
margin-top: 12px;
font-size: 13px;
color: #f9fafb; /* lisible sur le fond */
}
.pf-user-info a {
color: #ffb4b4;
text-decoration: none;
font-weight: 500;
}
.pf-user-info a:hover {
text-decoration: underline;
}
/* Dans les cards (fond clair) : texte foncé */
body.pf-home .pf-card,
body.pf-home .pf-section--panel {
color: #222;
}
/* Sassurer que les titres / textes intro sont bien à gauche et lisibles */
body.pf-home h1,
body.pf-home .pf-container > p,
body.pf-home .pf-user-info,
body.pf-home .pf-section > h2 {
text-align: left;
color: #f9fafb;
}
/* === ALIGNEMENT À DROITE DU BLOC INTRO SUR LA HOME === */
/* On aligne à droite uniquement le bloc d'intro */
body.pf-home .pf-container > h1,
body.pf-home .pf-container > p,
body.pf-home .pf-container > .pf-user-info {
text-align: right;
}
/* On garde le titre "Modules" à gauche, sauf si tu veux aussi le mettre à droite */
body.pf-home .pf-section > h2 {
text-align: left;
}
/* Image de fond spécifique pour le mobile */
@media (max-width: 768px) {
body.pf-home {
background-image: url("/modules/home/assets/img/background_m.jpg");
background-position: center center;
}
}