eweng.space/assets/styles.css
2026-05-16 21:22:08 +02:00

808 lines
14 KiB
CSS

/* === BASE === */
body {
font-family: 'IM Fell English', serif;
font-size: 20px;
}
/* === ANIMATIONS === */
@keyframes colorshift {
0% { color: hsl(0, 60%, 70%); }
25% { color: hsl(90, 60%, 70%); }
50% { color: hsl(180, 60%, 70%); }
75% { color: hsl(270, 60%, 70%); }
100% { color: hsl(360, 60%, 70%); }
}
@keyframes levite {
0% { transform: translateY(0px); }
50% { transform: translateY(-5px); }
100% { transform: translateY(0px); }
}
/* === LAYOUT === */
.fenetre {
max-width: 600px;
border: 1px solid black;
padding: 0.3rem 1.5rem 0 1.5rem;
padding-bottom: 0;
margin-top: 0px;
position: relative;
z-index: 1;
display: grid;
grid-template-columns: 1fr auto;
align-items: start;
gap: 1rem;
overflow-wrap: break-word;
}
.fenetre--large { max-width: 950px; }
.fenetre--medium { max-width: 900px; }
.fenetre--small { max-width: 550px; }
.fenetre-nom {
margin-bottom: 1px;
margin-left: 2px;
}
.fenetre-contenu {
padding: 0 1rem 1.5rem 1rem;
min-width: 0;
}
/* === NAVIGATION === */
.retour {
font-family: 'IM Fell English', serif;
font-size: 20px;
color: inherit;
display: inline-block;
margin-bottom: 1px;
margin-right: 0.4rem;
text-decoration: none;
}
.retour:hover {
text-decoration: underline;
}
/* === COMPONENTS === */
.now {
font-size: 0.75rem;
font-style: italic;
color: #555;
padding-top: 0.6rem;
margin-top: 0.8rem;
line-height: 1.6;
text-align: right;
}
.index-header {
display: flex;
align-items: baseline;
justify-content: space-between;
max-width: 550px;
position: relative;
z-index: 1;
}
.index-header .now {
margin-right: -3rem;
}
.now-titre {
font-style: normal;
color: #999;
font-size: 0.7rem;
display: block;
margin-bottom: 0.2rem;
}
.soustitre {
font-size: medium;
font-style: italic;
color: grey;
}
.thanks {
width: 450px;
}
/* === REVIEWS: GRILLE === */
.grille {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-top: 1rem;
}
.carte {
width: 150px;
cursor: pointer;
transition: transform 0.2s ease, opacity 0.25s ease;
position: relative;
}
.carte img {
width: 150px;
height: 150px;
object-fit: cover;
display: block;
border: 1px solid #111;
}
.carte .placeholder {
width: 150px;
height: 150px;
background: #eee;
border: 1px solid #111;
display: flex;
align-items: center;
justify-content: center;
font-style: italic;
color: #999;
font-size: 0.8rem;
text-align: center;
padding: 0.5rem;
}
.carte .nom {
margin-top: 0.3rem;
font-size: 0.8rem;
line-height: 1.3;
}
.carte .nom .artiste {
font-style: italic;
color: #555;
}
.grille.hovering .carte {
opacity: 0.15;
}
.grille.hovering .carte.actif {
opacity: 1;
transform: scale(1.07);
z-index: 10;
}
.badge-fav {
position: absolute;
top: 4px;
right: 4px;
font-size: 0.7rem;
background: #fff;
border: 1px solid #111;
padding: 1px 4px;
pointer-events: none;
}
/* === REVIEWS: ALBUM PAGE === */
.col-cover {
position: sticky;
top: 1rem;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.4rem;
padding-top: 1rem;
padding-bottom: 1.5rem;
}
.cover {
height: 280px;
width: auto;
display: block;
border: 1px solid #111;
margin-top: 1rem;
}
.cover-legende {
font-size: 0.75rem;
font-style: italic;
color: #888;
text-align: center;
}
.meta-ligne {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 0.8rem;
font-size: 0.85rem;
color: #555;
border-bottom: 1px solid #ddd;
padding-bottom: 0.6rem;
margin-bottom: 1.2rem;
}
.note {
color: #111;
font-size: 1rem;
}
.genre-tag {
border: 1px solid #bbb;
padding: 1px 5px;
font-style: italic;
}
.review p {
margin-bottom: 1rem;
line-height: 1.5;
}
.review p:last-child {
margin-bottom: 0;
}
.nav-albums {
margin-top: 1.2rem;
padding-top: 0.6rem;
border-top: 1px solid #ddd;
display: flex;
gap: 1.5rem;
font-size: 0.9rem;
}
.nav-albums a:hover {
border-bottom-style: dashed;
}
/* === DEPECHES: FEED === */
.feed {
margin-top: 1.2rem;
display: flex;
flex-direction: column;
gap: 0;
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
.depeche {
border-top: 1px solid #ddd;
padding: 1rem 0;
scroll-margin-top: 1rem;
animation: fadeInUp 0.45s ease-out both;
}
.depeche:last-child {
border-bottom: 1px solid #ddd;
}
.depeche-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.4rem;
}
.depeche-date {
font-size: 0.75rem;
font-style: italic;
color: #999;
}
.depeche-actions {
display: flex;
gap: 0.3rem;
}
.depeche-action {
font-family: 'IM Fell English', serif;
font-size: 0.8rem;
background: none;
border: none;
color: #bbb;
cursor: pointer;
padding: 0 0.2rem;
line-height: 1;
transition: color 0.2s;
}
.depeche-action:hover {
color: #111;
}
.depeche-texte {
line-height: 1.6;
color: #111;
}
.depeche-texte strong { font-weight: bold; }
.depeche-texte em { font-style: italic; }
.depeche-texte del { text-decoration: line-through; opacity: 0.6; }
.inline-code {
font-family: 'Courier New', monospace;
font-size: 0.8em;
background: #f4f4f4;
padding: 0.1em 0.35em;
border: 1px solid #e0e0e0;
border-radius: 2px;
color: #333;
}
.hashtag {
color: hsl(180, 50%, 40%);
text-decoration: none;
border-bottom: 1px dotted hsl(180, 50%, 60%);
}
.hashtag:hover {
color: hsl(180, 60%, 25%);
border-bottom-style: solid;
}
.mention {
color: hsl(270, 40%, 50%);
font-weight: bold;
}
.depeche-link {
display: inline-flex;
align-items: baseline;
gap: 0.35rem;
text-decoration: none;
color: inherit;
border-bottom: 1px dotted #bbb;
max-width: 100%;
overflow-wrap: anywhere;
}
.depeche-link:hover {
border-bottom-style: solid;
border-bottom-color: #111;
}
.link-domain {
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.03em;
background: #111;
color: #fff;
padding: 0.05em 0.4em;
border-radius: 2px;
white-space: nowrap;
flex-shrink: 0;
}
.link-url {
font-size: 0.85rem;
font-style: italic;
color: #555;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 300px;
display: inline-block;
vertical-align: bottom;
}
.embed-container {
margin-top: 0.8rem;
width: 100%;
overflow: hidden;
border: 1px solid #ddd;
background: #fafafa;
}
.embed-container iframe {
width: 100%;
display: block;
border: none;
}
.embed-container.video {
aspect-ratio: 16 / 9;
}
.embed-container.video iframe {
height: 100%;
}
.embed-container.music iframe {
height: 152px;
}
.depeche-image {
margin-top: 0.8rem;
max-height: 400px;
max-width: 100%;
width: auto;
border: 1px solid #ddd;
display: block;
}
.chargement {
font-style: italic;
color: #aaa;
padding: 1rem 0;
}
.rss-link {
position: absolute;
top: 0.5rem;
right: 0.5rem;
font-size: 1rem;
font-style: italic;
color: #aaa;
text-decoration: none;
}
.rss-link:hover {
color: #111;
}
/* === PERSO IMAGES === */
.fenetre img.perso {
height: 400px;
width: auto;
display: block;
}
.fenetre img.perso--offset {
margin-top: 22px;
}
/* === RESPONSIVE === */
@media (max-width: 600px) {
body {
font-size: 17px;
}
.fenetre {
grid-template-columns: 1fr;
}
.fenetre img.perso,
.fenetre img.cover,
.thanks {
width: 100%;
height: auto;
}
.col-cover {
position: static;
padding-top: 0;
}
.index-header {
flex-direction: column;
gap: 0.3rem;
}
.now {
text-align: left;
}
}
/* === LIGHTBOX === */
.lightbox {
position: fixed;
inset: 0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}
.lightbox-fond {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.8);
cursor: zoom-out;
}
.lightbox-image {
position: relative;
max-width: 90vw;
max-height: 90vh;
object-fit: contain;
z-index: 1;
border: 2px solid white;
box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
.lightbox-fermer {
position: fixed;
top: 1rem;
right: 1.5rem;
z-index: 2;
background: none;
border: none;
color: #fff;
font-size: 2.5rem;
cursor: pointer;
font-family: 'IM Fell English', serif;
line-height: 1;
opacity: 0.7;
transition: opacity 0.2s;
}
.lightbox-fermer:hover {
opacity: 1;
}
/* === VINE ASCII ANIMATION === */
#vine-container {
position: fixed;
top: 0;
right: 0;
width: calc(100vw - 640px);
height: 100vh;
z-index: 0;
overflow: hidden;
}
#vine-container:hover {
cursor: crosshair;
}
.vine-char {
cursor: pointer;
}
.vine-char:hover {
color: #111 !important;
}
.vine-flower {
cursor: grab;
}
.vine-flower:active {
cursor: grabbing;
}
.vine-flower:hover {
filter: brightness(1.4);
}
@media (max-width: 1000px) {
#vine-container {
display: none;
}
}
@keyframes flowerFall {
0% {
transform: translateY(0) rotate(0deg);
opacity: 0.95;
}
100% {
transform: translateY(100px) rotate(60deg);
opacity: 0;
}
}
@keyframes leafFall {
0% {
transform: translateY(0) rotate(0deg) scale(1);
opacity: 0.6;
}
100% {
transform: translateY(80px) rotate(90deg) scale(0.6);
opacity: 0;
}
}
@keyframes flowerPulse {
0%, 100% {
transform: scale(1);
opacity: 0.9;
}
50% {
transform: scale(1.15);
opacity: 1;
}
}
.falling-flower {
animation: flowerFall 2.5s ease-in forwards;
}
.falling-leaf {
animation: leafFall 2s ease-in forwards;
}
.vine-flower {
animation: flowerPulse 2.5s ease-in-out infinite;
}
#vine-help-btn {
position: absolute;
top: 10px;
right: 10px;
width: 22px;
height: 22px;
border: 1px solid #111;
background: transparent;
font-family: 'IM Fell English', serif;
font-size: 14px;
line-height: 1;
color: #111;
cursor: pointer;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
transition: background 0.2s, color 0.2s;
}
#vine-help-btn:hover {
background: #111;
color: #fff;
}
#vine-flower-counter {
position: absolute;
top: 36px;
right: 10px;
font-family: 'IM Fell English', serif;
font-size: 13px;
color: hsl(180, 60%, 70%);
text-align: center;
width: 22px;
line-height: 1;
z-index: 10;
pointer-events: none;
}
#vine-help-panel {
position: absolute;
top: 40px;
right: 10px;
width: 260px;
background: #fff;
border: 1px solid #111;
padding: 0.8rem 1rem;
z-index: 10;
font-family: 'IM Fell English', serif;
font-size: 14px;
line-height: 1.5;
color: #111;
cursor: default;
}
#vine-help-panel .close {
position: absolute;
top: 2px;
right: 6px;
font-size: 18px;
cursor: pointer;
line-height: 1;
padding: 0;
background: none;
border: none;
color: #111;
font-family: 'IM Fell English', serif;
}
#vine-help-panel .close:hover {
opacity: 0.6;
}
#vine-help-panel h3 {
margin: 0 0 0.6rem 0;
font-size: 15px;
font-weight: normal;
border-bottom: 1px solid #eee;
padding-bottom: 0.3rem;
}
#vine-help-panel ul {
margin: 0;
padding: 0;
list-style: none;
}
#vine-help-panel li {
margin-bottom: 0.4rem;
padding-left: 0.8rem;
position: relative;
}
#vine-help-panel li::before {
content: '—';
position: absolute;
left: 0;
opacity: 0.4;
}
#vine-help-panel li kbd {
font-family: 'Courier New', monospace;
font-size: 11px;
border: 1px solid #ddd;
padding: 0 3px;
background: #f9f9f9;
margin-right: 2px;
}
/* === SWIRL (page d'accueil) === */
#swirl-container {
position: fixed;
top: 0;
right: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
z-index: 0;
overflow: hidden;
}
.swirl-char {
display: inline-block;
will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
#vine-container,
#swirl-container {
display: none;
}
}
/* === DETAILS / SUMMARY === */
summary {
cursor: pointer;
list-style: "+ ";
}
details[open] > summary {
list-style: "- ";
}
summary:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
/* === PAGE BOUTONS == */
.section-boutons {
margin-top: 1.2rem;
margin-bottom: 1.5rem;
}
.section-boutons h2 {
font-size: 1rem;
font-weight: normal;
font-style: italic;
color: #999;
margin-bottom: 0.6rem;
border-bottom: 1px solid #eee;
padding-bottom: 0.3rem;
}
.rangee-boutons {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
align-items: center;
}
.rangee-boutons img {
image-rendering: pixelated;
display: block;
}
.mon-bouton {
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid #ddd;
font-size: 0.85rem;
}
.mon-bouton p {
margin-bottom: 0.6rem;
color: #555;
font-style: italic;
}
code {
font-family: monospace;
font-size: 0.75rem;
background: #f5f5f5;
padding: 0.4rem 0.6rem;
display: block;
border: 1px solid #ddd;
overflow-x: auto;
color: #333;
}