Ajout mode présentation

This commit is contained in:
Esteban committed 2026-08-28 00:04:48 +02:00
1 parent 4862d61ccd
commit 08875d3b5a
18 files changed
+1781 -270

No files matched your search

+239
View File
@@ -2496,3 +2496,242 @@ main {
animation: none;
}
}
/* ---- MODE PRÉSENTATION : écran de saisie du code / écran "trop de tentatives" ----
Ces deux écrans vivent dans le chrome normal du site (header + footer), contrairement
à la lecture immersive une fois déverrouillé (voir styles/presentation.css) */
.presentation-lock-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 65vh;
padding: 40px 16px;
}
.presentation-lock-card {
background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
padding: 44px 40px;
width: 460px;
max-width: 100%;
text-align: center;
}
.presentation-lock-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
margin-bottom: 20px;
border-radius: 999px;
background: var(--accent-soft);
border: 1px solid var(--accent-border);
color: var(--accent-light);
font-size: 13px;
font-weight: 700;
}
.presentation-lock-badge--danger {
background: rgba(229, 72, 77, 0.12);
border-color: rgba(229, 72, 77, 0.35);
color: #ff8a8d;
}
[data-theme="light"] .presentation-lock-badge--danger {
color: var(--danger-dark);
}
.presentation-lock-card h1 {
margin: 0 0 10px;
font-size: 26px;
font-weight: 800;
letter-spacing: -0.01em;
color: var(--text);
}
.presentation-lock-card p {
margin: 0 0 6px;
color: var(--text-soft);
font-size: 15px;
line-height: 1.6;
}
.presentation-lock-card p:last-of-type {
margin-bottom: 22px;
}
.presentation-lock-btn {
width: 100%;
justify-content: center;
}
.presentation-lock-error {
margin: 16px 0 0;
padding: 10px 14px;
border-radius: var(--radius-sm);
background: rgba(229, 72, 77, 0.12);
border: 1px solid rgba(229, 72, 77, 0.3);
color: #ff8a8d;
font-size: 14px;
}
[data-theme="light"] .presentation-lock-error {
color: var(--danger-dark);
}
/* Les 9 cases du code PIN */
.presentation-pin-form {
margin-top: 22px;
}
.pin-boxes {
display: flex;
justify-content: center;
gap: 8px;
margin-bottom: 22px;
}
.pin-box {
width: 38px;
height: 48px;
text-align: center;
background-color: var(--surface-2);
border: 1px solid var(--border-strong);
border-radius: var(--radius-sm);
color: var(--text);
font-family: var(--font);
font-size: 20px;
font-weight: 700;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pin-box:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Bouton "maintenir pour afficher" sous les cases du code : discret, il ne doit pas
attirer l'oeil autant que le bouton Valider */
.pin-reveal {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0 auto 20px;
padding: 7px 14px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 999px;
color: var(--text-muted);
font-family: var(--font);
font-size: 13px;
font-weight: 600;
cursor: pointer;
/* Le maintien affiche le code : on empêche la sélection du texte du bouton pendant
l'appui prolongé, sinon le navigateur surligne le libellé */
user-select: none;
-webkit-user-select: none;
-webkit-touch-callout: none;
transition: color 0.2s ease, border-color 0.2s ease;
}
.pin-reveal:hover {
color: var(--text-soft);
border-color: var(--border-strong);
}
/* Pendant que le bouton est maintenu : accent orange pour montrer que le code est visible */
.pin-reveal.is-revealing {
color: var(--accent-light);
border-color: var(--accent-border);
background: var(--accent-soft);
}
.pin-reveal:focus-visible {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
.presentation-pin-submit {
width: 100%;
}
.presentation-pin-submit:disabled {
opacity: 0.5;
cursor: not-allowed;
filter: none;
transform: none;
}
/* Pastilles "tentatives restantes", même principe que sur le captcha */
.pin-attempts {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
margin-top: 24px;
color: var(--text-muted);
font-size: 13px;
}
.pin-attempts-dots {
display: flex;
gap: 6px;
}
.pin-attempts-dots span {
width: 9px;
height: 9px;
border-radius: 50%;
}
.pin-attempts-dots .dot-filled {
background: var(--accent);
}
.pin-attempts-dots .dot-empty {
background: var(--border-strong);
}
@media (max-width: 480px) {
.pin-box {
width: 30px;
height: 42px;
font-size: 17px;
}
.pin-boxes {
gap: 5px;
}
}
/* Petit bouton "Insérer une image" au-dessus du champ markdown du mode présentation
(panel admin) : insère la syntaxe markdown au curseur, sans avoir à s'en souvenir */
.markdown-toolbar {
margin-bottom: 8px;
}
.markdown-insert-image {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-soft);
font-family: var(--font);
font-size: 13.5px;
font-weight: 600;
cursor: pointer;
transition: color 0.2s ease, border-color 0.2s ease;
}
.markdown-insert-image:hover {
color: var(--accent-light);
border-color: var(--accent-border);
}