Files
public-html2/parcoursup/style.css
T

644 lines
13 KiB
CSS
Raw Normal View History

2026-03-19 14:37:08 +01:00
/* ============================================================
PARCOURSUP EXPLORER — Charte Parcoursup officielle
============================================================ */
:root {
--vert: #1a936f;
--vert-fonce: #147a5c;
--vert-clair: #e8f5ef;
--bleu: #2a5298;
--bleu-clair: #eaf0fa;
--orange: #e67e22;
--rouge: #c0392b;
--gris-50: #f9fafb;
--gris-100: #f3f4f6;
--gris-200: #e5e7eb;
--gris-300: #d1d5db;
--gris-500: #6b7280;
--gris-700: #374151;
--gris-900: #111827;
--rayon: 6px;
}
2026-03-19 14:37:08 +01:00
/* --- Reset & base --- */
*, *::before, *::after {
box-sizing: border-box;
}
body {
font-family: 'Marianne', 'Segoe UI', system-ui, -apple-system, sans-serif;
margin: 0;
background: var(--gris-50);
color: var(--gris-900);
line-height: 1.6;
font-size: 15px;
}
/* ===========================================================
HEADER — Bandeau Parcoursup
=========================================================== */
.site-header {
background: white;
border-bottom: 3px solid var(--vert);
padding: 0 24px;
height: 56px;
display: flex;
align-items: center;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.header-inner {
max-width: 1100px;
width: 100%;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
}
.logo-icon {
font-size: 22px;
}
.logo-text {
font-size: 18px;
font-weight: 700;
color: var(--vert);
letter-spacing: -0.3px;
}
.logo-light {
font-weight: 400;
color: var(--gris-700);
}
.header-badge {
background: var(--vert-clair);
color: var(--vert-fonce);
padding: 4px 14px;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
border: 1px solid #b8e0cd;
}
/* ===========================================================
PAGE
=========================================================== */
.page {
max-width: 1100px;
margin: 0 auto;
2026-03-19 14:37:08 +01:00
padding: 24px 20px 40px;
}
2026-03-19 14:37:08 +01:00
/* ===========================================================
BOUTONS
=========================================================== */
.btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
font-size: 14px;
font-weight: 600;
border: none;
border-radius: var(--rayon);
cursor: pointer;
transition: all 0.15s;
}
2026-03-19 14:37:08 +01:00
.btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
2026-03-19 14:37:08 +01:00
.btn-primary {
background: var(--vert);
color: white;
}
.btn-primary:hover:not(:disabled) {
background: var(--vert-fonce);
}
.btn-outline {
background: white;
color: var(--vert);
border: 1.5px solid var(--vert);
}
.btn-outline:hover:not(:disabled) {
background: var(--vert-clair);
}
.btn-danger {
background: #fef2f2;
color: var(--rouge);
border: 1px solid #f5c6cb;
}
.btn-danger:hover {
background: #fde8e8;
}
.btn-small {
padding: 5px 12px;
font-size: 13px;
}
/* ===========================================================
SEARCH BAR
=========================================================== */
.search-bar {
display: flex;
gap: 10px;
2026-03-19 14:37:08 +01:00
margin: 0 0 20px;
}
.search-bar input {
flex: 1;
2026-03-19 14:37:08 +01:00
padding: 10px 14px;
font-size: 15px;
border: 1.5px solid var(--gris-300);
border-radius: var(--rayon);
background: white;
outline: none;
transition: border-color 0.2s;
}
2026-03-19 14:37:08 +01:00
.search-bar input:focus {
border-color: var(--vert);
box-shadow: 0 0 0 2px rgba(26, 147, 111, 0.12);
}
2026-03-19 14:37:08 +01:00
.search-bar button {
padding: 10px 22px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
background: var(--vert);
color: white;
border: none;
border-radius: var(--rayon);
transition: background 0.15s;
}
.search-bar button:hover {
background: var(--vert-fonce);
}
/* ===========================================================
RESULT COUNT
=========================================================== */
.result-count {
font-size: 14px;
color: var(--gris-500);
margin: 0 0 14px;
}
/* ===========================================================
CARDS — Résultats + comparateur items
=========================================================== */
.card {
background: white;
padding: 18px 20px;
border-radius: var(--rayon);
border: 1px solid var(--gris-200);
transition: border-color 0.15s;
}
.card:hover {
border-color: var(--vert);
}
.card h3, .card h4 {
margin-top: 0;
margin-bottom: 6px;
color: var(--bleu);
font-size: 1rem;
}
.card p {
margin: 4px 0;
font-size: 14px;
color: var(--gris-700);
}
.card button {
margin-top: 10px;
padding: 6px 14px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
border-radius: var(--rayon);
border: 1.5px solid var(--vert);
background: white;
color: var(--vert);
transition: all 0.15s;
}
.card button:hover {
background: var(--vert-clair);
}
.card button + button {
margin-left: 8px;
}
/* ===========================================================
DETAIL CARD — Comparateur
=========================================================== */
.detail-card {
background: white;
padding: 22px 24px;
border-radius: var(--rayon);
border: 1px solid var(--gris-200);
margin-bottom: 20px;
}
.detail-card hr {
margin: 18px 0;
border: none;
border-top: 1px solid var(--gris-200);
}
.detail-card h2, .detail-card h3 {
margin-top: 0;
color: var(--gris-900);
}
.detail-card p {
margin: 6px 0;
color: var(--gris-700);
}
.comparateur-card {
border-left: 4px solid var(--vert);
}
/* ===========================================================
COMPARE CONTROLS
=========================================================== */
.compare-controls {
display: flex;
gap: 16px;
flex-wrap: wrap;
margin-bottom: 14px;
align-items: flex-end;
}
.compare-controls label {
font-size: 13px;
color: var(--gris-500);
font-weight: 600;
}
.compare-controls input,
.compare-controls select {
padding: 8px 12px;
font-size: 14px;
min-width: 130px;
border: 1.5px solid var(--gris-300);
border-radius: var(--rayon);
background: white;
outline: none;
transition: border-color 0.2s;
}
.compare-controls input:focus,
.compare-controls select:focus {
border-color: var(--vert);
}
/* ===========================================================
PAGINATION
=========================================================== */
.pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
margin: 20px 0;
}
.page-info {
font-size: 14px;
font-weight: 600;
color: var(--gris-500);
}
/* ===========================================================
BADGES ESTIMATION
=========================================================== */
.estimate {
display: inline-block;
padding: 3px 12px;
border-radius: 4px;
font-size: 13px;
font-weight: 700;
}
.favorable {
background: var(--vert-clair);
color: var(--vert-fonce);
border: 1px solid #a3d9c0;
}
.possible {
background: #fef9e7;
color: #b7791f;
border: 1px solid #f6e05e;
}
.difficile {
background: #fef2f2;
color: var(--rouge);
border: 1px solid #f5c6cb;
}
/* ===========================================================
LAYOUT
=========================================================== */
.layout {
display: grid;
grid-template-columns: 1fr;
2026-03-19 14:37:08 +01:00
gap: 16px;
}
.results {
display: grid;
2026-03-19 14:37:08 +01:00
gap: 12px;
}
2026-03-19 14:37:08 +01:00
/* ===========================================================
MESSAGE (loading / no result)
=========================================================== */
.message {
padding: 16px;
background: white;
2026-03-19 14:37:08 +01:00
border: 1px solid var(--gris-200);
border-radius: var(--rayon);
text-align: center;
color: var(--gris-500);
}
2026-03-19 14:37:08 +01:00
/* ===========================================================
MAP
=========================================================== */
.map-box {
2026-03-18 13:44:30 +01:00
overflow: hidden;
margin-bottom: 20px;
}
2026-03-19 14:37:08 +01:00
.map-box h3 {
margin: 0 0 8px;
font-size: 0.95rem;
color: var(--gris-700);
}
.map {
height: 400px;
width: 100%;
border-radius: var(--rayon);
border: 1px solid var(--gris-200);
}
/* ===========================================================
DETAIL VIEW — Fiche formation
=========================================================== */
.detail-page {
background: transparent;
}
.formation-title {
color: var(--bleu);
font-size: 1.6rem;
font-weight: 700;
line-height: 1.25;
margin-bottom: 16px;
}
.formation-meta {
background: white;
padding: 18px 22px;
border-radius: var(--rayon);
border: 1px solid var(--gris-200);
margin-bottom: 24px;
}
.formation-meta p {
2026-03-19 14:37:08 +01:00
margin: 5px 0;
font-size: 14px;
color: var(--gris-700);
}
.detail-grid {
display: grid;
grid-template-columns: 2fr 1fr;
2026-03-19 14:37:08 +01:00
gap: 24px;
align-items: start;
2026-03-19 14:37:08 +01:00
margin-top: 8px;
margin-bottom: 28px;
}
2026-03-19 14:37:08 +01:00
/* --- Tableaux --- */
.detail-table {
width: 100%;
border-collapse: collapse;
background: white;
2026-03-19 14:37:08 +01:00
border-radius: var(--rayon);
overflow: hidden;
}
.detail-table th,
.detail-table td {
2026-03-19 14:37:08 +01:00
border: 1px solid var(--gris-200);
padding: 10px 12px;
text-align: left;
2026-03-19 14:37:08 +01:00
font-size: 14px;
}
2026-03-19 14:37:08 +01:00
.detail-table thead th {
background: var(--gris-100);
font-weight: 700;
color: var(--gris-700);
font-size: 13px;
}
.total-row td {
2026-03-19 14:37:08 +01:00
font-weight: 700;
background: var(--gris-100);
}
2026-03-19 14:37:08 +01:00
/* --- Timeline --- */
.timeline-box {
2026-03-19 14:37:08 +01:00
background: white;
padding: 18px 22px;
border-radius: var(--rayon);
border: 1px solid var(--gris-200);
}
.timeline-box h3 {
margin-top: 0;
color: var(--gris-900);
}
.timeline {
position: relative;
2026-03-19 14:37:08 +01:00
margin-top: 20px;
padding-left: 26px;
border-left: 3px solid #b8e0cd;
}
.timeline-item {
position: relative;
2026-03-19 14:37:08 +01:00
margin-bottom: 32px;
}
.timeline-dot {
position: absolute;
2026-03-19 14:37:08 +01:00
left: -35px;
top: 5px;
width: 12px;
height: 12px;
background: var(--vert);
border-radius: 50%;
2026-03-19 14:37:08 +01:00
border: 3px solid var(--vert-clair);
}
2026-03-19 14:37:08 +01:00
/* ===========================================================
CHARTS CSS
=========================================================== */
.charts-heading {
margin-top: 32px;
margin-bottom: 4px;
color: var(--gris-900);
}
.charts-section {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin: 16px 0 28px;
}
.chart-wrapper {
background: white;
border: 1px solid var(--gris-200);
border-radius: var(--rayon);
padding: 18px 20px 14px;
}
.chart-wrapper h3 {
margin: 0 0 14px;
font-size: 0.9rem;
color: var(--gris-700);
font-weight: 600;
}
.chart-full {
grid-column: 1 / -1;
}
#chart-bac .column,
#chart-mentions .column {
height: 240px;
max-width: 100%;
margin: 0 auto;
}
#chart-profil .bar {
height: 170px;
max-width: 560px;
margin: 0;
}
#chart-profil .bar th {
width: 85px;
font-size: 13px;
}
.chart-wrapper .data {
font-size: 11px;
font-weight: 700;
color: #fff;
text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
/* --- Bouton retour --- */
.btn-retour {
display: inline-flex;
align-items: center;
gap: 6px;
margin: 12px 0 28px;
padding: 9px 20px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
background: var(--vert);
color: white;
border: none;
border-radius: var(--rayon);
transition: background 0.15s;
}
.btn-retour:hover {
background: var(--vert-fonce);
}
/* ===========================================================
RESPONSIVE
=========================================================== */
@media (max-width: 900px) {
.detail-grid {
grid-template-columns: 1fr;
}
2026-03-19 14:37:08 +01:00
}
@media (max-width: 700px) {
.charts-section {
grid-template-columns: 1fr;
}
.site-header {
padding: 0 14px;
}
.logo-text {
font-size: 16px;
}
.page {
padding: 16px 12px 30px;
}
.search-bar {
flex-direction: column;
}
.search-bar button {
width: 100%;
}
}