97 lines
2.6 KiB
CSS
97 lines
2.6 KiB
CSS
/* modules/home/home.css */
|
|
|
|
/* === 1. CONFIGURATION DU FOND & DU BODY === */
|
|
body[data-page="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: var(--text-on-primary);
|
|
}
|
|
|
|
/* Voile sombre pour garantir la lisibilité du texte blanc */
|
|
body[data-page="home"]::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
background: var(--bg-overlay); /* Bleu nuit semi-transparent */
|
|
z-index: -1; /* Derrière le contenu */
|
|
}
|
|
|
|
/* Header : identique au reste du site (global.css + dark-mode) */
|
|
|
|
/* === 2. HERO SECTION (Message de Bienvenue) === */
|
|
.pf-hero {
|
|
margin-top: 40px;
|
|
margin-bottom: 60px;
|
|
text-align: right; /* Aligné à droite comme demandé */
|
|
}
|
|
|
|
.pf-hero h1 {
|
|
color: var(--text-on-primary);
|
|
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);
|
|
}
|
|
|
|
/* === 3. GRILLE DES MODULES === */
|
|
|
|
/* Titre de section "Modules" */
|
|
body[data-page="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: var(--bg-panel);
|
|
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);
|
|
}
|
|
|
|
/* === 4. MOBILE RESPONSIVE === */
|
|
@media (max-width: 768px) {
|
|
body[data-page="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: clamp(1.8rem, 6vw, 2.5rem); /* Typographie fluide */
|
|
}
|
|
}
|