140 lines
3.5 KiB
CSS
140 lines
3.5 KiB
CSS
/* modules/home/home.css */
|
|
|
|
/* === 1. CONFIGURATION DU FOND & DU BODY === */
|
|
body.pf-home {
|
|
/* Image de fond desktop */
|
|
background-image: url("/modules/home/assets/img/background.jpg");
|
|
background-size: cover;
|
|
background-position: center center;
|
|
background-attachment: fixed; /* Effet parallax léger */
|
|
background-repeat: no-repeat;
|
|
|
|
/* Couleur de texte par défaut sur la home (Blanc) */
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* Voile sombre pour garantir la lisibilité du texte blanc */
|
|
body.pf-home::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 23, 42, 0.5); /* Bleu nuit semi-transparent */
|
|
z-index: -1; /* Derrière le contenu */
|
|
}
|
|
|
|
/* === 2. HEADER SPÉCIFIQUE (Translucide) === */
|
|
body.pf-home .pf-header {
|
|
background: rgba(36, 59, 83, 0.85); /* Ton ancien bleu sombre */
|
|
backdrop-filter: blur(8px); /* Effet verre dépoli */
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Adaptation des couleurs des liens du header sur fond sombre */
|
|
body.pf-home .pf-logo {
|
|
color: #ffffff;
|
|
}
|
|
body.pf-home .pf-burger-btn {
|
|
color: #ffffff;
|
|
}
|
|
|
|
body.pf-home .pf-nav-link {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
body.pf-home .pf-nav-link:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: #ffffff;
|
|
}
|
|
body.pf-home .pf-nav-link--active {
|
|
background: rgba(255, 255, 255, 0.9);
|
|
color: #243b53; /* Texte foncé sur fond blanc */
|
|
}
|
|
|
|
/* Badge utilisateur */
|
|
body.pf-home .pf-user-badge {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
}
|
|
body.pf-home .pf-logout-btn {
|
|
color: #fca5a5;
|
|
} /* Rouge clair */
|
|
body.pf-home .pf-logout-btn:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-color: #fca5a5;
|
|
}
|
|
|
|
/* === 3. HERO SECTION (Message de Bienvenue) === */
|
|
.pf-hero {
|
|
margin-top: 40px;
|
|
margin-bottom: 60px;
|
|
text-align: right; /* Aligné à droite comme demandé */
|
|
}
|
|
|
|
.pf-hero h1 {
|
|
color: #ffffff;
|
|
font-size: 2.5rem;
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* Ombre pour détacher le texte de l'image */
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.pf-hero p {
|
|
color: #e2e8f0; /* Gris très clair */
|
|
font-size: 1.2rem;
|
|
font-weight: 500;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
/* === 4. GRILLE DES MODULES === */
|
|
|
|
/* Titre de section "Modules" */
|
|
body.pf-home .pf-modules-grid {
|
|
/* On ajoute un titre visuel ou on espace simplement */
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* Les cartes restent blanches, donc on force le texte foncé à l'intérieur */
|
|
.pf-module-card {
|
|
background: rgba(255, 255, 255, 0.95); /* Presque opaque */
|
|
border: none;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
|
color: var(--text-main); /* Retour à la couleur sombre globale */
|
|
}
|
|
|
|
.pf-module-card:hover {
|
|
background: #ffffff;
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* On s'assure que les titres et textes DANS les cartes ne sont pas blancs */
|
|
.pf-module-card h3.pf-card-title {
|
|
color: var(--text-main);
|
|
}
|
|
.pf-module-card p.pf-card-desc {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* === 5. MOBILE RESPONSIVE === */
|
|
@media (max-width: 768px) {
|
|
body.pf-home {
|
|
/* Image spécifique mobile */
|
|
background-image: url("/modules/home/assets/img/background_m.jpg");
|
|
background-attachment: scroll; /* Fixed bug souvent sur mobile, scroll est mieux */
|
|
}
|
|
|
|
/* Sur mobile, on recentre le texte pour l'équilibre */
|
|
.pf-hero {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.pf-hero h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
/* Ajustement header mobile */
|
|
body.pf-home .pf-header {
|
|
padding: 0 16px;
|
|
}
|
|
}
|