diff --git a/app/static/app.css b/app/static/app.css index 253c92e..3eff4c6 100644 --- a/app/static/app.css +++ b/app/static/app.css @@ -49,8 +49,15 @@ header { background: var(--blue-dark); color: #fff; } border: 1px solid rgba(255,255,255,.3); transition: background .15s, color .15s; } .btn-logout-icon:hover { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; } +.width-switcher { display: flex; gap: 2px; align-items: center; flex-shrink: 0; } +.width-switcher button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); + color: rgba(255,255,255,.6); border-radius: 4px; padding: .2rem .45rem; font-size: .72rem; + font-weight: 700; cursor: pointer; transition: background .15s, color .15s; line-height: 1.3; } +.width-switcher button:hover { background: rgba(255,255,255,.18); color: #fff; } +.width-switcher button.ws-active { background: rgba(255,255,255,.25); color: #fff; border-color: rgba(255,255,255,.5); } + /* ── Mise en page ─────────────────────────────────────────────── */ -main { margin: 2rem 1.5rem; padding: 0 0 3rem; display: flex; flex-direction: column; gap: 1.5rem; } +main { max-width: var(--content-width, none); margin: 2rem auto; padding: 0 1.5rem 3rem; display: flex; flex-direction: column; gap: 1.5rem; } /* ── Carte générique ──────────────────────────────────────────── */ .card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.8rem; } diff --git a/app/templates/base.html b/app/templates/base.html index 5084d28..05802c8 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -28,6 +28,12 @@ value="{{ request.args.get('q', '') }}" aria-label="Recherche"> +