Désactivation des annonces sonores et refonte responsive mobile/tablette des pages de guidage WCS

This commit is contained in:
mathis committed 2026-08-30 22:07:34 +02:00
1 parent 4f3a34b101
commit 983f4f0160
9 files changed
+1315 -842

No files matched your search

+544
View File
@@ -0,0 +1,544 @@
/* ==============================================================================
Styles Responsive & WCS pour les pages de guidage (Accueil, Recherche, Sélection)
Optimisé pour Mobile, Tablette et Desktop
============================================================================== */
:root {
--sncf-primary: #002257;
--sncf-blue: #00439e;
--sncf-blue-light: #e8f0fe;
--sncf-blue-border: #c2dbfe;
--sncf-accent: #d70022;
--sncf-green: #008b47;
--sncf-green-light: #e6f4ea;
--sncf-bg: #f4f7fb;
--sncf-card-bg: #ffffff;
--sncf-text: #1a1a1a;
--sncf-text-secondary: #5f6368;
--sncf-border: #e2ebf6;
--sncf-radius: 12px;
--sncf-shadow: 0 4px 20px rgba(0, 34, 87, 0.08);
--sncf-shadow-hover: 0 8px 28px rgba(0, 34, 87, 0.14);
}
/* Conteneur principal responsive */
.launcher-container {
width: 100%;
max-width: 980px;
margin: 0 auto;
padding: 16px;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (min-width: 768px) {
.launcher-container {
padding: 24px 32px;
}
}
/* Carte principale */
.launcher-card {
background: var(--sncf-card-bg);
border-radius: var(--sncf-radius);
box-shadow: var(--sncf-shadow);
padding: 20px;
margin-bottom: 24px;
border: 1px solid var(--sncf-border);
}
@media (min-width: 768px) {
.launcher-card {
padding: 32px;
}
}
/* Stepper de navigation (Étapes) */
.launcher-stepper {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 24px;
padding-bottom: 16px;
border-bottom: 1px solid var(--sncf-border);
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.launcher-step {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
font-weight: 600;
color: var(--sncf-text-secondary);
white-space: nowrap;
flex-shrink: 0;
}
.launcher-step--active {
color: var(--sncf-blue);
}
.launcher-step--completed {
color: var(--sncf-green);
}
.launcher-step-num {
width: 24px;
height: 24px;
border-radius: 50%;
background: #e0e8f6;
color: #555;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 700;
}
.launcher-step--active .launcher-step-num {
background: var(--sncf-blue);
color: #ffffff;
}
.launcher-step--completed .launcher-step-num {
background: var(--sncf-green);
color: #ffffff;
}
.launcher-step-separator {
color: #ccc;
font-size: 14px;
}
/* Header & Titres */
.launcher-header {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 20px;
}
@media (min-width: 600px) {
.launcher-header {
flex-direction: row;
align-items: center;
justify-content: space-between;
}
}
.launcher-title {
margin: 0;
color: var(--sncf-primary);
font-size: 24px;
font-weight: 700;
letter-spacing: -0.5px;
}
@media (min-width: 768px) {
.launcher-title {
font-size: 28px;
}
}
.launcher-badge {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 600;
padding: 6px 12px;
border-radius: 20px;
background: var(--sncf-blue-light);
color: var(--sncf-blue);
width: fit-content;
}
.launcher-badge--supabase {
background: var(--sncf-green-light);
color: var(--sncf-green);
}
.launcher-subtitle {
margin: 0 0 20px 0;
color: var(--sncf-text-secondary);
font-size: 15px;
line-height: 1.5;
}
/* Grille de sélection tactile */
.launcher-grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
margin-bottom: 24px;
}
@media (min-width: 600px) {
.launcher-grid--2col {
grid-template-columns: 1fr 1fr;
gap: 20px;
}
}
@media (min-width: 768px) {
.launcher-grid--4col {
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
}
@media (min-width: 1024px) {
.launcher-grid--4col {
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
}
/* Cartes sélectionnables */
.launcher-select-card {
border: 2px solid var(--sncf-border);
border-radius: var(--sncf-radius);
padding: 20px;
display: flex;
flex-direction: column;
justifyContent: space-between;
background: #ffffff;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
position: relative;
text-decoration: none;
color: inherit;
box-sizing: border-box;
}
.launcher-select-card:hover,
.launcher-select-card:focus-visible {
border-color: var(--sncf-blue);
transform: translateY(-2px);
box-shadow: var(--sncf-shadow-hover);
outline: none;
}
.launcher-select-card--selected {
border-color: var(--sncf-blue);
background: #f8fbff;
box-shadow: 0 0 0 1px var(--sncf-blue);
}
.launcher-card-icon {
font-size: 32px;
margin-bottom: 12px;
display: inline-block;
}
.launcher-card-title {
margin: 0 0 8px 0;
color: var(--sncf-blue);
font-size: 19px;
font-weight: 700;
}
.launcher-card-desc {
margin: 0 0 16px 0;
color: var(--sncf-text-secondary);
font-size: 14px;
line-height: 1.4;
flex-grow: 1;
}
.launcher-card-tag {
display: inline-block;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 3px 8px;
border-radius: 4px;
background: #eef3fb;
color: #00439e;
margin-bottom: 12px;
width: fit-content;
}
.launcher-card-tag--retro {
background: #fff0d4;
color: #a35200;
}
.launcher-card-tag--modern {
background: #e6f4ea;
color: #137333;
}
/* Barre de recherche tactile */
.launcher-search-box {
position: relative;
width: 100%;
margin-bottom: 16px;
}
.launcher-search-input {
width: 100%;
padding: 14px 44px 14px 16px;
font-size: 16px;
border: 2px solid var(--sncf-border);
border-radius: 10px;
background: #ffffff;
color: var(--sncf-text);
box-sizing: border-box;
transition: border-color 0.2s, box-shadow 0.2s;
-webkit-appearance: none;
}
.launcher-search-input:focus {
border-color: var(--sncf-blue);
outline: none;
box-shadow: 0 0 0 3px rgba(0, 67, 158, 0.15);
}
.launcher-search-clear {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
background: #e0e0e0;
border: none;
border-radius: 50%;
width: 24px;
height: 24px;
font-size: 12px;
font-weight: bold;
color: #666;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
/* Raccourcis / Gares populaires (Chips) */
.launcher-chips-container {
margin-bottom: 20px;
}
.launcher-chips-label {
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--sncf-text-secondary);
margin-bottom: 8px;
display: block;
}
.launcher-chips-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.launcher-chip {
background: #ffffff;
border: 1px solid var(--sncf-border);
border-radius: 20px;
padding: 8px 14px;
font-size: 13px;
font-weight: 600;
color: var(--sncf-primary);
cursor: pointer;
transition: all 0.15s ease;
white-space: nowrap;
user-select: none;
}
.launcher-chip:hover,
.launcher-chip:focus-visible {
background: var(--sncf-blue-light);
border-color: var(--sncf-blue-border);
color: var(--sncf-blue);
}
.launcher-chip--active {
background: var(--sncf-blue);
border-color: var(--sncf-blue);
color: #ffffff;
}
/* Liste des résultats de recherche */
.launcher-results-list {
background: #ffffff;
border: 1px solid var(--sncf-border);
border-radius: 10px;
overflow: hidden;
max-height: 400px;
overflow-y: auto;
box-shadow: var(--sncf-shadow);
margin-bottom: 20px;
}
.launcher-result-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 16px;
cursor: pointer;
border-bottom: 1px solid #f0f3f8;
transition: background-color 0.15s ease;
min-height: 48px;
box-sizing: border-box;
}
.launcher-result-item:last-child {
border-bottom: none;
}
.launcher-result-item:hover,
.launcher-result-item:focus-visible {
background: #f2f7ff;
}
.launcher-result-name {
font-size: 15px;
font-weight: 600;
color: var(--sncf-primary);
}
.launcher-result-sub {
font-size: 13px;
color: var(--sncf-text-secondary);
margin-top: 2px;
}
.launcher-result-tag {
font-size: 11px;
font-weight: 600;
background: #edf2f7;
color: #4a5568;
padding: 3px 8px;
border-radius: 6px;
}
/* Checklist interactive des pages AFL */
.launcher-checklist-box {
background: #ffffff;
border: 1px solid var(--sncf-blue-border);
border-radius: 10px;
padding: 16px;
margin-bottom: 20px;
}
.launcher-checklist-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
flex-wrap: wrap;
gap: 8px;
}
.launcher-checklist-title {
font-size: 14px;
font-weight: 700;
color: var(--sncf-primary);
}
.launcher-checklist-actions {
display: flex;
gap: 8px;
}
.launcher-link-btn {
background: none;
border: none;
color: var(--sncf-blue);
font-size: 12px;
font-weight: 600;
cursor: pointer;
padding: 0;
text-decoration: underline;
}
.launcher-checkbox-label {
display: flex;
align-items: center;
gap: 12px;
font-size: 14px;
color: var(--sncf-text);
padding: 10px 12px;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.15s ease;
user-select: none;
min-height: 40px;
box-sizing: border-box;
}
.launcher-checkbox-label:hover {
background: #f4f8ff;
}
.launcher-checkbox {
width: 20px;
height: 20px;
accent-color: var(--sncf-blue);
cursor: pointer;
flex-shrink: 0;
}
/* Boutons d'action WCS & Standard */
.launcher-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 14px 20px;
font-size: 15px;
font-weight: 700;
border-radius: 8px;
border: none;
cursor: pointer;
transition: all 0.2s ease;
box-sizing: border-box;
text-align: center;
text-decoration: none;
min-height: 48px;
}
.launcher-btn--primary {
background: var(--sncf-blue);
color: #ffffff;
}
.launcher-btn--primary:hover {
background: #00337c;
}
.launcher-btn--success {
background: var(--sncf-green);
color: #ffffff;
}
.launcher-btn--success:hover {
background: #006e38;
}
.launcher-btn--secondary {
background: #eef3fb;
color: var(--sncf-blue);
border: 1px solid var(--sncf-blue-border);
}
.launcher-btn--secondary:hover {
background: var(--sncf-blue-light);
}
/* Pied de page de navigation (Retour) */
.launcher-footer-nav {
border-top: 1px solid var(--sncf-border);
padding-top: 20px;
display: flex;
justify-content: flex-start;
}