Redesign UI to match target design images

- Flat purple-gradient nav bar with POSTERG/RÉPERTOIRE/À PROPOS links
- Full-width search bar with icon, bottom-border only, below nav
- Home: white bg, media card grid (thumbnail + author/title label below)
- Répertoire: 4-column index (Années/Catégories/Étudiantes/Mots-clés)
- TFE: 2-column layout (large text left, media right)
- À Propos: 2-column, large monospace text, new apropos.php page
- Admin: dark theme (#1a1a1a), purple gradient nav, bottom-border inputs
- New shared partials: templates/nav.php, templates/search-bar.php
- Rewrote all CSS: common, main, search, tfe, apropos, admin
This commit is contained in:
Pontoporeia
2026-02-24 23:34:16 +01:00
parent eaad740574
commit 2110d2b916
22 changed files with 2459 additions and 3043 deletions

View File

@@ -1,452 +1,289 @@
/* Search page - horizontal layout */
body {
/* ============================================================
RÉPERTOIRE / SEARCH PAGE (search.php)
============================================================ */
html, body {
margin: 0;
padding: 0;
height: 100%;
}
.search-body {
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
display: flex;
flex-direction: row;
background: var(--white);
}
.search-main {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
}
/* ---- 4-column index layout ---- */
.repertoire-index {
display: grid;
grid-template-columns: 1fr 2fr 2fr 1.5fr;
gap: 0;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
Arial, sans-serif;
padding: 0 1.5rem;
min-height: 100%;
}
/* Layout: header sidebar, main+footer wrapper takes rest */
header {
flex: 0 0 250px;
min-width: 0;
max-width: 250px;
height: 100vh;
font-family: "police1", sans-serif;
background: #9557b5ff;
color: white;
display: flex;
flex-direction: column;
gap: 0.4rem;
padding: 0.75rem 0.6rem;
margin: 0;
overflow-y: auto;
overflow-x: hidden;
box-sizing: border-box;
border-radius: 40px;
.repertoire-col {
padding: 0.75rem 0.5rem 2rem;
border-right: 1px solid var(--border-color);
}
.main-wrapper {
flex: 1;
min-width: 0;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
.repertoire-col:last-child {
border-right: none;
}
main {
flex: 1;
min-width: 0;
background: #3c856bff;
position: relative;
padding: 1rem;
margin: 0;
box-sizing: border-box;
overflow: hidden;
display: flex;
flex-direction: column;
border-radius: 40px;
.repertoire-col__header {
font-size: 0.72rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
font-weight: 400;
margin: 0 0 0.5rem 0;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--border-color);
}
footer {
background: #222222ff;
padding: 0.75rem 1rem;
margin: 0;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
border-radius: 40px;
}
/* Search header */
.search-header {
display: flex;
flex-direction: column;
gap: 0.4rem;
width: 100%;
flex-shrink: 0;
}
.back-button {
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 0.35rem 0.6rem;
border-radius: 10px;
cursor: pointer;
text-decoration: none;
font-size: 0.8rem;
transition: all 0.2s;
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
.back-button:hover {
background: rgba(255, 255, 255, 0.25);
transform: translateY(-1px);
}
.search-form {
display: flex;
flex-direction: column;
gap: 0.35rem;
min-width: 0;
}
.search-input {
width: 100%;
padding: 0.35rem 0.6rem;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 10px;
font-size: 0.8rem;
background: rgba(255, 255, 255, 0.9);
color: #333;
box-sizing: border-box;
}
.search-input::placeholder {
color: #999;
font-size: 0.75rem;
}
.search-actions {
display: flex;
gap: 0.35rem;
}
.search-button,
.filter-button {
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 0.35rem 0.5rem;
border-radius: 10px;
cursor: pointer;
font-size: 0.8rem;
transition: all 0.2s;
white-space: nowrap;
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.search-button:hover,
.filter-button:hover {
background: rgba(255, 255, 255, 0.25);
transform: translateY(-1px);
}
.filter-button.active {
background: rgba(255, 255, 255, 0.3);
font-weight: 600;
}
/* Filters panel */
.filters-panel {
display: none;
background: rgba(255, 255, 255, 0.08);
padding: 0.4rem;
border-radius: 8px;
flex-shrink: 0;
overflow: visible;
}
.filters-panel.show {
/* Years column - big bold numbers */
.year-index-item {
display: block;
}
.filters-grid {
display: grid;
grid-template-columns: 1fr;
gap: 0.3rem;
}
.filter-group {
display: flex;
flex-direction: column;
gap: 0.15rem;
min-width: 0;
}
.filter-label {
color: white;
font-weight: 600;
font-size: 0.65rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.filter-select {
padding: 0.3rem 0.35rem;
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.9);
font-size: 0.7rem;
min-width: 0;
width: 100%;
box-sizing: border-box;
}
.filter-actions {
display: flex;
flex-direction: column;
gap: 0.3rem;
margin-top: 0.3rem;
flex-shrink: 0;
}
.reset-button {
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 0.3rem 0.5rem;
border-radius: 8px;
cursor: pointer;
font-size: 0.7rem;
text-decoration: none;
display: inline-block;
white-space: nowrap;
text-align: center;
}
.reset-button:hover {
background: rgba(255, 255, 255, 0.25);
}
.error-message {
background: rgba(255, 100, 100, 0.2);
color: white;
padding: 0.35rem 0.5rem;
border-radius: 8px;
font-size: 0.75rem;
flex-shrink: 0;
}
/* Main content - results grid */
.cards-container {
display: grid;
gap: 1rem;
flex: 1;
min-height: 0;
padding: 0.5rem;
overflow-y: auto;
overflow-x: hidden;
grid-template-rows: repeat(3, 1fr);
grid-template-columns: repeat(3, 1fr);
grid-auto-flow: row;
}
@media (min-width: 1400px) and (max-width: 1700px) {
.cards-container {
grid-template-rows: repeat(3, 1fr);
grid-template-columns: repeat(4, 1fr);
}
}
@media (min-width: 1701px) {
.cards-container {
grid-template-rows: repeat(4, 1fr);
grid-template-columns: repeat(4, 1fr);
}
}
@media (max-width: 1399px) {
.cards-container {
grid-template-rows: repeat(3, 1fr);
grid-template-columns: repeat(2, 1fr);
}
}
.card-link {
text-decoration: none;
color: inherit;
display: block;
height: 100%;
}
.card {
background: #eee;
border-radius: 12px;
padding: 0.75rem;
height: 100%;
width: 100%;
box-sizing: border-box;
transition: transform 0.2s, box-shadow 0.2s;
display: flex;
flex-direction: column;
overflow: hidden;
min-width: 0;
min-height: 0;
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.card-content {
display: flex;
flex-direction: column;
gap: 0.4rem;
height: 100%;
overflow: hidden;
}
.card .title {
font-size: 0.85rem;
font-weight: 600;
margin: 0;
line-height: 1.2;
color: #333;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.card .authors {
font-size: 0.75rem;
margin: 0;
color: #666;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.card .year {
font-size: 0.75rem;
margin: 0;
color: #9557b5;
font-weight: 600;
}
.card .tags {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
margin-top: auto;
padding-top: 0.3rem;
}
.card .tag {
font-size: 0.65rem;
padding: 0.2rem 0.4rem;
background: rgba(149, 87, 181, 0.15);
color: #7a3d95;
border-radius: 4px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
font-weight: 500;
}
/* Pagination */
.pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: rgba(255, 255, 255, 0.15);
border-radius: 8px;
margin-top: 0.75rem;
width: fit-content;
align-self: center;
flex-shrink: 0;
}
.pagination-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 2rem;
height: 2rem;
padding: 0 0.5rem;
background: rgba(255, 255, 255, 0.9);
color: #3c856b;
text-decoration: none;
border-radius: 6px;
font-size: 1rem;
font-weight: 600;
transition: all 0.2s;
border: 2px solid transparent;
}
.pagination-btn:hover:not(.disabled) {
background: white;
border-color: #9557b5;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.pagination-btn.disabled {
opacity: 0.3;
cursor: not-allowed;
pointer-events: none;
}
.pagination-info {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0 0.5rem;
color: white;
font-size: 0.9rem;
font-weight: 500;
}
.page-current {
font-size: 1.1rem;
font-size: 2.2rem;
font-weight: 700;
color: #9557b5;
background: white;
padding: 0.2rem 0.6rem;
border-radius: 6px;
min-width: 1.5rem;
text-align: center;
}
.page-separator {
font-weight: 300;
opacity: 0.6;
padding: 0 0.15rem;
}
.page-total {
opacity: 0.8;
}
/* Footer - results count */
.results-footer {
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1rem;
gap: 0.5rem;
text-align: center;
}
.results-count {
font-weight: 700;
font-size: 1.5rem;
line-height: 1.1;
color: var(--black);
text-decoration: none;
padding: 0.1rem 0;
transition: color 0.15s;
letter-spacing: -0.02em;
}
.year-index-item:hover,
.year-index-item.active {
color: var(--purple);
}
/* Categories column */
.cat-index-group {
margin-bottom: 0.6rem;
}
.cat-index-label {
font-size: 0.72rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-muted);
font-weight: 400;
display: block;
margin-bottom: 0.15rem;
margin-top: 0.75rem;
}
.cat-index-item {
display: block;
font-size: 0.95rem;
color: var(--black);
text-decoration: none;
padding: 0.1rem 0;
line-height: 1.4;
transition: color 0.15s;
}
.cat-index-item:hover,
.cat-index-item.active {
color: var(--purple);
}
/* Students column */
.student-index-item {
display: block;
font-size: 0.95rem;
color: var(--black);
text-decoration: none;
padding: 0.1rem 0;
line-height: 1.4;
transition: color 0.15s;
}
.student-index-item:hover {
color: var(--purple);
}
/* Keywords column */
.keyword-index-item {
display: block;
font-size: 0.95rem;
color: var(--black);
text-decoration: none;
padding: 0.1rem 0;
line-height: 1.4;
transition: color 0.15s;
}
.keyword-index-item:hover,
.keyword-index-item.active {
color: var(--purple);
}
/* ---- Search results view (grid) ---- */
.search-results-view {
padding: 1rem 1.5rem;
}
.search-results-header {
font-size: 0.85rem;
color: var(--text-muted);
margin-bottom: 1rem;
}
.results-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1.5rem;
}
.result-card {
text-decoration: none;
color: inherit;
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.result-card__authors {
font-size: 0.9rem;
font-weight: 500;
color: var(--black);
}
.result-card__title {
font-size: 0.85rem;
color: var(--text-muted);
line-height: 1.35;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.result-card__meta {
font-size: 0.78rem;
color: var(--purple);
}
/* Toggle button (index/results) */
.view-toggle {
display: flex;
gap: 0;
border: 1px solid var(--border-color);
border-radius: 3px;
overflow: hidden;
flex-shrink: 0;
}
.view-toggle__btn {
padding: 0.25rem 0.75rem;
font-size: 0.78rem;
background: var(--white);
color: var(--text-muted);
border: none;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
transition: all 0.15s;
}
.view-toggle__btn.active,
.view-toggle__btn:hover {
background: var(--purple);
color: var(--white);
}
/* Search controls bar */
.search-controls {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.4rem 1.5rem;
border-bottom: 1px solid var(--border-color);
flex-shrink: 0;
flex-wrap: wrap;
}
.search-filter-group {
display: flex;
align-items: center;
gap: 0.4rem;
}
.search-filter-label {
font-size: 0.78rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.06em;
white-space: nowrap;
}
.search-filter-select {
font-size: 0.82rem;
border: 1px solid var(--border-color);
border-radius: 3px;
padding: 0.2rem 0.5rem;
background: var(--white);
color: var(--black);
outline: none;
font-family: inherit;
cursor: pointer;
}
.search-filter-select:focus {
border-color: var(--purple);
}
.search-apply-btn {
font-size: 0.82rem;
padding: 0.2rem 0.8rem;
background: var(--purple);
color: var(--white);
border: none;
border-radius: 3px;
cursor: pointer;
font-family: inherit;
transition: background 0.15s;
}
.search-apply-btn:hover {
background: var(--purple-dark);
}
.search-reset-link {
font-size: 0.82rem;
color: var(--text-muted);
text-decoration: underline;
cursor: pointer;
}
.search-empty {
padding: 3rem 1.5rem;
color: var(--text-muted);
font-size: 1rem;
text-align: center;
}
/* Error message */
.search-error {
background: #fff0f0;
border-left: 3px solid #c00;
color: #c00;
padding: 0.5rem 1rem;
font-size: 0.88rem;
margin: 0.5rem 1.5rem;
flex-shrink: 0;
}