141 lines
2.9 KiB
CSS
141 lines
2.9 KiB
CSS
/* === 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: 60px; /* au lieu de 24px défini dans global.css */
|
||
}
|
||
|
||
/* === 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;
|
||
}
|
||
|
||
/* S’assurer 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;
|
||
}
|