Section images:
- A section gets an optional image, set from its new "Modifier" dialog
(name and image), which replaces "Renommer". It goes through the same
conversion as track covers and is deleted with its section.
- Track and section uploads share routes/coverUpload.js. The cover
folder is created again if it went missing, instead of failing.
Larger images: 72 px for tracks (was 48), 96 px for section headers,
160 px in the player and the edit dialog (was 96); smaller on phones.
Tags:
- Library tracks take free tags, edited in the "Modifier" dialog, which
suggests the tags already in use. Case is ignored ("Épique" and
"épique" are one tag); at most 15 tags of 30 characters.
- A tag bar above the library filters it, and the "Tout ajouter"
buttons (global and per section) then only queue its tracks
(enqueue-all takes a tag). The search also matches tags.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
908 lines
17 KiB
CSS
908 lines
17 KiB
CSS
/*
|
|
* Rôle : feuille de style unique du site, pour la page d'accueil (index.html) et la page du jukebox
|
|
* (jukebox.html), y compris les éléments créés par public/scripts/jukebox.js.
|
|
* Chargé par : public/index.html et public/jukebox.html.
|
|
* Attention : servie telle quelle, sans compilation. Les couleurs viennent des variables de :root ;
|
|
* leurs versions transparentes en dérivent avec color-mix() au lieu d'être recopiées en rgba().
|
|
*/
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Variables
|
|
*/
|
|
|
|
:root {
|
|
color-scheme: dark;
|
|
--bg: #050109;
|
|
--bg-card: rgba(22, 14, 36, 0.9);
|
|
--bg-glass: rgba(42, 25, 66, 0.65);
|
|
--text: #f7f1ff;
|
|
--muted: #cbc4d5;
|
|
--muted-dark: #8c7ea7;
|
|
--accent: #b259ff;
|
|
--accent-strong: #d66bff;
|
|
--accent-gradient: linear-gradient(120deg, var(--accent), var(--accent-strong));
|
|
/* Texte posé sur l'accent (boutons principaux). */
|
|
--on-accent: #08010f;
|
|
--danger: #ff4d6d;
|
|
--success: #59ffa7;
|
|
/* Voiles blancs, du plus léger au plus marqué : fonds de champs, bordures, pastilles, boutons. */
|
|
--surface-soft: rgba(255, 255, 255, 0.05);
|
|
--border: rgba(255, 255, 255, 0.08);
|
|
--border-strong: rgba(255, 255, 255, 0.12);
|
|
--surface-strong: rgba(255, 255, 255, 0.15);
|
|
--shadow: rgba(2, 0, 8, 0.45);
|
|
--gradient: radial-gradient(circle at 20% 20%, #2d1a49, transparent 45%),
|
|
radial-gradient(circle at 80% 0%, #551e8c, transparent 40%),
|
|
radial-gradient(circle at 50% 80%, #150b28, transparent 30%);
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Base
|
|
*/
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
code {
|
|
background: var(--border);
|
|
border-radius: 6px;
|
|
padding: 0.1rem 0.35rem;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
background: var(--gradient), var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
main {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 1.5rem 4rem;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
margin: 0;
|
|
}
|
|
|
|
p {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.text--muted {
|
|
color: var(--muted);
|
|
text-align: center;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* En-tête des pages (illustration, titre, connexion)
|
|
*/
|
|
|
|
.hero {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 2rem;
|
|
padding: 3rem 1.5rem;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Page d'accueil : illustration plus grande. */
|
|
.hero--home {
|
|
gap: 2.75rem;
|
|
|
|
& .hero__visual img {
|
|
max-width: 320px;
|
|
}
|
|
}
|
|
|
|
.hero__content {
|
|
flex: 1;
|
|
min-width: 280px;
|
|
|
|
& h1 {
|
|
font-size: 2.2rem;
|
|
line-height: 1.1;
|
|
margin-top: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
& p {
|
|
color: var(--muted);
|
|
font-size: 1.05rem;
|
|
max-width: 500px;
|
|
}
|
|
}
|
|
|
|
.hero__actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.hero__actions--centered {
|
|
justify-content: center;
|
|
margin: 2rem auto 3rem;
|
|
}
|
|
|
|
.hero__visual {
|
|
min-width: 200px;
|
|
display: flex;
|
|
justify-content: center;
|
|
|
|
& img {
|
|
max-width: 200px;
|
|
width: 100%;
|
|
height: auto;
|
|
filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.45));
|
|
}
|
|
}
|
|
|
|
.hero__auth {
|
|
max-width: 330px;
|
|
}
|
|
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
font-size: 0.9rem;
|
|
padding: 0.35rem 0.85rem;
|
|
border-radius: 999px;
|
|
background: var(--border);
|
|
color: var(--muted);
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Panneaux
|
|
*/
|
|
|
|
.panel {
|
|
border-radius: 18px;
|
|
padding: 1.75rem;
|
|
margin-bottom: 1.75rem;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.panel--glass {
|
|
background: var(--bg-glass);
|
|
box-shadow: 0 20px 38px var(--shadow);
|
|
backdrop-filter: blur(18px);
|
|
}
|
|
|
|
/* Fichiers glissés au-dessus de la section d'ajout. */
|
|
.panel--dragover {
|
|
border-color: var(--accent);
|
|
border-style: dashed;
|
|
}
|
|
|
|
.panel__subtitle {
|
|
color: var(--muted);
|
|
margin-top: 0.35rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.panel__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.badge {
|
|
padding: 0.35rem 0.9rem;
|
|
background: color-mix(in srgb, var(--accent) 20%, transparent);
|
|
color: var(--accent);
|
|
border-radius: 12px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Formulaires
|
|
*/
|
|
|
|
label {
|
|
display: block;
|
|
font-size: 0.95rem;
|
|
color: var(--muted);
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"],
|
|
input[type="url"],
|
|
input[type="search"],
|
|
input[type="file"],
|
|
select,
|
|
textarea {
|
|
width: 100%;
|
|
padding: 0.7rem 0.9rem;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-strong);
|
|
background: var(--surface-soft);
|
|
color: #fff;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
input[type="file"] {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
input:focus,
|
|
textarea:focus,
|
|
select:focus {
|
|
outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
|
|
border-color: color-mix(in srgb, var(--accent) 60%, transparent);
|
|
}
|
|
|
|
.form-checkbox {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.5rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.form-checkbox__input {
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
/* Section repliable du mot de passe, quand la connexion avec Discord est proposée. */
|
|
.key-login summary {
|
|
cursor: pointer;
|
|
color: var(--muted);
|
|
margin: 1rem 0 0.75rem;
|
|
}
|
|
|
|
.form-actions {
|
|
margin-top: 1.25rem;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Boutons
|
|
*/
|
|
|
|
.btn {
|
|
border: none;
|
|
border-radius: 999px;
|
|
padding: 0.65rem 1.55rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
background: var(--accent-gradient);
|
|
color: var(--on-accent);
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
|
|
&:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 10px 25px color-mix(in srgb, var(--accent) 35%, transparent);
|
|
}
|
|
|
|
&:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
.btn--secondary {
|
|
background: var(--surface-strong);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn--danger {
|
|
background: linear-gradient(120deg, var(--danger), #ff89a5);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn--ghost {
|
|
background: transparent;
|
|
border: 1px solid rgba(255, 255, 255, 0.35);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn--small {
|
|
padding: 0.4rem 1rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
a.btn {
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Bouton aux couleurs de Discord (blurple), avec son logo. */
|
|
.btn.btn--discord {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.55rem;
|
|
width: 100%;
|
|
min-height: 46px;
|
|
padding: 0.6rem 0.9rem;
|
|
font-size: 0.95rem;
|
|
line-height: 1.2;
|
|
border: 1px solid #6f7bff;
|
|
border-radius: 10px;
|
|
background: #5865f2;
|
|
box-shadow: 0 6px 16px rgba(35, 39, 96, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
|
|
color: #fff;
|
|
font-weight: 700;
|
|
|
|
& svg {
|
|
flex: 0 0 24px;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
&:hover {
|
|
border-color: #7c86ff;
|
|
background: #4752c4;
|
|
box-shadow: 0 8px 20px rgba(35, 39, 96, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.16);
|
|
}
|
|
}
|
|
|
|
/* Bouton à bascule activé (boucle) : reprend l'aspect du bouton principal. */
|
|
.btn[aria-pressed="true"] {
|
|
background: var(--accent-gradient);
|
|
color: var(--on-accent);
|
|
}
|
|
|
|
.btn:focus-visible {
|
|
outline: 2px solid #fff;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.control-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
margin-top: 1.25rem;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Lecteur : indicateur du flux en direct, morceau en cours, progression
|
|
*/
|
|
|
|
.live-indicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
font-size: 0.85rem;
|
|
color: var(--muted-dark);
|
|
white-space: nowrap;
|
|
|
|
&::before {
|
|
content: "";
|
|
width: 0.55rem;
|
|
height: 0.55rem;
|
|
border-radius: 50%;
|
|
background: var(--muted-dark);
|
|
}
|
|
|
|
&[data-live="true"] {
|
|
color: var(--success);
|
|
}
|
|
|
|
&[data-live="true"]::before {
|
|
background: var(--success);
|
|
box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 15%, transparent);
|
|
}
|
|
}
|
|
|
|
.player-current {
|
|
background: rgba(0, 0, 0, 0.25);
|
|
border-radius: 16px;
|
|
padding: 1.2rem;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.player-current--empty {
|
|
color: var(--muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.player-current:not(.player-current--empty) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.1rem;
|
|
}
|
|
|
|
.progress {
|
|
margin-top: 0.9rem;
|
|
}
|
|
|
|
.progress__track {
|
|
height: 6px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress__bar {
|
|
height: 100%;
|
|
width: 0;
|
|
background: var(--accent-gradient);
|
|
/* La largeur est mise à jour chaque seconde : la transition rend l'avancée continue. */
|
|
transition: width 0.9s linear;
|
|
}
|
|
|
|
.progress__times {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
color: var(--muted);
|
|
font-size: 0.85rem;
|
|
margin-top: 0.35rem;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Ajout de morceaux : envois en cours, ajout par lien
|
|
*/
|
|
|
|
.upload-list {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.upload-list__item {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.4rem 0;
|
|
font-size: 0.9rem;
|
|
|
|
& progress {
|
|
width: 100%;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
&[data-state="ok"] .upload-list__state {
|
|
color: var(--success);
|
|
}
|
|
|
|
&[data-state="error"] .upload-list__state {
|
|
color: var(--danger);
|
|
}
|
|
}
|
|
|
|
.upload-list__name {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.upload-list__state {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.url-form {
|
|
border-top: 1px solid var(--border);
|
|
padding-top: 1.25rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.url-form__row {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.hint {
|
|
color: var(--muted-dark);
|
|
font-size: 0.85rem;
|
|
margin: 0.5rem 0 0;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Messages d'état (voir createStatusManager dans common.js)
|
|
*/
|
|
|
|
.status {
|
|
padding: 0.85rem 1.25rem;
|
|
border-radius: 999px;
|
|
font-size: 0.95rem;
|
|
margin: 1rem 0 2rem;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.status--info {
|
|
background: color-mix(in srgb, var(--accent) 20%, transparent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.status--error {
|
|
background: color-mix(in srgb, var(--danger) 15%, transparent);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.status--success {
|
|
background: color-mix(in srgb, var(--success) 15%, transparent);
|
|
color: var(--success);
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Listes de morceaux (file d'attente, bibliothèque)
|
|
*/
|
|
|
|
.list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.list--stack > li {
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.media-item {
|
|
display: flex;
|
|
gap: 1rem;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.9rem 0;
|
|
}
|
|
|
|
.media-item__info {
|
|
flex: 1;
|
|
}
|
|
|
|
.media-item__title {
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.media-item__meta {
|
|
color: var(--muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.media-item__actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
/* Pochette d'un morceau : <img>, ou <div> vide (note de musique) ou à image de fond (aperçu). */
|
|
.cover {
|
|
flex-shrink: 0;
|
|
width: 72px;
|
|
height: 72px;
|
|
border-radius: 12px;
|
|
object-fit: cover;
|
|
background: var(--surface-soft) center / cover no-repeat;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
/* Lecteur et fenêtre de modification. */
|
|
.cover--large {
|
|
width: 160px;
|
|
height: 160px;
|
|
border-radius: 18px;
|
|
}
|
|
|
|
.cover--empty {
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--muted-dark);
|
|
|
|
&::after {
|
|
content: "♪";
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
&.cover--large::after {
|
|
font-size: 3.5rem;
|
|
}
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Bibliothèque : sections repliables et fenêtre de modification (morceau ou section)
|
|
*/
|
|
|
|
.library {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.library-section {
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
padding: 0 1rem;
|
|
margin-bottom: 0.75rem;
|
|
background: var(--surface-soft);
|
|
|
|
& .list--stack > li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
.library-section__summary {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.85rem 0;
|
|
cursor: pointer;
|
|
list-style: none;
|
|
|
|
&::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
&::before {
|
|
content: "▸";
|
|
color: var(--accent);
|
|
transition: transform 0.15s ease;
|
|
}
|
|
|
|
[open] > &::before {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
|
|
/* Nom et nombre de morceaux : restent à côté de l'image, quitte à passer sur deux lignes. */
|
|
.library-section__heading {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 0.25rem 0.75rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Étiquettes : sous un morceau, en barre de filtre au-dessus de la bibliothèque, ou en
|
|
suggestions dans la fenêtre de modification. Celle du filtre actif est pressée. */
|
|
.tag-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
|
|
&:not(:empty) {
|
|
margin-top: 0.4rem;
|
|
}
|
|
}
|
|
|
|
.tag-list--filter:not(:empty) {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
padding: 0.2rem 0.7rem;
|
|
border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--accent) 15%, transparent);
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background: color-mix(in srgb, var(--accent) 30%, transparent);
|
|
}
|
|
|
|
&[aria-pressed="true"] {
|
|
background: var(--accent-gradient);
|
|
color: var(--on-accent);
|
|
border-color: transparent;
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: 2px solid #fff;
|
|
outline-offset: 2px;
|
|
}
|
|
}
|
|
|
|
.tag__count {
|
|
opacity: 0.7;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Image de la section, entre la flèche et le nom. */
|
|
.cover--section {
|
|
width: 96px;
|
|
height: 96px;
|
|
border-radius: 14px;
|
|
}
|
|
|
|
.library-section__name {
|
|
font-weight: 600;
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.library-section__count {
|
|
color: var(--muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.library-section__toolbar {
|
|
padding-bottom: 0.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.library-section__empty {
|
|
padding: 0.75rem 0 1rem;
|
|
}
|
|
|
|
.dialog {
|
|
width: min(520px, calc(100% - 2rem));
|
|
padding: 1.75rem;
|
|
border-radius: 18px;
|
|
border: 1px solid var(--border-strong);
|
|
background: var(--bg-card);
|
|
color: var(--text);
|
|
box-shadow: 0 20px 38px var(--shadow);
|
|
|
|
&::backdrop {
|
|
background: color-mix(in srgb, var(--bg) 70%, transparent);
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
& h2 {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
}
|
|
|
|
.cover-editor {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.cover-editor__fields {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Page d'accueil : cartes vers les pages du site
|
|
*/
|
|
|
|
.feature-grid {
|
|
display: grid;
|
|
gap: 1rem;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
}
|
|
|
|
.feature-grid__card {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
display: block;
|
|
border: 1px solid var(--border);
|
|
border-radius: 18px;
|
|
padding: 1.25rem 1.5rem;
|
|
background: var(--bg-card);
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
|
|
&:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 15px 30px var(--shadow);
|
|
}
|
|
|
|
& .pill {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Utilitaires de mise en page
|
|
*/
|
|
|
|
.grid {
|
|
display: grid;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.grid--two {
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
}
|
|
|
|
.u-mt-1 {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Petits écrans
|
|
*/
|
|
|
|
@media (max-width: 900px) {
|
|
.hero {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
}
|
|
|
|
.hero__content p {
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.hero__actions {
|
|
justify-content: center;
|
|
}
|
|
|
|
.panel__header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.control-group,
|
|
.url-form__row {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.upload-list__item {
|
|
grid-template-columns: 1fr;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
/* Pochette et titre côte à côte, boutons en dessous sur toute la largeur. */
|
|
.media-item {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.media-item__info {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.media-item__actions {
|
|
flex-basis: 100%;
|
|
}
|
|
|
|
.cover-editor {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.cover {
|
|
width: 60px;
|
|
height: 60px;
|
|
}
|
|
|
|
.cover--large,
|
|
.cover--section {
|
|
width: 96px;
|
|
height: 96px;
|
|
}
|
|
|
|
.media-item__actions .btn,
|
|
.library-section__toolbar .btn {
|
|
width: auto;
|
|
flex: 1;
|
|
}
|
|
}
|