Mode clair / sombre et thèmes de saison
This commit is contained in:
parent
da05adede1
commit
17cf2c8380
19 changed files with 3563 additions and 0 deletions
132
assets/css/effects.css
Normal file
132
assets/css/effects.css
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
/* effects.css : thème yb2026 (base : handoff/theme-assets/effects.css, design v3) */
|
||||
:root {
|
||||
--bg:#0a0a0a; --card:#101010; --ph:#141414; --ink:#f5f5f0; --lime:#d3fd50;
|
||||
--bg-rgb:10,10,10; --ink-rgb:245,245,240; --lime-rgb:211,253,80;
|
||||
--blend-ink:#f5f5f0; /* titre en mix-blend-mode: difference */
|
||||
--gut:44px; color-scheme:dark;
|
||||
}
|
||||
/* Mode clair : papier, encre presque noire, accent chartreuse profond (contraste 5:1) */
|
||||
html[data-theme="light"] {
|
||||
--bg:#f3f2ed; --card:#ffffff; --ph:#e7e6e0; --ink:#111111; --lime:#4a7300;
|
||||
--bg-rgb:243,242,237; --ink-rgb:17,17,17; --lime-rgb:74,115,0;
|
||||
--blend-ink:#ffffff; --cursor-blend:normal; color-scheme:light;
|
||||
}
|
||||
@media (max-width:1024px) { :root { --gut:30px; } }
|
||||
@media (max-width:720px) { :root { --gut:20px; } }
|
||||
::selection { background:var(--lime); color:var(--bg); }
|
||||
.has-custom-cursor, .has-custom-cursor * { cursor:none !important; }
|
||||
body.no-scroll { overflow:hidden; }
|
||||
html { background-color:var(--bg); }
|
||||
|
||||
/* Grain filmique */
|
||||
body::after { content:''; position:fixed; inset:0; z-index:96; pointer-events:none; opacity:.05;
|
||||
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
|
||||
|
||||
/* Barre de progression + nav */
|
||||
/* Barre dessinée en ombre interne (pas en fond) : Safari iOS teinte ses barres avec le fond des éléments fixés en haut */
|
||||
.scroll-progress { position:fixed; top:0; left:0; right:0; height:2px; z-index:60; box-shadow:inset 0 2px 0 var(--lime); transform:scaleX(0); transform-origin:left; pointer-events:none; }
|
||||
.site-nav { position:fixed; top:0; left:0; right:0; z-index:50; transition:transform .5s cubic-bezier(.2,.8,.2,1);
|
||||
background:rgba(var(--bg-rgb), .55); backdrop-filter:blur(14px); border-bottom:1px solid rgba(var(--ink-rgb), .07); }
|
||||
|
||||
/* Rail */
|
||||
.section-rail [data-rail-target] { color:rgba(var(--ink-rgb), .35); transition:color .3s; }
|
||||
.section-rail [data-rail-target]::after { content:''; display:inline-block; width:5px; height:5px; margin-left:9px; border-radius:50%; background:rgba(var(--ink-rgb), .25); transition:background .3s, box-shadow .3s; }
|
||||
.section-rail .is-active { color:var(--lime); }
|
||||
.section-rail .is-active::after { background:var(--lime); box-shadow:0 0 10px rgba(var(--lime-rgb), .8); }
|
||||
|
||||
/* Reveals */
|
||||
[data-reveal] { opacity:0; transform:translateY(48px); transition:opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
|
||||
[data-reveal].is-in { opacity:1; transform:none; }
|
||||
|
||||
/* Hero : titre révélé ligne par ligne (chaque ligne dans un wrapper overflow:hidden) */
|
||||
@keyframes yb-line-up { from { transform:translateY(115%); } to { transform:none; } }
|
||||
.line-mask { overflow:hidden; }
|
||||
.line-mask > * { animation:yb-line-up 1.05s cubic-bezier(.2,.8,.2,1) backwards; }
|
||||
.line-mask:nth-child(2) > * { animation-delay:.14s; }
|
||||
.line-mask:nth-child(3) > * { animation-delay:.28s; }
|
||||
@keyframes yb-arrow { 0%,100% { transform:none; } 50% { transform:translateX(9px); } }
|
||||
.scroll-hint__arrow { display:inline-block; animation:yb-arrow 1.6s ease-in-out infinite; }
|
||||
|
||||
/* Wipe */
|
||||
/* Rideau masqué (visibility) au repos : sinon Safari iOS garde sa couleur pour ses barres haut et bas */
|
||||
.yb-wipe { position:fixed; inset:0; z-index:9990; background:var(--lime); display:flex; align-items:center; justify-content:center;
|
||||
transform:translateY(100%); visibility:hidden; transition:transform .45s cubic-bezier(.7,0,.3,1), visibility 0s .45s; pointer-events:none; }
|
||||
.yb-wipe.is-covering { transform:none; visibility:visible; transition:transform .45s cubic-bezier(.7,0,.3,1), visibility 0s; }
|
||||
html.is-entering .yb-wipe { transform:none; visibility:visible; transition:none; }
|
||||
html:not(.is-entering) .yb-wipe:not(.is-covering) { transform:translateY(-100%); visibility:hidden; transition:transform .55s cubic-bezier(.7,0,.3,1), visibility 0s .55s; }
|
||||
.yb-wipe__label { font:700 16px 'JetBrains Mono',monospace; color:var(--bg); letter-spacing:.3em; }
|
||||
|
||||
/* Marquee */
|
||||
@keyframes yb-mq { to { transform:translateX(-50%); } }
|
||||
.marquee { overflow:hidden; }
|
||||
.marquee-track { display:flex; width:max-content; white-space:nowrap; animation:yb-mq 16s linear infinite; }
|
||||
.marquee-track--reverse { animation-direction:reverse; }
|
||||
|
||||
/* Divers */
|
||||
@keyframes yb-spin { to { transform:rotate(360deg); } }
|
||||
.spin-circle { width:52px; height:52px; border:1px dashed var(--lime); border-radius:50%; animation:yb-spin 12s linear infinite; }
|
||||
@keyframes yb-pulse { 50% { opacity:.35; } }
|
||||
.pulse-dot { width:7px; height:7px; border-radius:50%; background:var(--lime); animation:yb-pulse 2s infinite; }
|
||||
.card-img img { filter:grayscale(.35) contrast(1.05); transition:filter .4s, transform .5s; }
|
||||
.card:hover .card-img img { filter:none; transform:scale(1.04); }
|
||||
.outline-lime { color:transparent; -webkit-text-stroke:2px var(--lime); }
|
||||
|
||||
/* Menu mobile */
|
||||
[data-menu] { position:fixed; inset:0; z-index:48; background:rgba(var(--bg-rgb), .96); backdrop-filter:blur(18px);
|
||||
display:flex; flex-direction:column; justify-content:center; padding:90px 24px 40px; opacity:0; visibility:hidden; transition:opacity .3s, visibility .3s; }
|
||||
[data-menu].is-open { opacity:1; visibility:visible; }
|
||||
[data-menu-toggle] { display:none; }
|
||||
|
||||
/* ---------- Responsive ---------- */
|
||||
@media (max-width:1100px) {
|
||||
.site-nav__links { display:none; }
|
||||
[data-menu-toggle] { display:flex; white-space:nowrap; }
|
||||
.hero__vertical-label, .hero__aside { display:none; }
|
||||
}
|
||||
@media (max-width:720px) {
|
||||
.section-rail { display:none; }
|
||||
.hero__title { font-size:min(16.5vw,145px); }
|
||||
.hero__content { left:var(--gut); right:var(--gut); bottom:84px; }
|
||||
/* Travaux : plus de section sticky, piste en scroll-snap natif = fluide au doigt */
|
||||
#travaux { height:auto !important; }
|
||||
#travaux .works-sticky { position:static; height:auto; padding:110px 0 60px; }
|
||||
.works-track { overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; width:auto !important; gap:20px; padding:0 var(--gut); scrollbar-width:none; }
|
||||
.works-track::-webkit-scrollbar { display:none; }
|
||||
.works-track .card { width:84vw; scroll-snap-align:center; }
|
||||
.works-track .card-img { height:52vw; }
|
||||
.grid-auto { grid-template-columns:1fr !important; }
|
||||
.article__meta { position:static; width:100%; }
|
||||
}
|
||||
@media (pointer:coarse) { .card-img img { filter:none; } }
|
||||
/* Animations inconditionnelles (choix de Yasser : son système active « réduire les animations »
|
||||
et il veut voir le site animé). Seul ?ybstatic=1 → html.yb-static fige tout, pour les captures. */
|
||||
html.yb-static *, html.yb-static *::before, html.yb-static *::after { animation:none !important; transition:none !important; }
|
||||
html.yb-static [data-reveal] { opacity:1; transform:none; }
|
||||
html.yb-static .yb-wipe { display:none; }
|
||||
|
||||
/* Curseur custom (cursor.js) : point accent qui s'étire en index, puis la main apparaît autour du doigt */
|
||||
.yb-cursor { position:fixed; left:0; top:0; z-index:9999; pointer-events:none; }
|
||||
.yb-cursor__dot { position:absolute; left:0; top:0; width:12px; height:12px; margin:-6px 0 0 -6px; border-radius:6px; background:var(--lime);
|
||||
mix-blend-mode:var(--cursor-blend,difference);
|
||||
transition:width .22s cubic-bezier(.2,.8,.2,1), height .22s cubic-bezier(.2,.8,.2,1), margin .22s cubic-bezier(.2,.8,.2,1), border-radius .22s, opacity .18s .1s; }
|
||||
.yb-cursor__hand { position:absolute; left:-12.5px; top:-2px; width:34px; height:38px; opacity:0;
|
||||
transform-origin:12.5px 2px; transform:scale(.3) rotate(10deg);
|
||||
filter:drop-shadow(0 3px 6px rgba(0,0,0,.35));
|
||||
transition:opacity .16s, transform .3s cubic-bezier(.2,.8,.2,1); }
|
||||
.yb-cursor__hand svg { display:block; overflow:visible; }
|
||||
.yb-cursor.is-hand .yb-cursor__dot { width:7px; height:17px; margin:-1px 0 0 -3.5px; border-radius:3.5px; opacity:0; }
|
||||
.yb-cursor.is-hand .yb-cursor__hand { opacity:1; transform:scale(1) rotate(-8deg); transition:opacity .18s .08s, transform .34s .04s cubic-bezier(.3,1.4,.5,1); }
|
||||
.yb-cursor__label { position:absolute; left:16px; top:-11px; font:700 11px 'JetBrains Mono',monospace; color:var(--bg); background:var(--lime);
|
||||
padding:4px 9px; border-radius:3px; white-space:nowrap; opacity:0; transform:scale(.6); transform-origin:left center; transition:opacity .18s, transform .18s, left .25s; }
|
||||
.yb-cursor.is-hand .yb-cursor__label { left:30px; }
|
||||
.yb-hand-spark { transform-box:fill-box; transform-origin:center; animation:yb-spark 1.2s ease-in-out infinite; }
|
||||
@keyframes yb-spark { 50% { transform:scale(.4) rotate(45deg); opacity:.5; } }
|
||||
|
||||
/* Roue des projets et articles : le point s'ouvre en loupe, centre de la lentille sur la souris */
|
||||
.yb-cursor__loupe { position:absolute; left:-14px; top:-14px; width:34px; height:34px; opacity:0;
|
||||
transform-origin:14px 14px; transform:scale(.35) rotate(-40deg); filter:drop-shadow(0 3px 6px rgba(0,0,0,.35));
|
||||
transition:opacity .16s, transform .3s cubic-bezier(.2,.8,.2,1); }
|
||||
.yb-cursor__loupe svg { display:block; overflow:visible; }
|
||||
.yb-cursor.is-loupe .yb-cursor__dot { width:20px; height:20px; margin:-10px 0 0 -10px; border-radius:10px; opacity:0; }
|
||||
.yb-cursor.is-loupe .yb-cursor__loupe { opacity:1; transform:none; transition:opacity .18s .06s, transform .36s .03s cubic-bezier(.3,1.4,.5,1); }
|
||||
.yb-cursor.is-loupe .yb-cursor__label { left:32px; }
|
||||
375
assets/css/seasons.css
Normal file
375
assets/css/seasons.css
Normal file
|
|
@ -0,0 +1,375 @@
|
|||
/* seasons.css : thèmes saisonniers (html[data-season="halloween" | "noel"]).
|
||||
Chargé seulement pendant une saison (inc/seasons.php). Le décor animé vient de seasons.js. */
|
||||
|
||||
/* ══ Palettes ════════════════════════════════════════════════════════ */
|
||||
/* Halloween sombre : nuit violacée, accent citrouille */
|
||||
html[data-season="halloween"]:not([data-theme="light"]) {
|
||||
--bg:#0d0a10; --card:#140f18; --ph:#1b1520; --ink:#f4eee4; --lime:#ff7b1c;
|
||||
--bg-rgb:13,10,16; --ink-rgb:244,238,228; --lime-rgb:255,123,28; --blend-ink:#f4eee4;
|
||||
--season-2:#a77bff; --season-2-rgb:167,123,255;
|
||||
}
|
||||
/* Halloween clair : parchemin, encre aubergine, orange brûlé (contraste 5:1) */
|
||||
html[data-season="halloween"][data-theme="light"] {
|
||||
--bg:#f3ece1; --card:#fffaf1; --ph:#e9e0d0; --ink:#1b1320; --lime:#ad4500;
|
||||
--bg-rgb:243,236,225; --ink-rgb:27,19,32; --lime-rgb:173,69,0;
|
||||
--season-2:#6b3fc4; --season-2-rgb:107,63,196;
|
||||
}
|
||||
/* Noël sombre : vert sapin profond, accent rouge */
|
||||
html[data-season="noel"]:not([data-theme="light"]) {
|
||||
--bg:#07110d; --card:#0c1712; --ph:#111f19; --ink:#f3f1ea; --lime:#ff4a5a;
|
||||
--bg-rgb:7,17,13; --ink-rgb:243,241,234; --lime-rgb:255,74,90; --blend-ink:#f3f1ea;
|
||||
--season-2:#f2c14e; --season-2-rgb:242,193,78;
|
||||
}
|
||||
/* Noël clair : neige, encre sapin, rouge houx */
|
||||
html[data-season="noel"][data-theme="light"] {
|
||||
--bg:#f5f2ec; --card:#ffffff; --ph:#e8e4dc; --ink:#10201a; --lime:#b0122a;
|
||||
--bg-rgb:245,242,236; --ink-rgb:16,32,26; --lime-rgb:176,18,42;
|
||||
--season-2:#9a6b00; --season-2-rgb:154,107,0;
|
||||
}
|
||||
/* Palettes des autres fêtes : [clé, sombre(bg card ph ink accent second), clair(...)] générées ci-dessous */
|
||||
html[data-season="nouvel-an"]:not([data-theme="light"]) {
|
||||
--bg:#0a0a12; --card:#10101b; --ph:#161624; --ink:#f5f1e6; --lime:#f2c14e;
|
||||
--bg-rgb:10,10,18; --ink-rgb:245,241,230; --lime-rgb:242,193,78; --blend-ink:#f5f1e6;
|
||||
--season-2:#d9dde8; --season-2-rgb:217,221,232;
|
||||
}
|
||||
html[data-season="nouvel-an"][data-theme="light"] {
|
||||
--bg:#f6f3ea; --card:#fffdf7; --ph:#e9e4d6; --ink:#16141c; --lime:#8a6400;
|
||||
--bg-rgb:246,243,234; --ink-rgb:22,20,28; --lime-rgb:138,100,0;
|
||||
--season-2:#55607a; --season-2-rgb:85,96,122;
|
||||
}
|
||||
html[data-season="st-patrick"]:not([data-theme="light"]) {
|
||||
--bg:#06120b; --card:#0b1a11; --ph:#102318; --ink:#eef4ec; --lime:#3ddc84;
|
||||
--bg-rgb:6,18,11; --ink-rgb:238,244,236; --lime-rgb:61,220,132; --blend-ink:#eef4ec;
|
||||
--season-2:#f2c14e; --season-2-rgb:242,193,78;
|
||||
}
|
||||
html[data-season="st-patrick"][data-theme="light"] {
|
||||
--bg:#f1f5ee; --card:#ffffff; --ph:#e1eadb; --ink:#0f2216; --lime:#13703a;
|
||||
--bg-rgb:241,245,238; --ink-rgb:15,34,22; --lime-rgb:19,112,58;
|
||||
--season-2:#8f6a00; --season-2-rgb:143,106,0;
|
||||
}
|
||||
html[data-season="paques"]:not([data-theme="light"]) {
|
||||
--bg:#100d15; --card:#17131d; --ph:#1e1926; --ink:#f7f1ea; --lime:#ff9fcb;
|
||||
--bg-rgb:16,13,21; --ink-rgb:247,241,234; --lime-rgb:255,159,203; --blend-ink:#f7f1ea;
|
||||
--season-2:#8ee6c2; --season-2-rgb:142,230,194;
|
||||
}
|
||||
html[data-season="paques"][data-theme="light"] {
|
||||
--bg:#fbf6ee; --card:#ffffff; --ph:#efe7da; --ink:#2a1f2e; --lime:#b02a72;
|
||||
--bg-rgb:251,246,238; --ink-rgb:42,31,46; --lime-rgb:176,42,114;
|
||||
--season-2:#23805a; --season-2-rgb:35,128,90;
|
||||
}
|
||||
html[data-season="poisson"]:not([data-theme="light"]) {
|
||||
--bg:#07121a; --card:#0c1922; --ph:#11212c; --ink:#eef6f8; --lime:#4fd1ff;
|
||||
--bg-rgb:7,18,26; --ink-rgb:238,246,248; --lime-rgb:79,209,255; --blend-ink:#eef6f8;
|
||||
--season-2:#ffb347; --season-2-rgb:255,179,71;
|
||||
}
|
||||
html[data-season="poisson"][data-theme="light"] {
|
||||
--bg:#f0f5f7; --card:#ffffff; --ph:#e0eaee; --ink:#0d2230; --lime:#006b94;
|
||||
--bg-rgb:240,245,247; --ink-rgb:13,34,48; --lime-rgb:0,107,148;
|
||||
--season-2:#b35c00; --season-2-rgb:179,92,0;
|
||||
}
|
||||
html[data-season="musique"]:not([data-theme="light"]) {
|
||||
--bg:#0c0a14; --card:#13101d; --ph:#1a1626; --ink:#f4f1fa; --lime:#ff5cc8;
|
||||
--bg-rgb:12,10,20; --ink-rgb:244,241,250; --lime-rgb:255,92,200; --blend-ink:#f4f1fa;
|
||||
--season-2:#5ce1ff; --season-2-rgb:92,225,255;
|
||||
}
|
||||
html[data-season="musique"][data-theme="light"] {
|
||||
--bg:#f6f3f8; --card:#ffffff; --ph:#e9e3ef; --ink:#1c1426; --lime:#a3127f;
|
||||
--bg-rgb:246,243,248; --ink-rgb:28,20,38; --lime-rgb:163,18,127;
|
||||
--season-2:#0a6f8a; --season-2-rgb:10,111,138;
|
||||
}
|
||||
html[data-season="juillet"]:not([data-theme="light"]) {
|
||||
--bg:#070b16; --card:#0c1220; --ph:#111a2c; --ink:#f4f3ee; --lime:#ff4a5a;
|
||||
--bg-rgb:7,11,22; --ink-rgb:244,243,238; --lime-rgb:255,74,90; --blend-ink:#f4f3ee;
|
||||
--season-2:#5b8bff; --season-2-rgb:91,139,255;
|
||||
}
|
||||
html[data-season="juillet"][data-theme="light"] {
|
||||
--bg:#f4f4f1; --card:#ffffff; --ph:#e5e6e2; --ink:#0e1630; --lime:#1f3fa8;
|
||||
--bg-rgb:244,244,241; --ink-rgb:14,22,48; --lime-rgb:31,63,168;
|
||||
--season-2:#c8102e; --season-2-rgb:200,16,46;
|
||||
}
|
||||
html[data-season="black-friday"]:not([data-theme="light"]) {
|
||||
--bg:#050505; --card:#0d0d0d; --ph:#151515; --ink:#f5f5f0; --lime:#ffd400;
|
||||
--bg-rgb:5,5,5; --ink-rgb:245,245,240; --lime-rgb:255,212,0; --blend-ink:#f5f5f0;
|
||||
--season-2:#ffffff; --season-2-rgb:255,255,255;
|
||||
}
|
||||
html[data-season="black-friday"][data-theme="light"] {
|
||||
--bg:#f4f3ee; --card:#ffffff; --ph:#e6e4dc; --ink:#0b0b0b; --lime:#8f6f00;
|
||||
--bg-rgb:244,243,238; --ink-rgb:11,11,11; --lime-rgb:143,111,0;
|
||||
--season-2:#111111; --season-2-rgb:17,17,17;
|
||||
}
|
||||
html[data-season="anniversaire"]:not([data-theme="light"]) {
|
||||
--bg:#0b0d16; --card:#111422; --ph:#171b2c; --ink:#f3f4fa; --lime:#2ee6c5;
|
||||
--bg-rgb:11,13,22; --ink-rgb:243,244,250; --lime-rgb:46,230,197; --blend-ink:#f3f4fa;
|
||||
--season-2:#ffcf4a; --season-2-rgb:255,207,74;
|
||||
}
|
||||
html[data-season="anniversaire"][data-theme="light"] {
|
||||
--bg:#f4f6f8; --card:#ffffff; --ph:#e3e8ec; --ink:#121827; --lime:#00806b;
|
||||
--bg-rgb:244,246,248; --ink-rgb:18,24,39; --lime-rgb:0,128,107;
|
||||
--season-2:#9a6b00; --season-2-rgb:154,107,0;
|
||||
}
|
||||
html[data-season="algerie"]:not([data-theme="light"]) {
|
||||
--bg:#05100a; --card:#0a1810; --ph:#0f2016; --ink:#f3f5f1; --lime:#2fbf71;
|
||||
--bg-rgb:5,16,10; --ink-rgb:243,245,241; --lime-rgb:47,191,113; --blend-ink:#f3f5f1;
|
||||
--season-2:#e63946; --season-2-rgb:230,57,70;
|
||||
}
|
||||
html[data-season="algerie"][data-theme="light"] {
|
||||
--bg:#f3f6f2; --card:#ffffff; --ph:#e2e9e1; --ink:#0c1f14; --lime:#006233;
|
||||
--bg-rgb:243,246,242; --ink-rgb:12,31,20; --lime-rgb:0,98,51;
|
||||
--season-2:#c8102e; --season-2-rgb:200,16,46;
|
||||
}
|
||||
html[data-season="japon"]:not([data-theme="light"]) {
|
||||
--bg:#0e0a0b; --card:#161012; --ph:#1d1618; --ink:#f5efe8; --lime:#ff5a3c;
|
||||
--bg-rgb:14,10,11; --ink-rgb:245,239,232; --lime-rgb:255,90,60; --blend-ink:#f5efe8;
|
||||
--season-2:#ffb7c5; --season-2-rgb:255,183,197;
|
||||
}
|
||||
html[data-season="japon"][data-theme="light"] {
|
||||
--bg:#f5f1e8; --card:#fffdf8; --ph:#ebe4d6; --ink:#1b1416; --lime:#b8321d;
|
||||
--bg-rgb:245,241,232; --ink-rgb:27,20,22; --lime-rgb:184,50,29;
|
||||
--season-2:#c4607a; --season-2-rgb:196,96,122;
|
||||
}
|
||||
html[data-season="hack"]:not([data-theme="light"]) {
|
||||
--bg:#020604; --card:#06100a; --ph:#0a1810; --ink:#d8ffe4; --lime:#00ff66;
|
||||
--bg-rgb:2,6,4; --ink-rgb:216,255,228; --lime-rgb:0,255,102; --blend-ink:#d8ffe4;
|
||||
--season-2:#00e5ff; --season-2-rgb:0,229,255;
|
||||
}
|
||||
html[data-season="hack"][data-theme="light"] {
|
||||
--bg:#eef3ef; --card:#ffffff; --ph:#dde8e0; --ink:#06180c; --lime:#007a33;
|
||||
--bg-rgb:238,243,239; --ink-rgb:6,24,12; --lime-rgb:0,122,51;
|
||||
--season-2:#00788a; --season-2-rgb:0,120,138;
|
||||
}
|
||||
/* Terminal et blocs de code (toujours sombres) : l'accent suit la saison */
|
||||
html[data-season="halloween"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#ff7b1c; --lime-rgb:255,123,28; }
|
||||
html[data-season="noel"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#ff4a5a; --lime-rgb:255,74,90; }
|
||||
html[data-season="nouvel-an"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#f2c14e; --lime-rgb:242,193,78; }
|
||||
html[data-season="st-patrick"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#3ddc84; --lime-rgb:61,220,132; }
|
||||
html[data-season="paques"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#ff9fcb; --lime-rgb:255,159,203; }
|
||||
html[data-season="poisson"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#4fd1ff; --lime-rgb:79,209,255; }
|
||||
html[data-season="musique"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#ff5cc8; --lime-rgb:255,92,200; }
|
||||
html[data-season="juillet"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#ff4a5a; --lime-rgb:255,74,90; }
|
||||
html[data-season="anniversaire"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#2ee6c5; --lime-rgb:46,230,197; }
|
||||
html[data-season="algerie"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#2fbf71; --lime-rgb:47,191,113; }
|
||||
html[data-season="japon"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#ff5a3c; --lime-rgb:255,90,60; }
|
||||
html[data-season="hack"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#00ff66; --lime-rgb:0,255,102; }
|
||||
html[data-season="black-friday"] :is(.term, .prose pre, .prose :not(pre) > code) { --lime:#ffd400; --lime-rgb:255,212,0; }
|
||||
|
||||
/* ══ Bouton de la barre (citrouille / flocon) ═══════════════════════ */
|
||||
.season-toggle {
|
||||
position: relative; width: 36px; height: 36px; flex: none; padding: 0; cursor: pointer;
|
||||
border: 1px solid rgba(var(--lime-rgb), .55); border-radius: 50%; background: rgba(var(--lime-rgb), .08); color: var(--lime);
|
||||
transition: border-color .25s, background .25s, color .25s, transform .4s cubic-bezier(.2,.8,.2,1);
|
||||
}
|
||||
.season-toggle:hover { transform: rotate(-12deg) scale(1.06); background: rgba(var(--lime-rgb), .16); }
|
||||
.season-toggle svg {
|
||||
position: absolute; inset: 0; margin: auto; width: 19px; height: 19px;
|
||||
fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
|
||||
}
|
||||
.season-toggle .st-face { fill: currentColor; stroke: none; }
|
||||
html[data-season-off] .season-toggle { color: var(--mut50); border-color: rgba(var(--ink-rgb), .25); background: transparent; }
|
||||
html[data-season-off] .season-toggle::after {
|
||||
content: ''; position: absolute; left: 7px; right: 7px; top: 50%; height: 1.6px; background: currentColor; transform: rotate(-45deg);
|
||||
}
|
||||
html[data-season="halloween"] .season-toggle { animation: st-flicker 4s infinite; }
|
||||
@keyframes st-flicker { 0%,100% { box-shadow: 0 0 0 rgba(var(--lime-rgb),0); } 48% { box-shadow: 0 0 14px rgba(var(--lime-rgb),.45); } 52% { box-shadow: 0 0 6px rgba(var(--lime-rgb),.2); } }
|
||||
|
||||
/* ══ Calques communs ════════════════════════════════════════════════ */
|
||||
.season-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 45; pointer-events: none; }
|
||||
html:not([data-season]) .season-deco { display: none !important; }
|
||||
|
||||
/* Chapeau posé sur le logo YB©2026 */
|
||||
.site-nav__logo { position: relative; }
|
||||
.season-hat { position: absolute; left: -9px; top: -19px; width: 30px; height: 26px; pointer-events: none; transform: rotate(-14deg); transform-origin: 50% 100%; }
|
||||
.season-hat svg { width: 100%; height: 100%; overflow: visible; }
|
||||
.site-nav__logo:hover .season-hat { animation: hat-tip .7s cubic-bezier(.2,.8,.2,1); }
|
||||
@keyframes hat-tip { 40% { transform: rotate(-30deg) translateY(-6px); } }
|
||||
|
||||
/* ══ Halloween ══════════════════════════════════════════════════════ */
|
||||
/* Brume au ras du sol */
|
||||
.season-fog { position: fixed; left: 0; right: 0; bottom: 0; height: 34vh; z-index: 44; pointer-events: none; overflow: hidden;
|
||||
-webkit-mask-image: linear-gradient(to top, #000 10%, transparent); mask-image: linear-gradient(to top, #000 10%, transparent); }
|
||||
.season-fog i { position: absolute; bottom: -12vh; left: -50%; width: 200%; height: 44vh; opacity: .16;
|
||||
background:
|
||||
radial-gradient(closest-side, rgba(var(--ink-rgb), .9), transparent) 0 60% / 34% 70% repeat-x,
|
||||
radial-gradient(closest-side, rgba(var(--season-2-rgb), .8), transparent) 17% 100% / 26% 60% repeat-x;
|
||||
filter: blur(18px); animation: fog-drift 46s linear infinite; }
|
||||
.season-fog i + i { opacity: .1; bottom: -18vh; animation-duration: 70s; animation-direction: reverse; }
|
||||
html[data-theme="light"] .season-fog i { opacity: .05; }
|
||||
html[data-theme="light"] .season-fog i + i { opacity: .035; }
|
||||
@keyframes fog-drift { to { transform: translateX(25%); } }
|
||||
|
||||
/* Araignée suspendue : descend avec le scroll, remonte quand on l'approche */
|
||||
.season-spider { position: fixed; top: 0; right: 13vw; z-index: 46; width: 30px; pointer-events: none;
|
||||
transform: translateY(calc(var(--drop, 90px) - 100%)); transition: transform 1.1s cubic-bezier(.3,1.5,.5,1); }
|
||||
.season-spider.is-fleeing { transition-duration: .35s; transition-timing-function: cubic-bezier(.5,0,.8,.4); }
|
||||
.season-spider__thread { display: block; width: 1px; height: 100vh; margin: 0 auto; background: linear-gradient(rgba(var(--ink-rgb), 0), rgba(var(--ink-rgb), .45)); }
|
||||
.season-spider svg { display: block; width: 30px; height: 30px; margin-top: -2px; pointer-events: auto; cursor: pointer; animation: spider-sway 3.2s ease-in-out infinite; transform-origin: 50% -40px; }
|
||||
@keyframes spider-sway { 50% { transform: rotate(7deg); } }
|
||||
@media (max-width: 720px) { .season-spider { right: 22vw; } }
|
||||
|
||||
/* Toile dans le coin du pied de page */
|
||||
.season-web { position: absolute; left: 0; top: 0; width: 150px; height: 150px; pointer-events: none; opacity: .35; }
|
||||
.season-web--r { left: auto; right: 0; transform: scaleX(-1); width: 110px; height: 110px; }
|
||||
|
||||
/* ══ Noël ═══════════════════════════════════════════════════════════ */
|
||||
/* Guirlande lumineuse sous la barre de navigation */
|
||||
.season-lights { position: absolute; left: 0; right: 0; top: 100%; height: 34px; pointer-events: none; }
|
||||
.season-lights svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
|
||||
.season-lights path { fill: none; stroke: rgba(var(--ink-rgb), .35); stroke-width: 1.2; }
|
||||
.season-bulb { position: absolute; width: 8px; height: 12px; margin: -1px 0 0 -4px; border-radius: 45% 45% 50% 50% / 35% 35% 65% 65%;
|
||||
background: var(--c); box-shadow: 0 0 12px 2px var(--c); transform: rotate(var(--r, 0deg)); transform-origin: 50% 0;
|
||||
animation: bulb-blink 2.4s infinite; animation-delay: var(--d, 0s); }
|
||||
.season-bulb::before { content: ''; position: absolute; left: 2px; top: -3px; width: 4px; height: 4px; border-radius: 1px; background: rgba(var(--ink-rgb), .55); }
|
||||
@keyframes bulb-blink { 0%,100% { opacity: 1; } 50% { opacity: .25; box-shadow: 0 0 2px 0 var(--c); } }
|
||||
|
||||
/* Neige accumulée sur le pied de page (mode sombre seulement : invisible sur fond clair) */
|
||||
html[data-season="noel"]:not([data-theme="light"]) .site-footer::before {
|
||||
content: ''; position: absolute; left: 0; right: 0; top: -9px; height: 12px; pointer-events: none;
|
||||
background: radial-gradient(14px 9px at 14px 100%, #f3f1ea 98%, transparent) 0 0 / 28px 12px repeat-x,
|
||||
radial-gradient(22px 7px at 40px 100%, #f3f1ea 98%, transparent) 0 0 / 73px 12px repeat-x;
|
||||
opacity: .9; filter: drop-shadow(0 -2px 6px rgba(255,255,255,.15));
|
||||
}
|
||||
|
||||
/* ══ Autres fêtes ═══════════════════════════════════════════════════ */
|
||||
/* Bandeau discret en bas d'écran (compte à rebours du Nouvel An, chasse aux œufs) */
|
||||
.season-pill { position: fixed; left: 50%; bottom: 22px; z-index: 47; transform: translateX(-50%);
|
||||
font: 700 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
|
||||
color: var(--bg); background: var(--lime); padding: 8px 14px; border-radius: 99px;
|
||||
box-shadow: 0 8px 30px rgba(var(--lime-rgb), .35); transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s; }
|
||||
.season-pill.is-hidden { transform: translate(-50%, 140%); opacity: 0; }
|
||||
.season-pill b { font-variant-numeric: tabular-nums; }
|
||||
|
||||
/* Pâques : œufs cachés dans les pages */
|
||||
.season-egg { position: absolute; z-index: 30; width: 26px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer;
|
||||
transform: rotate(var(--r, 0deg)); transition: transform .3s cubic-bezier(.3,1.6,.5,1), opacity .4s; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
|
||||
.season-egg:hover { transform: rotate(var(--r, 0deg)) scale(1.25); }
|
||||
.season-egg svg { width: 100%; height: 100%; display: block; }
|
||||
.season-egg.is-found { transform: translateY(-60px) scale(.2) rotate(180deg); opacity: 0; pointer-events: none; }
|
||||
|
||||
/* Poisson d'avril : poisson en papier collé au curseur et sur le premier titre */
|
||||
.season-fish { position: fixed; left: 0; top: 0; z-index: 9998; width: 54px; pointer-events: none; transform-origin: 0 50%; }
|
||||
.season-fish--tape { position: absolute; z-index: 6; left: auto; top: auto; width: 70px; pointer-events: auto; cursor: pointer; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
|
||||
.season-fish--tape:hover { transform: rotate(-24deg) scale(1.1) !important; }
|
||||
.season-fish svg { width: 100%; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
|
||||
|
||||
/* Fête de la musique : égaliseur au ras du bas d'écran */
|
||||
.season-eq { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; height: 64px; display: flex; align-items: flex-end; gap: 3px; padding: 0 3px; pointer-events: none; opacity: .32;
|
||||
-webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
|
||||
.season-eq i { flex: 1; height: 100%; background: linear-gradient(to top, var(--lime), var(--season-2)); transform-origin: bottom; transform: scaleY(.1); border-radius: 2px 2px 0 0; }
|
||||
|
||||
/* Black Friday : ruban de chantier en travers du coin */
|
||||
.season-tape { position: fixed; z-index: 46; right: -120px; bottom: 70px; width: 520px; transform: rotate(-32deg); pointer-events: none; overflow: hidden;
|
||||
background: repeating-linear-gradient(-45deg, #ffd400 0 18px, #0b0b0b 18px 36px); padding: 6px 0; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
|
||||
.season-tape span { display: flex; width: max-content; font: 800 13px var(--mono); letter-spacing: .14em; color: #0b0b0b; background: #ffd400; padding: 5px 0; animation: tape-run 18s linear infinite; }
|
||||
.season-tape span em { font-style: normal; padding: 0 18px; }
|
||||
@keyframes tape-run { to { transform: translateX(-50%); } }
|
||||
@media (max-width: 720px) { .season-tape { width: 380px; right: -110px; bottom: 50px; } .season-tape span { font-size: 11px; } }
|
||||
|
||||
/* Anniversaire : flamme de la bougie du logo */
|
||||
.season-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame 0.9s ease-in-out infinite alternate; }
|
||||
@keyframes flame { from { transform: scale(1, 1) rotate(-4deg); } to { transform: scale(.85, 1.15) rotate(4deg); } }
|
||||
|
||||
/* Japon : frise de vagues seigaiha au ras du bas d'écran */
|
||||
.season-waves { position:fixed; left:0; right:0; bottom:0; height:70px; z-index:44; pointer-events:none; opacity:.16;
|
||||
-webkit-mask-image:linear-gradient(to top, #000 20%, transparent); mask-image:linear-gradient(to top, #000 20%, transparent);
|
||||
background:
|
||||
radial-gradient(circle at 50% 100%, transparent 6px, var(--lime) 7px 8px, transparent 9px 12px, var(--lime) 13px 14px, transparent 15px 18px, var(--lime) 19px 20px, transparent 21px) 0 0 / 40px 20px repeat,
|
||||
radial-gradient(circle at 50% 100%, transparent 6px, var(--lime) 7px 8px, transparent 9px 12px, var(--lime) 13px 14px, transparent 15px 18px, var(--lime) 19px 20px, transparent 21px) 20px 10px / 40px 20px repeat;
|
||||
animation: waves-drift 18s linear infinite; }
|
||||
html[data-theme="light"] .season-waves { opacity:.12; }
|
||||
@keyframes waves-drift { to { background-position: 40px 0, 60px 10px; } }
|
||||
|
||||
/* Hack : lignes de balayage d'écran CRT, curseur de terminal après le logo, glitch au clic */
|
||||
.season-scan { position:fixed; inset:0; z-index:46; pointer-events:none; opacity:.35;
|
||||
background:repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.22) 2px 3px); }
|
||||
.season-scan::after { content:''; position:absolute; left:0; right:0; height:22vh; top:-22vh;
|
||||
background:linear-gradient(to bottom, transparent, rgba(var(--lime-rgb),.05), transparent); animation:scan-sweep 7s linear infinite; }
|
||||
html[data-theme="light"] .season-scan { opacity:.18; }
|
||||
@keyframes scan-sweep { to { transform:translateY(130vh); } }
|
||||
.season-caret { display:inline-block; width:.55em; height:1em; margin-left:3px; vertical-align:-2px; background:var(--lime); animation:caret-blink 1s steps(1) infinite; }
|
||||
@keyframes caret-blink { 50% { opacity:0; } }
|
||||
html.season-glitch #yb-root, html.season-glitch .site-nav { animation:glitch-shift .28s steps(2) 1; }
|
||||
@keyframes glitch-shift {
|
||||
0% { transform:translate(0); filter:none; }
|
||||
20% { transform:translate(-6px, 2px); filter:hue-rotate(90deg) saturate(2); clip-path:inset(12% 0 58% 0); }
|
||||
40% { transform:translate(5px, -2px); filter:hue-rotate(-60deg); clip-path:inset(46% 0 22% 0); }
|
||||
60% { transform:translate(-3px, 1px); clip-path:inset(70% 0 6% 0); }
|
||||
100% { transform:translate(0); filter:none; clip-path:none; }
|
||||
}
|
||||
html[data-season="hack"] .hero__title .line-mask > span { text-shadow:0 0 18px rgba(var(--lime-rgb),.25); }
|
||||
|
||||
/* Hack : intrusion au premier passage de la session (fenêtre de terminal centrée, site flouté derrière) */
|
||||
.season-hack-intro { position:fixed; inset:0; z-index:9000; display:grid; place-items:center; padding:20px; cursor:pointer;
|
||||
background:rgba(2,6,4,.55); backdrop-filter:blur(10px) saturate(.7); -webkit-backdrop-filter:blur(10px) saturate(.7);
|
||||
animation:intro-in .45s ease both; transition:opacity .7s ease, backdrop-filter .7s ease, -webkit-backdrop-filter .7s ease; }
|
||||
.season-hack-intro.is-out { opacity:0; backdrop-filter:blur(0); -webkit-backdrop-filter:blur(0); pointer-events:none; }
|
||||
@keyframes intro-in { from { opacity:0; backdrop-filter:blur(0); -webkit-backdrop-filter:blur(0); } }
|
||||
.season-term { position:relative; width:min(640px, 100%); background:#050b07; border:1px solid rgba(0,255,102,.28); border-radius:12px; overflow:hidden;
|
||||
box-shadow:0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4), 0 0 60px rgba(0,255,102,.12);
|
||||
animation:term-pop .5s .1s cubic-bezier(.2,.9,.25,1.2) both; transition:transform .6s cubic-bezier(.7,0,.3,1); }
|
||||
.season-hack-intro.is-out .season-term { transform:scale(.92) translateY(10px); }
|
||||
@keyframes term-pop { from { opacity:0; transform:scale(.9) translateY(14px); } }
|
||||
.season-term__bar { display:flex; align-items:center; gap:7px; padding:11px 14px; background:#0b1610; border-bottom:1px solid rgba(0,255,102,.14); }
|
||||
.season-term__bar i { width:11px; height:11px; border-radius:50%; background:#ff5f57; }
|
||||
.season-term__bar i:nth-child(2) { background:#febc2e; } .season-term__bar i:nth-child(3) { background:#28c840; }
|
||||
.season-term__bar span { flex:1; text-align:center; margin-right:40px; font:500 12px 'JetBrains Mono', monospace; color:rgba(216,255,228,.55); }
|
||||
.season-term__body { margin:0; padding:18px 20px 22px; min-height:190px; font:500 14px/1.65 'JetBrains Mono', monospace; color:#d8ffe4;
|
||||
white-space:pre-wrap; word-break:break-word; text-shadow:0 0 6px rgba(0,255,102,.25);
|
||||
background:repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.18) 2px 3px); }
|
||||
.season-term__body .t-prompt { color:#00ff66; font-weight:700; }
|
||||
.season-term__body .t-path { color:#00e5ff; }
|
||||
.season-term__body .t-dim { color:rgba(216,255,228,.5); }
|
||||
.season-term__body .t-ok { color:#00ff66; }
|
||||
.season-term__body .t-bar { color:#00ff66; }
|
||||
.season-term__body .season-caret { background:#00ff66; }
|
||||
.season-term__granted { position:absolute; inset:46px 0 0; display:grid; place-items:center; font:800 clamp(26px, 6vw, 46px) 'JetBrains Mono', monospace; letter-spacing:.12em;
|
||||
color:#00ff66; text-shadow:0 0 18px rgba(0,255,102,.75), 0 0 46px rgba(0,255,102,.4); background:rgba(5,11,7,.88);
|
||||
opacity:0; transform:scale(1.25); transition:opacity .3s, transform .45s cubic-bezier(.2,.9,.25,1.2); pointer-events:none; }
|
||||
.season-hack-intro.is-granted .season-term__granted { opacity:1; transform:none; animation:granted-flicker .9s steps(1) 1; }
|
||||
.season-hack-intro.is-granted .season-term { border-color:rgba(0,255,102,.7); box-shadow:0 30px 80px rgba(0,0,0,.6), 0 0 80px rgba(0,255,102,.35); }
|
||||
@keyframes granted-flicker { 10% { opacity:.3; } 20% { opacity:1; } 30% { opacity:.6; } 40%, 100% { opacity:1; } }
|
||||
@media (max-width:620px) { .season-term__body { font-size:12px; padding:14px 14px 18px; min-height:170px; } }
|
||||
|
||||
/* ══ Roue de sélection ═══════════════════════════════════════════════ */
|
||||
.season-toggle--latent { display: none; }
|
||||
html[data-sx] .season-toggle--latent { display: block; }
|
||||
.season-wheel { --rad: min(250px, 36vw, 36vh); --it: 70px; position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
|
||||
background: rgba(var(--bg-rgb), 0); backdrop-filter: blur(0); transition: background .35s, backdrop-filter .35s; }
|
||||
.season-wheel.is-open { background: rgba(var(--bg-rgb), .72); backdrop-filter: blur(10px); }
|
||||
.season-wheel__ring { position: relative; width: calc(var(--rad) * 2 + var(--it)); aspect-ratio: 1; border-radius: 50%; }
|
||||
.season-wheel__ring::before { content: ''; position: absolute; inset: calc(var(--it) / 2); border-radius: 50%; border: 1px dashed rgba(var(--ink-rgb), .2);
|
||||
transform: scale(.6); opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s; }
|
||||
.season-wheel.is-open .season-wheel__ring::before { transform: none; opacity: 1; }
|
||||
.season-wheel__item { position: absolute; left: 50%; top: 50%; width: var(--it); height: var(--it); margin: calc(var(--it) / -2) 0 0 calc(var(--it) / -2);
|
||||
display: grid; place-items: center; padding: 0; cursor: pointer; border-radius: 50%; color: var(--ink);
|
||||
border: 1px solid rgba(var(--ink-rgb), .2); background: var(--card);
|
||||
transform: translate(0, 0) scale(.3); opacity: 0;
|
||||
transition: transform .5s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 25ms), opacity .3s calc(var(--i) * 25ms), border-color .2s, background .2s, color .2s, box-shadow .2s; }
|
||||
.season-wheel.is-open .season-wheel__item { transform: translate(calc(var(--x) * var(--rad)), calc(var(--y) * var(--rad))); opacity: 1; }
|
||||
.season-wheel.is-open .season-wheel__item:is(:hover, :focus-visible) { transform: translate(calc(var(--x) * var(--rad)), calc(var(--y) * var(--rad))) scale(1.16);
|
||||
border-color: var(--lime); color: var(--lime); box-shadow: 0 0 0 2px var(--lime), 0 0 30px rgba(var(--lime-rgb), .35); outline: none; transition-delay: 0s; }
|
||||
.season-wheel__item.is-current { border-color: var(--lime); background: rgba(var(--lime-rgb), .14); color: var(--lime); }
|
||||
.season-wheel__item svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
|
||||
.season-wheel__item svg .st-face { fill: currentColor; stroke: none; }
|
||||
.season-wheel__item em { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 9.5px var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--mut70); }
|
||||
.season-wheel__hub { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; width: calc(var(--rad) * 1.2); pointer-events: none;
|
||||
opacity: 0; transform: scale(.8); transition: opacity .35s .1s, transform .45s .1s cubic-bezier(.2,.8,.2,1); }
|
||||
.season-wheel.is-open .season-wheel__hub { opacity: 1; transform: none; }
|
||||
.season-wheel__hub small { font: 600 10px var(--mono); letter-spacing: .25em; color: var(--lime); }
|
||||
.season-wheel__hub strong { font: 800 clamp(20px, 3.4vw, 34px)/1.05 var(--sans); letter-spacing: -.01em; color: var(--ink); }
|
||||
.season-wheel__hub span { font: 500 11.5px var(--mono); color: var(--mut60); }
|
||||
@media (max-width: 720px) {
|
||||
.season-wheel { --rad: min(42vw, 170px); --it: 54px; }
|
||||
.season-wheel__item svg { width: 22px; height: 22px; }
|
||||
.season-wheel__item em { display: none; }
|
||||
}
|
||||
|
||||
/* ══ Accessibilité ══════════════════════════════════════════════════ */
|
||||
/* Pas de coupure « prefers-reduced-motion » : le portfolio reste animé (choix de l'utilisateur), seul ?ybstatic=1 fige tout. */
|
||||
@media print { .season-deco, .season-fx { display: none !important; } }
|
||||
|
||||
/* Black Friday : le label du curseur devient une étiquette de prix (pointe + trou) */
|
||||
html[data-season="black-friday"] .yb-cursor__label {
|
||||
color: #0b0b0b; font-weight: 800; padding: 5px 10px 5px 19px; border-radius: 0 3px 3px 0;
|
||||
background: radial-gradient(circle at 10px 50%, transparent 2.3px, #ffd400 2.8px);
|
||||
clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
|
||||
filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); rotate: -6deg;
|
||||
}
|
||||
804
assets/css/style.css
Normal file
804
assets/css/style.css
Normal file
|
|
@ -0,0 +1,804 @@
|
|||
/*
|
||||
Theme Name: yb2026
|
||||
Theme URI: https://yasser.boulayoune.com
|
||||
Author: Yasser Boulayoune
|
||||
Description: Portfolio v3 « sombre & premium » : Archivo/JetBrains Mono, accent lime, orbe persistante, transitions wipe. Porté depuis le prototype Claude Design (handoff v3). Effets dans effects.css.
|
||||
Version: 3.0
|
||||
Requires PHP: 8.0
|
||||
Text Domain: yb2026
|
||||
*/
|
||||
|
||||
/* ══ Tokens (design-spec.md ; --bg/--card/--ink/--lime/--gut viennent d'effects.css) ══ */
|
||||
:root {
|
||||
--term: #0d0f0c;
|
||||
--b1: rgba(var(--ink-rgb), .08);
|
||||
--b2: rgba(var(--ink-rgb), .14);
|
||||
--mut40: rgba(var(--ink-rgb), .4);
|
||||
--mut45: rgba(var(--ink-rgb), .45);
|
||||
--mut50: rgba(var(--ink-rgb), .5);
|
||||
--mut60: rgba(var(--ink-rgb), .6);
|
||||
--mut65: rgba(var(--ink-rgb), .65);
|
||||
--mut70: rgba(var(--ink-rgb), .7);
|
||||
--mut75: rgba(var(--ink-rgb), .75);
|
||||
--sans: 'Archivo', sans-serif;
|
||||
--mono: 'JetBrains Mono', monospace;
|
||||
--ease: cubic-bezier(.2, .8, .2, 1);
|
||||
--nav-h: 68px;
|
||||
--admin: 0px;
|
||||
}
|
||||
body.admin-bar { --admin: 32px; }
|
||||
/* Zones toujours sombres (terminal, blocs de code), quel que soit le thème :
|
||||
on redéclare toute la palette, y compris les gris dérivés calculés sur :root */
|
||||
.term, .prose pre, .prose :not(pre) > code {
|
||||
--bg: #0a0a0a; --card: #101010; --ph: #141414; --ink: #f5f5f0; --lime: #d3fd50;
|
||||
--bg-rgb: 10,10,10; --ink-rgb: 245,245,240; --lime-rgb: 211,253,80;
|
||||
--b1: rgba(245,245,240,.08); --b2: rgba(245,245,240,.14);
|
||||
--mut40: rgba(245,245,240,.4); --mut45: rgba(245,245,240,.45); --mut50: rgba(245,245,240,.5);
|
||||
--mut60: rgba(245,245,240,.6); --mut65: rgba(245,245,240,.65); --mut70: rgba(245,245,240,.7); --mut75: rgba(245,245,240,.75);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
@media (max-width: 782px) { body.admin-bar { --admin: 46px; } }
|
||||
|
||||
/* ══ Base ════════════════════════════════════════════════════════════ */
|
||||
* { box-sizing: border-box; }
|
||||
html { scroll-behavior: auto; }
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
font: 400 16px/1.6 var(--sans);
|
||||
overflow-x: clip;
|
||||
}
|
||||
a { color: var(--lime); text-decoration: none; }
|
||||
a:hover { color: var(--ink); }
|
||||
img { max-width: 100%; height: auto; }
|
||||
h1, h2, h3 { margin: 0; font-weight: inherit; }
|
||||
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
|
||||
.lime { color: var(--lime); }
|
||||
.mono { font-family: var(--mono); }
|
||||
|
||||
@keyframes riseIn { from { transform: translateY(50px); opacity: 0; } to { transform: none; opacity: 1; } }
|
||||
@keyframes imgIn { from { transform: scale(1.12); } to { transform: none; } }
|
||||
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
|
||||
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
||||
@keyframes lineUp { from { transform: translateY(115%); } to { transform: none; } }
|
||||
|
||||
/* ══ Nav ═════════════════════════════════════════════════════════════ */
|
||||
.site-nav {
|
||||
top: var(--admin);
|
||||
display: flex; align-items: center; justify-content: space-between; gap: 20px;
|
||||
padding: 20px var(--gut);
|
||||
}
|
||||
.site-nav__logo { font: 700 15px var(--mono); letter-spacing: .05em; color: var(--ink); white-space: nowrap; }
|
||||
.site-nav__logo:hover { color: var(--ink); }
|
||||
.site-nav__links { display: flex; gap: 30px; font: 500 12.5px var(--mono); }
|
||||
.site-nav__links a { color: var(--mut75); transition: color .2s; }
|
||||
.site-nav__links a:hover, .site-nav__links a.is-active { color: var(--lime); }
|
||||
.site-nav__right { display: flex; align-items: center; gap: 12px; }
|
||||
.site-nav__badge {
|
||||
display: flex; align-items: center; gap: 8px; white-space: nowrap;
|
||||
font: 500 11.5px var(--mono); color: var(--lime);
|
||||
border: 1px solid rgba(var(--lime-rgb), .35); border-radius: 99px; padding: 6px 13px;
|
||||
}
|
||||
.site-nav__burger {
|
||||
align-items: center; gap: 8px; background: none; cursor: pointer;
|
||||
font: 700 12px var(--mono); color: var(--ink);
|
||||
border: 1px solid rgba(var(--ink-rgb), .3); border-radius: 99px; padding: 8px 16px;
|
||||
}
|
||||
.scroll-progress { top: var(--admin); }
|
||||
|
||||
/* Menu mobile plein écran */
|
||||
.mobile-menu { top: var(--admin); }
|
||||
.mobile-menu__links { display: flex; flex-direction: column; gap: 8px; }
|
||||
.mobile-menu__link { overflow: hidden; border-bottom: 1px solid var(--b1); padding-bottom: 8px; color: var(--ink); }
|
||||
.mobile-menu__link:last-child { border-bottom: 0; }
|
||||
.mobile-menu__link.is-active, .mobile-menu__link:hover { color: var(--lime); }
|
||||
.mobile-menu__txt {
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
font: 900 min(10vw, 58px) var(--sans); letter-spacing: -.03em; line-height: 1.05;
|
||||
}
|
||||
.mobile-menu__arrow { font: 700 20px var(--mono); color: var(--lime); }
|
||||
.mobile-menu.is-open .mobile-menu__txt { animation: lineUp .55s var(--ease) backwards; animation-delay: calc(.04s + var(--i) * .06s); }
|
||||
.mobile-menu__contact { margin-top: 44px; display: flex; flex-direction: column; gap: 12px; font: 500 13px var(--mono); }
|
||||
.mobile-menu.is-open .mobile-menu__contact { animation: fadeIn .6s .4s ease-out backwards; }
|
||||
.mobile-menu__loc { color: var(--mut45); }
|
||||
|
||||
/* ══ Patterns partagés ═══════════════════════════════════════════════ */
|
||||
.kicker { font: 500 13px var(--mono); color: var(--lime); letter-spacing: .15em; margin-bottom: 16px; }
|
||||
.page-wrap { padding: calc(150px + var(--admin)) var(--gut) 80px; min-height: 100vh; }
|
||||
.page-wrap--narrow { max-width: 980px; }
|
||||
.page-wrap--tight { padding-bottom: 0; min-height: 0; }
|
||||
.page-title { font: 900 min(9vw, 120px) var(--sans); line-height: .88; letter-spacing: -.035em; margin-bottom: 60px; }
|
||||
.page-title--small { font-size: min(7vw, 76px); }
|
||||
.page-lead { max-width: 560px; font: 400 16px/1.6 var(--sans); color: var(--mut60); margin: -36px 0 56px; }
|
||||
.page-foot-note { margin-top: 44px; font: 500 13px var(--mono); color: var(--mut45); }
|
||||
.section-label { font: 700 14px var(--mono); color: var(--lime); letter-spacing: .12em; margin-bottom: 24px; }
|
||||
.link-underline { font: 700 14px var(--mono); color: var(--lime); border-bottom: 1px solid var(--lime); padding-bottom: 4px; }
|
||||
.note-l { border-left: 2px solid var(--lime); padding: 6px 0 6px 22px; font: 500 14px/1.6 var(--mono); color: var(--mut60); }
|
||||
.pill-btn {
|
||||
display: block; text-align: center; font: 700 13px var(--mono); color: var(--lime);
|
||||
border: 1px solid rgba(var(--lime-rgb), .4); border-radius: 99px; padding: 12px 20px; transition: all .25s;
|
||||
}
|
||||
.pill-btn:hover { background: var(--lime); color: var(--bg); }
|
||||
|
||||
/* ══ Accueil ═════════════════════════════════════════════════════════ */
|
||||
.orb-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; animation: fadeIn 1.6s ease-out; }
|
||||
.home #yb-root > section { position: relative; z-index: 1; }
|
||||
/* À propos : pas de contexte d'empilement, sinon le titre en mix-blend-mode: difference
|
||||
ne « voit » pas le fond de la page (titre blanc invisible en mode clair) */
|
||||
.home #yb-root > section#apropos { z-index: auto; }
|
||||
|
||||
/* Rail vertical */
|
||||
.section-rail {
|
||||
position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 40;
|
||||
display: flex; flex-direction: column; gap: 16px; align-items: flex-end;
|
||||
font: 600 9.5px var(--mono); letter-spacing: .22em;
|
||||
}
|
||||
.section-rail a:hover { color: var(--ink); }
|
||||
|
||||
/* Hero */
|
||||
.hero { height: 100vh; min-height: 640px; overflow: hidden; }
|
||||
.hero__vertical-label {
|
||||
position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%); z-index: 5;
|
||||
font: 500 11px var(--mono); color: var(--mut40); writing-mode: vertical-rl; letter-spacing: .3em;
|
||||
}
|
||||
.hero__content { position: absolute; left: var(--gut); bottom: 110px; z-index: 5; will-change: transform; }
|
||||
.hero__kicker { font: 500 13px var(--mono); color: var(--lime); letter-spacing: .15em; margin-bottom: 16px; }
|
||||
.hero__title { display: block; font: 900 min(10.5vw, 145px) var(--sans); line-height: .92; letter-spacing: -.035em; }
|
||||
.hero__title .line-mask { display: block; }
|
||||
.hero__title .line-mask > span { display: block; }
|
||||
.hero__sub { font: 500 11px var(--mono); color: var(--mut45); letter-spacing: .28em; }
|
||||
.hero__sub-mask { margin-top: 18px; }
|
||||
/* Révélation ligne par ligne : kicker → YASSER → BOULAYOUNE → sous-titre */
|
||||
.hero__content .hero__kicker-mask > * { animation-duration: .9s; animation-delay: .15s; }
|
||||
.hero__title .line-mask:nth-child(1) > * { animation-delay: .3s; }
|
||||
.hero__title .line-mask:nth-child(2) > * { animation-delay: .44s; }
|
||||
.hero__content .hero__sub-mask > * { animation-duration: .9s; animation-delay: .6s; }
|
||||
.hero__aside {
|
||||
position: absolute; right: var(--gut); bottom: 130px; z-index: 5; text-align: right; max-width: 250px;
|
||||
animation: fadeIn 1.1s .75s ease-out backwards;
|
||||
}
|
||||
.hero__aside p { font: 400 14px/1.5 var(--sans); color: var(--mut60); margin: 0; }
|
||||
.scroll-hint {
|
||||
display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px;
|
||||
font: 500 11px var(--mono); color: var(--lime); letter-spacing: .2em;
|
||||
}
|
||||
.hero__marquee {
|
||||
position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
|
||||
border-top: 1px solid rgba(var(--ink-rgb), .12); background: rgba(var(--bg-rgb), .55); padding: 12px 0;
|
||||
font: 800 26px var(--sans); letter-spacing: -.01em;
|
||||
}
|
||||
.marquee-track > span { padding-right: 24px; }
|
||||
|
||||
/* Travaux (scroll horizontal) */
|
||||
.works { height: 560vh; }
|
||||
.works-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
|
||||
.works-head {
|
||||
position: absolute; top: 100px; left: var(--gut); right: var(--gut);
|
||||
display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
|
||||
}
|
||||
.works-title { font: 900 min(7vw, 92px) var(--sans); line-height: 1; letter-spacing: -.03em; }
|
||||
.works-sub { font: 500 10.5px var(--mono); color: var(--mut40); letter-spacing: .26em; margin-top: 10px; }
|
||||
.works-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
|
||||
.works-hint { font: 500 12px var(--mono); color: var(--mut50); }
|
||||
.works-count { font: 700 13px var(--mono); color: var(--lime); }
|
||||
.works-track { display: flex; gap: var(--gut); padding: 0 var(--gut); width: max-content; will-change: transform; margin-top: 120px; }
|
||||
.works-end { width: 520px; flex: none; display: flex; align-items: center; justify-content: center; }
|
||||
.works-end span {
|
||||
font: 900 64px var(--sans); line-height: 1; text-align: center;
|
||||
color: transparent; -webkit-text-stroke: 1.5px rgba(var(--lime-rgb), .6); transition: -webkit-text-stroke-color .3s;
|
||||
}
|
||||
.works-end:hover span { -webkit-text-stroke-color: var(--lime); }
|
||||
|
||||
/* Cartes projet */
|
||||
.card {
|
||||
display: block; color: var(--ink); background: var(--card);
|
||||
border: 1px solid var(--b2); border-radius: 12px; overflow: hidden; transition: border-color .3s;
|
||||
}
|
||||
.card:hover { border-color: var(--lime); color: var(--ink); }
|
||||
.card--home { width: 620px; flex: none; }
|
||||
.card-img { display: block; height: 230px; position: relative; overflow: hidden; background: var(--ph); }
|
||||
.card--home .card-img { height: 340px; }
|
||||
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||
.card-num, .card-year {
|
||||
position: absolute; top: 14px; padding: 4px 8px; border-radius: 4px; background: rgba(var(--bg-rgb), .7);
|
||||
}
|
||||
.card-num { left: 16px; font: 700 12px var(--mono); color: var(--lime); }
|
||||
.card-year { right: 16px; font: 500 11px var(--mono); color: var(--mut75); }
|
||||
.card--home .card-num, .card--home .card-year { top: 18px; }
|
||||
.card--home .card-num { left: 20px; font-size: 13px; }
|
||||
.card--home .card-year { right: 20px; }
|
||||
.card-body { display: flex; flex-direction: column; gap: 9px; padding: 22px 24px 26px; }
|
||||
.card--home .card-body { gap: 12px; padding: 26px 28px 30px; }
|
||||
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
|
||||
.card-name { font: 800 22px var(--sans); letter-spacing: -.02em; }
|
||||
.card--home .card-name { font-size: 30px; }
|
||||
.card-arrow { font: 700 17px var(--mono); color: var(--lime); }
|
||||
.card--home .card-arrow { font-size: 20px; }
|
||||
.card-tag { font: 500 11.5px var(--mono); color: var(--lime); letter-spacing: .08em; }
|
||||
.card--home .card-tag { font-size: 12px; }
|
||||
.card-short { font: 400 13.5px/1.55 var(--sans); color: var(--mut60); }
|
||||
.card--home .card-short { font-size: 14px; }
|
||||
|
||||
/* À propos */
|
||||
.about { min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 120px 0; }
|
||||
.about-blob {
|
||||
position: absolute; left: 0; top: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px;
|
||||
border-radius: 50%; background: radial-gradient(circle, var(--lime) 0%, rgba(var(--lime-rgb), .35) 45%, transparent 70%);
|
||||
pointer-events: none; filter: blur(8px); opacity: 0;
|
||||
}
|
||||
.about__title-wrap { position: relative; z-index: 2; mix-blend-mode: difference; padding: 0 var(--gut); }
|
||||
.about__title { font: 900 min(12vw, 165px) var(--sans); line-height: .85; letter-spacing: -.04em; color: var(--blend-ink); }
|
||||
.about__cols { position: relative; z-index: 2; display: flex; gap: 60px; padding: 70px var(--gut) 0; flex-wrap: wrap; }
|
||||
.about__text { max-width: 480px; margin: 0; font: 400 17px/1.65 var(--sans); color: var(--mut70); }
|
||||
.about__list { display: flex; flex-direction: column; gap: 14px; font: 500 13px var(--mono); color: var(--mut60); }
|
||||
.about__more { position: relative; z-index: 2; padding: 60px var(--gut) 0; }
|
||||
|
||||
/* Marquees compétences */
|
||||
.skills-mq {
|
||||
padding: 40px 0; border-top: 1px solid rgba(var(--ink-rgb), .1); border-bottom: 1px solid rgba(var(--ink-rgb), .1);
|
||||
overflow: hidden; display: flex; flex-direction: column; gap: 18px;
|
||||
}
|
||||
.skills-mq__track { animation-duration: 22s; font: 800 44px var(--sans); letter-spacing: -.02em; color: rgba(var(--ink-rgb), .9); }
|
||||
.skills-mq__track > span { padding-right: 28px; }
|
||||
.skills-mq__track--outline { color: transparent; -webkit-text-stroke: 1.2px rgba(var(--lime-rgb), .7); }
|
||||
|
||||
/* CTA */
|
||||
.cta { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gut) 60px; }
|
||||
.cta .kicker, .contact .kicker { margin-bottom: 20px; }
|
||||
.cta__title { display: block; font: 900 min(11vw, 150px) var(--sans); line-height: .88; letter-spacing: -.04em; color: var(--ink); }
|
||||
.cta__title:hover { color: var(--ink); }
|
||||
.cta__title:hover .outline-lime { -webkit-text-stroke-color: var(--ink); }
|
||||
|
||||
/* ══ Qui suis-je ═════════════════════════════════════════════════════ */
|
||||
.qsn-grid { display: flex; gap: 60px; flex-wrap: wrap; align-items: flex-start; }
|
||||
.qsn-side { flex: none; width: 340px; }
|
||||
.qsn-card { border: 1px solid var(--b2); border-radius: 12px; overflow: hidden; background: var(--card); }
|
||||
.qsn-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; filter: grayscale(.25); }
|
||||
.qsn-fiche { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; font: 500 12.5px var(--mono); color: var(--mut70); }
|
||||
.qsn-main { flex: 1; min-width: min(400px, 100%); display: flex; flex-direction: column; gap: 56px; }
|
||||
.qsn-intro { max-width: 640px; margin: 0; font: 400 19px/1.65 var(--sans); color: var(--mut75); }
|
||||
.skills { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
|
||||
.skill { display: flex; flex-direction: column; gap: 7px; }
|
||||
.skill__head { display: flex; justify-content: space-between; gap: 12px; font: 500 13px var(--mono); }
|
||||
.skill__level { color: var(--mut45); }
|
||||
.skill__bar { height: 4px; background: rgba(var(--ink-rgb), .1); border-radius: 2px; overflow: hidden; }
|
||||
.skill__fill { height: 100%; background: var(--lime); border-radius: 2px; transform-origin: left; transform: scaleX(0); }
|
||||
.skill__fill.is-in { animation: barGrow 1.1s var(--ease) forwards; }
|
||||
html.yb-static .skill__fill { transform: none; }
|
||||
.timeline { display: flex; flex-direction: column; max-width: 640px; }
|
||||
.tl-item { display: flex; gap: 24px; padding: 22px 0; border-top: 1px solid rgba(var(--ink-rgb), .1); }
|
||||
.tl-date { flex: none; width: 170px; font: 500 12px var(--mono); color: var(--lime); }
|
||||
.tl-body { display: flex; flex-direction: column; gap: 5px; }
|
||||
.tl-title { font: 700 18px var(--sans); }
|
||||
.tl-place { font: 500 12px var(--mono); color: var(--mut50); }
|
||||
.tl-desc { font: 400 14px/1.55 var(--sans); color: var(--mut65); }
|
||||
|
||||
/* ══ Compétences ═════════════════════════════════════════════════════ */
|
||||
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; margin-bottom: 80px; }
|
||||
.svc-card {
|
||||
border: 1px solid var(--b2); border-radius: 12px; background: var(--card); transition: border-color .3s;
|
||||
padding: 36px 32px; display: flex; flex-direction: column; gap: 16px;
|
||||
}
|
||||
.svc-card:hover { border-color: var(--lime); }
|
||||
.svc-num { font: 700 15px var(--mono); color: var(--lime); }
|
||||
.svc-title { font: 800 26px var(--sans); letter-spacing: -.02em; }
|
||||
.svc-desc { font: 400 15px/1.6 var(--sans); color: var(--mut65); }
|
||||
.infra-title { font: 900 min(6vw, 72px) var(--sans); line-height: .9; letter-spacing: -.03em; margin-bottom: 20px; }
|
||||
.infra-lead { max-width: 640px; font: 400 16px/1.6 var(--sans); color: var(--mut65); margin: 0 0 40px; }
|
||||
.infra-cols { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 60px; }
|
||||
.term { flex: 1; min-width: min(380px, 100%); border: 1px solid var(--b2); border-radius: 12px; background: var(--term); overflow: hidden; }
|
||||
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid rgba(var(--ink-rgb), .1); background: var(--card); }
|
||||
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
|
||||
.term-dot--r { background: #ff5f57; }
|
||||
.term-dot--y { background: #febc2e; }
|
||||
.term-dot--g { background: #28c840; }
|
||||
.term-title { font: 500 12px var(--mono); color: var(--mut50); margin-left: 8px; }
|
||||
.term-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; font: 500 12.5px var(--mono); }
|
||||
.term-muted { color: var(--mut40); }
|
||||
.term-foot { margin-top: 8px; }
|
||||
.term-row { display: flex; justify-content: space-between; gap: 16px; }
|
||||
.infra-points { flex: 1; min-width: min(320px, 100%); display: flex; flex-direction: column; gap: 20px; }
|
||||
.ipoint { border-left: 2px solid var(--lime); padding: 4px 0 4px 20px; }
|
||||
.ipoint-title { font: 700 17px var(--sans); margin-bottom: 6px; }
|
||||
.ipoint-desc { font: 400 14px/1.55 var(--sans); color: var(--mut65); }
|
||||
.infra-strip { font: 500 12px var(--mono); color: var(--mut45); }
|
||||
|
||||
/* ══ Réalisations ════════════════════════════════════════════════════ */
|
||||
.real-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 28px; }
|
||||
|
||||
/* ══ Blog ════════════════════════════════════════════════════════════ */
|
||||
.blog-list { display: flex; flex-direction: column; max-width: 1100px; }
|
||||
.blog-row {
|
||||
display: flex; align-items: baseline; gap: 28px; padding: 30px 8px; color: var(--ink);
|
||||
border-top: 1px solid rgba(var(--ink-rgb), .12); transition: padding-left .3s, background .3s;
|
||||
}
|
||||
.blog-row:hover { padding-left: 24px; background: rgba(var(--lime-rgb), .04); color: var(--ink); }
|
||||
.blog-num { flex: none; font: 700 13px var(--mono); color: var(--lime); }
|
||||
.blog-title { flex: 1; font: 800 clamp(17px, 3.4vw, 32px) var(--sans); letter-spacing: -.02em; line-height: 1.15; }
|
||||
.blog-tag { flex: none; font: 500 12px var(--mono); color: var(--mut45); }
|
||||
.blog-arrow { flex: none; font: 700 18px var(--mono); color: var(--lime); }
|
||||
|
||||
/* ══ Contact ═════════════════════════════════════════════════════════ */
|
||||
.contact { display: flex; flex-direction: column; justify-content: center; padding-bottom: 60px; }
|
||||
.contact-cols { display: flex; gap: 60px; margin-top: 70px; flex-wrap: wrap; }
|
||||
.contact-col { display: flex; flex-direction: column; gap: 16px; font: 500 14px var(--mono); }
|
||||
.contact-k { color: var(--mut40); font-size: 12px; }
|
||||
.contact-muted { color: var(--mut65); }
|
||||
|
||||
/* ══ Étude de cas / article ══════════════════════════════════════════ */
|
||||
.case-hero { height: 56vh; min-height: 320px; overflow: hidden; position: relative; }
|
||||
.case-hero-img, .case-hero img { width: 100%; height: 100%; object-fit: cover; display: block; animation: imgIn 1.1s var(--ease); }
|
||||
.case-hero-fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 60%); }
|
||||
.case-hero-text { position: absolute; left: var(--gut); bottom: 36px; right: var(--gut); }
|
||||
.case-hero-text .kicker { letter-spacing: .12em; margin-bottom: 12px; }
|
||||
.case-title { font: 900 min(8vw, 100px) var(--sans); line-height: .88; letter-spacing: -.035em; }
|
||||
.case-title--post { font-size: min(5.5vw, 64px); line-height: 1; }
|
||||
.rise { animation: riseIn .7s var(--ease) backwards; }
|
||||
.rise-1 { animation-delay: .1s; }
|
||||
.rise-2 { animation-delay: .2s; }
|
||||
.rise-3 { animation-delay: .3s; }
|
||||
.case-cols { display: flex; gap: 70px; padding: 60px var(--gut) 30px; flex-wrap: wrap; }
|
||||
.case-meta {
|
||||
flex: none; width: 260px; display: flex; flex-direction: column; gap: 22px;
|
||||
font: 500 13px var(--mono); position: sticky; top: 110px; align-self: flex-start;
|
||||
}
|
||||
.case-meta-k { color: var(--mut40); margin-bottom: 5px; }
|
||||
.case-body { flex: 1; min-width: min(400px, 100%); max-width: 760px; display: flex; flex-direction: column; gap: 44px; }
|
||||
.case-lead { font: 400 21px/1.6 var(--sans); color: rgba(var(--ink-rgb), .85); }
|
||||
.case-sec { display: flex; flex-direction: column; gap: 16px; }
|
||||
.case-sec-h { font: 800 30px var(--sans); letter-spacing: -.02em; }
|
||||
.case-sec-p { font: 400 16.5px/1.7 var(--sans); color: var(--mut70); margin: 0; }
|
||||
.case-next {
|
||||
padding: 70px var(--gut) 90px; border-top: 1px solid var(--b1); margin-top: 40px; color: var(--ink);
|
||||
display: flex; justify-content: space-between; align-items: center; gap: 24px;
|
||||
}
|
||||
.case-next:hover { color: var(--ink); }
|
||||
.case-next-k { font: 500 12px var(--mono); color: var(--mut45); margin-bottom: 10px; }
|
||||
.case-next-name { font: 900 min(6vw, 72px) var(--sans); line-height: .9; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.8px var(--lime); }
|
||||
.case-next:hover .case-next-name { color: var(--lime); }
|
||||
.case-next-arrow { font: 700 44px var(--mono); color: var(--lime); }
|
||||
|
||||
/* ══ Prose (contenu WP) ══════════════════════════════════════════════ */
|
||||
.prose { font: 400 16.5px/1.7 var(--sans); color: var(--mut70); max-width: 760px; }
|
||||
.prose h2, .prose h3 { font: 800 30px var(--sans); letter-spacing: -.02em; color: var(--ink); margin: 1.6em 0 .6em; }
|
||||
.prose h3 { font-size: 23px; }
|
||||
.prose h2::before, .prose h3::before { content: '/ '; color: var(--lime); }
|
||||
.prose a { border-bottom: 1px solid rgba(var(--lime-rgb), .4); }
|
||||
.prose img { border-radius: 12px; border: 1px solid var(--b2); }
|
||||
.prose blockquote { margin: 1.5em 0; border-left: 2px solid var(--lime); padding: 6px 0 6px 22px; font: 500 14px/1.6 var(--mono); color: var(--mut60); }
|
||||
.prose pre, .prose code { font-family: var(--mono); background: var(--term); border-radius: 6px; }
|
||||
.prose code { padding: 2px 6px; font-size: .85em; color: var(--lime); }
|
||||
.prose pre { padding: 18px 22px; overflow-x: auto; border: 1px solid var(--b1); }
|
||||
.prose pre code { padding: 0; background: none; }
|
||||
.prose ul li::marker { color: var(--lime); }
|
||||
.prose figure { margin: 1.5em 0; }
|
||||
.prose figcaption { font: 500 12px var(--mono); color: var(--mut45); margin-top: 8px; }
|
||||
|
||||
/* ══ Footer ══════════════════════════════════════════════════════════ */
|
||||
.site-footer {
|
||||
position: relative; z-index: 1;
|
||||
display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
|
||||
padding: 28px var(--gut); border-top: 1px solid var(--b1);
|
||||
}
|
||||
.site-footer__logo { font: 700 14px var(--mono); }
|
||||
.spin-circle { flex: none; }
|
||||
.site-footer__copy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font: 500 11.5px var(--mono); color: var(--mut40); text-align: right; }
|
||||
.site-footer__copy a { color: var(--mut40); }
|
||||
.site-footer__copy a:hover { color: var(--lime); }
|
||||
|
||||
/* ══ 404 ═════════════════════════════════════════════════════════════ */
|
||||
.page-404 { display: flex; flex-direction: column; justify-content: center; min-height: 80vh; }
|
||||
.page-404 .page-lead { margin-top: 0; }
|
||||
.page-404 .link-underline { align-self: flex-start; }
|
||||
|
||||
/* ══ Responsive (les bascules principales sont dans effects.css) ═════ */
|
||||
@media (min-width: 1101px) {
|
||||
.site-nav__burger { display: none; }
|
||||
}
|
||||
@media (max-width: 1100px) {
|
||||
/* Bascules d'effects.css que nos règles de base (chargées après) masqueraient */
|
||||
.site-nav__links { display: none; }
|
||||
.works-hint { display: none; }
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
.site-nav { padding: 14px var(--gut); }
|
||||
.page-wrap { padding-top: calc(110px + var(--admin)); }
|
||||
.qsn-side { width: 100%; max-width: 380px; }
|
||||
.case-meta { position: static; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 28px; }
|
||||
.case-cols { gap: 40px; padding-top: 40px; }
|
||||
.case-next { padding: 50px var(--gut) 60px; }
|
||||
.blog-row { gap: 14px; flex-wrap: wrap; padding: 22px 4px; }
|
||||
.blog-title { flex: 1 1 100%; order: 3; font-size: 22px; }
|
||||
.tl-item { flex-direction: column; gap: 8px; }
|
||||
.tl-date { width: auto; }
|
||||
.contact-cols { gap: 32px; }
|
||||
.site-footer { flex-direction: column; text-align: center; }
|
||||
.site-footer__copy { align-items: center; text-align: center; }
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.site-nav__badge, .section-rail { display: none; }
|
||||
.hero__content { left: var(--gut); right: var(--gut); bottom: 84px; }
|
||||
/* 16.5vw du prototype : « BOULAYOUNE » déborde à 390px avec Archivo 900 */
|
||||
.hero__title { font-size: min(12vw, 145px); }
|
||||
.card--home .card-img { height: 52vw; }
|
||||
.works-head { position: static; padding: 0 var(--gut); margin-bottom: 28px; }
|
||||
.works-track { margin-top: 0; }
|
||||
.works-sticky { display: block; overflow: visible; }
|
||||
.card--home .card-name { font-size: 24px; }
|
||||
.works-end { width: 70vw; scroll-snap-align: center; }
|
||||
.works-end span { font-size: 40px; }
|
||||
.about { min-height: 0; padding: 90px 0; }
|
||||
.about__cols { gap: 36px; padding-top: 44px; }
|
||||
.cta { min-height: 60vh; padding-top: 60px; }
|
||||
.qsn-main { min-width: 0; }
|
||||
.case-body { min-width: 0; }
|
||||
}
|
||||
/* Mode capture ?ybstatic=1 : piste des travaux à plat */
|
||||
html.yb-static .works { height: auto; }
|
||||
html.yb-static .works-sticky { position: static; height: auto; overflow: visible; display: block; padding: 110px 0 60px; }
|
||||
html.yb-static .works-head { position: static; padding: 0 var(--gut); margin-bottom: 28px; }
|
||||
html.yb-static .works-track { margin-top: 0; width: auto; overflow-x: auto; }
|
||||
|
||||
/* Captures dans une étude de cas : jamais plus hautes que l'écran (captures mobiles) */
|
||||
.case-figs { display: flex; flex-direction: column; gap: 32px; }
|
||||
.case-figs figure { margin: 0; text-align: center; }
|
||||
.case-figs img { width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; display: block; }
|
||||
|
||||
/* ══ Page Compétences (/competences/) ════════════════════════════════
|
||||
Pas de cartes ni de tableaux : typo géante, rideaux, bandeaux, scroll. */
|
||||
.cp .page-wrap { min-height: 0; padding-top: 0; padding-bottom: 0; }
|
||||
.cp-open.page-wrap { padding-top: calc(150px + var(--admin)); padding-bottom: 110px; }
|
||||
.cp-title { font: 900 min(11.2vw, 172px) var(--sans); line-height: .84; letter-spacing: -.045em; margin-bottom: 70px; }
|
||||
.cp-manifest {
|
||||
max-width: 1280px; margin: 0;
|
||||
font: 800 min(5vw, 68px)/1.08 var(--sans); letter-spacing: -.03em; color: var(--ink);
|
||||
}
|
||||
.cp-num {
|
||||
display: inline-block; min-width: 1ch; font-size: 1.32em; line-height: .8; vertical-align: -.06em;
|
||||
color: transparent; -webkit-text-stroke: 2px var(--lime); font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.cp-h { font: 900 min(9vw, 128px) var(--sans); line-height: .86; letter-spacing: -.04em; margin: 0 0 44px; }
|
||||
.cp-head { margin-bottom: 10px; }
|
||||
|
||||
/* Services : lignes éditoriales, rideau lime au survol */
|
||||
.cp-svc { border-bottom: 1px solid var(--b2); margin-bottom: 150px; }
|
||||
.cp-svc__row {
|
||||
position: relative; overflow: hidden; isolation: isolate;
|
||||
display: grid; grid-template-columns: minmax(150px, 1fr) 3fr minmax(220px, 2fr); align-items: center; gap: 36px;
|
||||
padding: 40px var(--gut); border-top: 1px solid var(--b2); cursor: default;
|
||||
}
|
||||
.cp-svc__row::before {
|
||||
content: ''; position: absolute; inset: 0; z-index: -1; background: var(--lime);
|
||||
transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.7, 0, .3, 1);
|
||||
}
|
||||
.cp-svc__row:hover::before { transform: scaleX(1); }
|
||||
.cp-svc__n { font: 900 min(13vw, 180px) var(--sans); line-height: .78; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--lime); transition: -webkit-text-stroke-color .4s .15s; }
|
||||
.cp-svc__t { font: 900 min(5.4vw, 84px) var(--sans); line-height: .92; letter-spacing: -.035em; transition: color .4s .15s; }
|
||||
.cp-svc__d { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--mut65); transition: color .4s .15s; }
|
||||
.cp-svc__row:hover .cp-svc__n { -webkit-text-stroke-color: var(--bg); }
|
||||
.cp-svc__row:hover .cp-svc__t, .cp-svc__row:hover .cp-svc__d { color: var(--bg); }
|
||||
|
||||
/* Boîte à outils : bandeaux défilants géants */
|
||||
.cp-tools { margin-bottom: 150px; }
|
||||
.cp-tools__row { border-top: 1px solid var(--b1); padding: 22px 0 18px; }
|
||||
.cp-tools__row:last-child { border-bottom: 1px solid var(--b1); }
|
||||
.cp-tools__label { padding: 0 var(--gut) 10px; font: 500 12px var(--mono); letter-spacing: .2em; color: var(--mut50); }
|
||||
.cp-tools__mq .marquee-track { animation-duration: var(--dur, 30s); font: 900 min(8vw, 112px) var(--sans); letter-spacing: -.03em; line-height: 1; }
|
||||
.cp-tools__mq b { font-weight: 900; color: var(--ink); transition: color .35s, -webkit-text-stroke-color .35s; }
|
||||
.cp-tools__mq b.is-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(var(--ink-rgb), .55); }
|
||||
.cp-tools__mq i { font-style: normal; font-size: .42em; margin: 0 .55em; vertical-align: .55em; }
|
||||
.cp-tools__row:hover .marquee-track { animation-play-state: paused; }
|
||||
.cp-tools__row:hover b { color: var(--lime); }
|
||||
.cp-tools__row:hover b.is-outline { color: transparent; -webkit-text-stroke-color: var(--lime); }
|
||||
.cp-tools__row:hover .cp-tools__label { color: var(--lime); }
|
||||
|
||||
/* Méthode : grand numéro fixé à gauche, étapes qui défilent */
|
||||
.cp-method { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; margin-bottom: 120px; }
|
||||
.cp-method__aside {
|
||||
position: sticky; top: calc(96px + var(--admin)); align-self: start;
|
||||
/* Jamais plus haut que l'écran : tout est dimensionné aussi sur la hauteur (vh) */
|
||||
max-height: calc(100vh - 120px - var(--admin)); display: flex; flex-direction: column;
|
||||
}
|
||||
.cp-method__aside .cp-h { font-size: min(7vw, 11vh, 110px); margin-bottom: 2vh; }
|
||||
.cp-method__big { position: relative; flex: 1 1 auto; min-height: 0; height: min(24vw, 36vh, 340px); }
|
||||
.cp-method__num {
|
||||
position: absolute; left: -.04em; bottom: 0;
|
||||
font: 900 min(28vw, 42vh, 400px) var(--sans); line-height: .78; letter-spacing: -.06em;
|
||||
color: transparent; -webkit-text-stroke: 2.5px var(--lime);
|
||||
opacity: 0; transform: translateY(40%); transition: opacity .5s, transform .7s cubic-bezier(.2, .8, .2, 1);
|
||||
}
|
||||
.cp-method__num.is-on { opacity: 1; transform: none; }
|
||||
.cp-method__steps { list-style: none; margin: 0; padding: 0; }
|
||||
.cp-method__step {
|
||||
min-height: min(62vh, 620px); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 4vh 0;
|
||||
border-top: 1px solid var(--b1); opacity: .22; transition: opacity .5s;
|
||||
}
|
||||
.cp-method__step.is-on { opacity: 1; }
|
||||
.cp-method__k { font: 700 13px var(--mono); color: var(--lime); letter-spacing: .1em; }
|
||||
.cp-method__t { font: 900 min(7vw, 12vh, 104px) var(--sans); line-height: .9; letter-spacing: -.04em; }
|
||||
.cp-method__d { max-width: 460px; font: 400 18px/1.6 var(--sans); color: var(--mut70); }
|
||||
|
||||
.cp-infra { margin-bottom: 150px; }
|
||||
|
||||
/* Preuves : liste géante + vignette qui suit la souris */
|
||||
.cp-proofs { margin-bottom: 40px; }
|
||||
.cp-proofs__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--b1); }
|
||||
.cp-proof {
|
||||
/* Liens toujours sous le nom de la compétence (plus de bascule à droite / dessous) */
|
||||
display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
|
||||
padding: 22px var(--gut); border-top: 1px solid var(--b1); transition: padding-left .4s cubic-bezier(.2, .8, .2, 1);
|
||||
}
|
||||
.cp-proof__skill {
|
||||
font: 900 min(6.4vw, 92px) var(--sans); line-height: .95; letter-spacing: -.035em;
|
||||
color: transparent; -webkit-text-stroke: 1.5px rgba(var(--ink-rgb), .6); transition: color .35s, -webkit-text-stroke-color .35s;
|
||||
}
|
||||
.cp-proof:hover { padding-left: calc(var(--gut) + 28px); }
|
||||
.cp-proof:hover .cp-proof__skill { color: var(--lime); -webkit-text-stroke-color: var(--lime); }
|
||||
.cp-proof__links { display: flex; flex-wrap: wrap; gap: 22px; font: 700 14px var(--mono); }
|
||||
.cp-proof__links a { color: var(--ink); border-bottom: 1px solid rgba(var(--lime-rgb), .4); padding-bottom: 3px; }
|
||||
.cp-proof__links a:hover { color: var(--lime); border-color: var(--lime); }
|
||||
.cp-preview {
|
||||
position: fixed; left: 0; top: 0; z-index: 70; width: 340px; aspect-ratio: 16 / 10; pointer-events: none;
|
||||
opacity: 0; transform: translate(-50%, -50%) scale(.8) rotate(var(--tilt, 0deg));
|
||||
transition: opacity .25s, transform .35s cubic-bezier(.2, .8, .2, 1);
|
||||
}
|
||||
.cp-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(var(--tilt, 0deg)); }
|
||||
/* Paquet : la carte de devant (k=0) est au-dessus, les autres décalées vers le haut-droite, un coin visible */
|
||||
.cp-deck__card {
|
||||
position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: var(--card);
|
||||
border: 1px solid rgba(var(--ink-rgb), .18); box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
|
||||
transform: translate(calc(var(--k) * 16px), calc(var(--k) * -14px)) rotate(calc(var(--k) * 5deg));
|
||||
transition: transform .4s cubic-bezier(.2, .8, .2, 1);
|
||||
}
|
||||
.cp-deck__card[style*="--k:0"] { border-color: var(--lime); }
|
||||
.cp-preview:not(.is-stack) .cp-deck__card { transform: none; }
|
||||
.cp-preview.is-stack.is-on .cp-deck__card { transform: translate(calc(var(--k) * 22px), calc(var(--k) * -18px)) rotate(calc(var(--k) * 6deg)); }
|
||||
.cp-deck__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||
.cp-deck__name { position: absolute; left: 12px; bottom: 10px; z-index: 5; font: 700 12px var(--mono); color: var(--bg); background: var(--lime); padding: 4px 8px; border-radius: 4px; }
|
||||
.cp-deck__count { position: absolute; right: -10px; top: -12px; z-index: 5; font: 700 12px var(--mono); color: var(--bg); background: var(--ink); padding: 4px 8px; border-radius: 99px; }
|
||||
/* Roue ouverte : le paquet se fige et s'efface au centre */
|
||||
.cp-preview.is-pinned { opacity: 0; transform: translate(-50%, -50%) scale(.35) rotate(0deg); transition: opacity .3s, transform .45s cubic-bezier(.2, .8, .2, 1); }
|
||||
@media (pointer: coarse) { .cp-preview { display: none; } }
|
||||
|
||||
/* Roue de sélection façon « menu d'armes » */
|
||||
.cp-wheel { position: fixed; inset: 0; z-index: 90; background: rgba(var(--bg-rgb), 0); transition: background .3s; cursor: crosshair; }
|
||||
.cp-wheel.is-open { background: rgba(var(--bg-rgb), .72); }
|
||||
.cp-wheel__svg {
|
||||
position: absolute; transform: translate(-50%, -50%) scale(.6); border-radius: 50%;
|
||||
border: 1.5px dashed rgba(var(--lime-rgb), .35); opacity: 0; transition: opacity .3s, transform .5s cubic-bezier(.2, .8, .2, 1);
|
||||
}
|
||||
.cp-wheel.is-open .cp-wheel__svg { opacity: 1; transform: translate(-50%, -50%) scale(1); }
|
||||
/* Cartes du menu : elles partent du paquet (centre) et rejoignent leur place sur le cercle */
|
||||
.cp-wheel__card {
|
||||
position: absolute; border-radius: 12px; overflow: hidden; background: var(--card);
|
||||
border: 1px solid rgba(var(--ink-rgb), .2); box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
|
||||
opacity: 0; transform: translate(-50%, -50%) scale(.45);
|
||||
transition: transform .55s cubic-bezier(.2, .8, .2, 1) var(--d), opacity .3s var(--d), filter .3s, border-color .3s, box-shadow .3s;
|
||||
}
|
||||
.cp-wheel.is-open .cp-wheel__card { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1); }
|
||||
.cp-wheel.is-open .cp-wheel__card.is-hot {
|
||||
z-index: 3; border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime), 0 0 40px rgba(var(--lime-rgb), .35), 0 20px 50px rgba(0, 0, 0, .7);
|
||||
transform: translate(calc(-50% + var(--tx) * 1.08), calc(-50% + var(--ty) * 1.08)) scale(1.12); transition-delay: 0s;
|
||||
}
|
||||
.cp-wheel.has-hot .cp-wheel__card:not(.is-hot) { filter: brightness(.45) saturate(.6); }
|
||||
.cp-wheel__card img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
|
||||
.cp-wheel__label { position: absolute; left: 10px; bottom: 9px; font: 700 11px var(--mono); color: var(--bg); background: var(--lime); padding: 3px 7px; border-radius: 4px; }
|
||||
.cp-wheel.is-go .cp-wheel__card.is-hot { transform: translate(calc(-50% + var(--tx) * 1.08), calc(-50% + var(--ty) * 1.08)) scale(1.3); opacity: 0; transition: transform .3s, opacity .3s .05s; }
|
||||
.cp-wheel__center {
|
||||
position: absolute; z-index: 2; transform: translate(-50%, -50%); border-radius: 50%; width: 150px; height: 150px;
|
||||
border: 1.5px dashed rgba(var(--lime-rgb), .5); background: rgba(var(--bg-rgb), .88);
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 0 14px;
|
||||
opacity: 0; transition: opacity .3s .15s; pointer-events: none;
|
||||
}
|
||||
.cp-wheel.is-open .cp-wheel__center { opacity: 1; }
|
||||
.cp-wheel__skill { font: 500 9.5px var(--mono); letter-spacing: .14em; color: var(--mut50); text-transform: uppercase; }
|
||||
.cp-wheel__name { font: 900 21px var(--sans); line-height: 1; letter-spacing: -.02em; color: var(--lime); }
|
||||
.cp-wheel__hint { font: 500 9.5px var(--mono); letter-spacing: .06em; color: var(--mut65); }
|
||||
@media (max-width: 720px) { .cp-wheel__center { width: 100px; height: 100px; } .cp-wheel__name { font-size: 15px; } .cp-wheel__skill, .cp-wheel__hint { font-size: 8.5px; } }
|
||||
html.has-custom-cursor .cp-wheel { cursor: none; }
|
||||
.cp-proof { cursor: pointer; }
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.cp-svc__row { grid-template-columns: auto 1fr; gap: 10px 22px; padding: 30px var(--gut); }
|
||||
.cp-svc__d { grid-column: 1 / -1; }
|
||||
.cp-method { grid-template-columns: 1fr; gap: 10px; }
|
||||
.cp-method__aside { position: static; }
|
||||
.cp-method__big { display: none; }
|
||||
.cp-method__step { min-height: 0; padding: 34px 0; opacity: 1; }
|
||||
.cp-svc, .cp-tools, .cp-infra { margin-bottom: 100px; }
|
||||
}
|
||||
html.yb-static .cp-method__step { opacity: 1; }
|
||||
@media (max-height: 560px) and (min-width: 861px) {
|
||||
.cp-method__aside { position: static; max-height: none; }
|
||||
.cp-method__big { display: none; }
|
||||
.cp-method__step { min-height: 0; padding: 30px 0; opacity: 1; }
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.cp-manifest { font-size: 27px; line-height: 1.12; }
|
||||
.cp-proof__skill { color: var(--ink); -webkit-text-stroke: 0; font-size: 30px; }
|
||||
.cp-proof:hover { padding-left: var(--gut); }
|
||||
}
|
||||
|
||||
/* Preuves : étiquette « ARTICLE » pour les liens vers le blog */
|
||||
.cp-proof__kind { font: 700 9.5px var(--mono); letter-spacing: .12em; color: var(--bg); background: rgba(var(--ink-rgb), .75); padding: 2px 5px; border-radius: 3px; vertical-align: 2px; }
|
||||
.cp-proof__links a.is-article { border-bottom-style: dashed; }
|
||||
.cp-wheel__label.is-article { background: var(--ink); }
|
||||
|
||||
/* ══ Bascule clair / sombre ══════════════════════════════════════════ */
|
||||
.theme-toggle {
|
||||
position: relative; width: 36px; height: 36px; flex: none; padding: 0; cursor: pointer;
|
||||
border: 1px solid rgba(var(--ink-rgb), .3); border-radius: 50%; background: transparent; color: var(--ink);
|
||||
transition: border-color .25s, background .25s, color .25s;
|
||||
}
|
||||
.theme-toggle:hover { border-color: var(--lime); color: var(--lime); }
|
||||
.theme-toggle svg {
|
||||
position: absolute; inset: 0; margin: auto; width: 17px; height: 17px;
|
||||
fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
|
||||
transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .3s;
|
||||
}
|
||||
.theme-toggle__moon { fill: currentColor; stroke: none; }
|
||||
/* En sombre : on montre le soleil (« passer en clair ») ; en clair : la lune */
|
||||
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
|
||||
html[data-theme="light"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.4); }
|
||||
html[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: none; }
|
||||
|
||||
/* Bascule animée : cercle qui s'étend depuis le bouton (View Transitions) */
|
||||
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
|
||||
::view-transition-new(root) { z-index: 9999; }
|
||||
/* Navigateurs sans View Transitions : fondu des couleurs le temps de la bascule */
|
||||
html.theme-fade, html.theme-fade * { transition: background-color .45s, color .45s, border-color .45s, fill .45s, stroke .45s !important; }
|
||||
|
||||
/* ══ Page Qui suis-je (refonte) ══════════════════════════════════════ */
|
||||
.qs .page-wrap { min-height: 0; padding-top: 0; padding-bottom: 0; }
|
||||
.qs-hero.page-wrap {
|
||||
padding-top: calc(150px + var(--admin)); padding-bottom: 110px;
|
||||
display: grid; grid-template-columns: 1.3fr minmax(280px, 1fr); gap: 70px; align-items: end;
|
||||
}
|
||||
.qs-title { font: 900 min(7.6vw, 124px) var(--sans); line-height: .84; letter-spacing: -.045em; margin: 0 0 54px; }
|
||||
.qs-lead { margin: 0 0 26px; max-width: 900px; font: 800 min(3.3vw, 44px)/1.12 var(--sans); letter-spacing: -.02em; color: var(--ink); }
|
||||
.qs-sub { margin: 0; max-width: 620px; font: 400 17px/1.7 var(--sans); color: var(--mut70); }
|
||||
|
||||
/* Portrait : cadre lime décalé, gris → couleur et inclinaison au survol */
|
||||
.qs-portrait { position: relative; margin: 0 18px 18px 0; }
|
||||
.qs-portrait::before {
|
||||
content: ''; position: absolute; inset: 0; transform: translate(18px, 18px);
|
||||
border: 2px solid var(--lime); border-radius: 16px; transition: transform .5s cubic-bezier(.2, .8, .2, 1);
|
||||
}
|
||||
.qs-portrait:hover::before { transform: translate(26px, 26px); }
|
||||
.qs-portrait__frame {
|
||||
position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--ph);
|
||||
transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out;
|
||||
}
|
||||
.qs-portrait__frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.06); transform: scale(1.04); transition: filter .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
|
||||
.qs-portrait:hover .qs-portrait__frame img { filter: none; transform: scale(1); }
|
||||
.qs-portrait__cap { margin-top: 44px; font: 500 11px var(--mono); letter-spacing: .2em; color: var(--mut50); }
|
||||
|
||||
/* Fiche en terminal tapé */
|
||||
.qs-who { margin-bottom: 150px; }
|
||||
.qs-term { max-width: 820px; }
|
||||
.qs-term__body { font-size: 14px; gap: 10px; }
|
||||
.qs-term__row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; }
|
||||
.qs-term__k { color: var(--mut45); }
|
||||
.qs-term__k::after { content: ' :'; }
|
||||
.qs-term__v { color: var(--ink); }
|
||||
.qs-term__caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--lime); animation: yb-pulse 1s steps(1) infinite; }
|
||||
.qs-term [data-type-row] { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
|
||||
.qs-term [data-type-row].is-typed { opacity: 1; transform: none; }
|
||||
html.yb-static .qs-term [data-type-row] { opacity: 1; transform: none; }
|
||||
|
||||
/* Compétences : nom géant en contour qui se remplit de lime jusqu'au pourcentage */
|
||||
.qs-skills { margin-bottom: 150px; }
|
||||
.qs-gauges { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--b1); }
|
||||
.qs-gauge {
|
||||
display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
|
||||
padding: 22px var(--gut) 20px; border-top: 1px solid var(--b1);
|
||||
}
|
||||
.qs-gauge__name {
|
||||
position: relative; display: inline-block;
|
||||
font: 900 min(6.6vw, 96px) var(--sans); line-height: .95; letter-spacing: -.035em;
|
||||
color: transparent; -webkit-text-stroke: 1.5px rgba(var(--ink-rgb), .35);
|
||||
}
|
||||
.qs-gauge__name::after {
|
||||
content: attr(data-text); position: absolute; inset: 0; color: var(--lime); -webkit-text-stroke: 0;
|
||||
clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.2, .8, .2, 1);
|
||||
}
|
||||
.qs-gauge.is-in .qs-gauge__name::after { clip-path: inset(0 calc(100% - var(--pct)) 0 0); }
|
||||
html.yb-static .qs-gauge__name::after { clip-path: inset(0 calc(100% - var(--pct)) 0 0); transition: none; }
|
||||
.qs-gauge__meta { display: flex; align-items: baseline; gap: 16px; font: 500 12px var(--mono); letter-spacing: .12em; color: var(--mut50); text-transform: uppercase; }
|
||||
.qs-gauge__meta b { font: 900 min(4vw, 48px) var(--sans); letter-spacing: -.03em; color: var(--lime); }
|
||||
|
||||
/* Parcours : frise, ligne lime tracée au scroll */
|
||||
.qs-path { margin-bottom: 140px; }
|
||||
.qs-tl { position: relative; padding-left: 44px; }
|
||||
.qs-tl__line { position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--b2); }
|
||||
.qs-tl__fill { position: absolute; left: 0; top: 0; width: 100%; height: var(--p, 0%); background: var(--lime); }
|
||||
html.yb-static .qs-tl__fill { height: 100%; }
|
||||
.qs-tl__list { list-style: none; margin: 0; padding: 0; }
|
||||
.qs-tl__item { position: relative; display: grid; grid-template-columns: minmax(170px, 260px) 1fr; gap: 40px; padding: 34px 0; border-top: 1px solid var(--b1); }
|
||||
.qs-tl__dot { position: absolute; left: -44px; top: 46px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--lime); }
|
||||
.qs-tl__item.is-now .qs-tl__dot { background: var(--lime); box-shadow: 0 0 0 6px rgba(var(--lime-rgb), .2); animation: yb-pulse 2s infinite; }
|
||||
.qs-tl__year { font: 900 min(8vw, 116px) var(--sans); line-height: .82; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--lime); }
|
||||
.qs-tl__item.is-now .qs-tl__year { color: var(--lime); -webkit-text-stroke: 0; }
|
||||
.qs-tl__year small { display: block; margin-top: 10px; font: 700 13px var(--mono); letter-spacing: .1em; color: var(--mut50); -webkit-text-stroke: 0; }
|
||||
.qs-tl__date { font: 500 12px var(--mono); letter-spacing: .1em; color: var(--lime); margin-bottom: 10px; }
|
||||
.qs-tl__now { display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 4px; background: var(--lime); color: var(--bg); font-weight: 700; letter-spacing: .14em; }
|
||||
.qs-tl__title { font: 900 min(3.4vw, 46px) var(--sans); line-height: 1; letter-spacing: -.025em; margin-bottom: 10px; }
|
||||
.qs-tl__place { font: 500 12px var(--mono); letter-spacing: .1em; color: var(--mut50); margin-bottom: 14px; }
|
||||
.qs-tl__desc { margin: 0; max-width: 640px; font: 400 16px/1.65 var(--sans); color: var(--mut70); }
|
||||
.qs-mq { margin-bottom: 0; }
|
||||
.qs-mq .skills-mq__track { font-size: min(5vw, 64px); }
|
||||
.qs-mq i { font-style: normal; font-size: .5em; vertical-align: .4em; }
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.qs-hero.page-wrap { grid-template-columns: 1fr; gap: 50px; padding-bottom: 80px; }
|
||||
.qs-portrait { max-width: 420px; }
|
||||
.qs-lead { font-size: 26px; }
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.qs-term__row { grid-template-columns: 1fr; gap: 2px; }
|
||||
.qs-term__body { font-size: 12.5px; }
|
||||
.qs-gauge__name { font-size: 30px; }
|
||||
.qs-tl { padding-left: 30px; }
|
||||
.qs-tl__dot { left: -30px; }
|
||||
.qs-tl__item { grid-template-columns: 1fr; gap: 14px; }
|
||||
.qs-tl__title { font-size: 26px; }
|
||||
.qs-who, .qs-skills, .qs-path { margin-bottom: 100px; }
|
||||
}
|
||||
.qs-title .outline-lime { white-space: nowrap; }
|
||||
@media (max-width: 960px) { .qs-title { font-size: min(15vw, 124px); } }
|
||||
|
||||
/* ══ Page Contact (refonte) ══════════════════════════════════════════ */
|
||||
.ct .page-wrap { min-height: 0; padding-bottom: 0; }
|
||||
.ct-open.page-wrap { padding-top: calc(150px + var(--admin)); padding-bottom: 80px; }
|
||||
.ct-title { font-size: min(11.4vw, 168px); }
|
||||
.ct-meta { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 48px; font: 500 12px var(--mono); letter-spacing: .14em; color: var(--mut50); }
|
||||
.ct-meta b { font-weight: 700; }
|
||||
.ct-list { list-style: none; margin: 0 0 110px; padding: 0; border-bottom: 1px solid var(--b2); }
|
||||
.ct-row {
|
||||
position: relative; isolation: isolate; overflow: hidden;
|
||||
display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; align-items: center; gap: 28px;
|
||||
padding: 30px var(--gut); border-top: 1px solid var(--b2);
|
||||
}
|
||||
.ct-row::before {
|
||||
content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(var(--lime-rgb), .07);
|
||||
transform: scaleY(0); transform-origin: bottom; transition: transform .5s cubic-bezier(.2, .8, .2, 1);
|
||||
}
|
||||
.ct-row:hover::before { transform: scaleY(1); }
|
||||
.ct-row__k { font: 500 12px var(--mono); letter-spacing: .18em; color: var(--mut50); }
|
||||
.ct-row__big {
|
||||
font: 900 min(4.3vw, 64px) var(--sans); line-height: 1; letter-spacing: -.035em; white-space: nowrap; min-width: 0;
|
||||
color: transparent; -webkit-text-stroke: 1.5px rgba(var(--ink-rgb), .55); transition: color .35s, -webkit-text-stroke-color .35s;
|
||||
}
|
||||
.ct-row:hover .ct-row__big { color: var(--lime); -webkit-text-stroke-color: var(--lime); }
|
||||
.ct-row__acts { display: flex; gap: 10px; align-items: center; }
|
||||
.ct-copy, .ct-row__act {
|
||||
font: 700 12px var(--mono); letter-spacing: .08em; padding: 10px 16px; border-radius: 99px; white-space: nowrap; cursor: pointer;
|
||||
border: 1px solid rgba(var(--ink-rgb), .3); background: transparent; color: var(--ink); transition: background .25s, color .25s, border-color .25s;
|
||||
}
|
||||
.ct-row__act { border-color: rgba(var(--lime-rgb), .5); color: var(--lime); }
|
||||
.ct-copy:hover { border-color: var(--ink); }
|
||||
.ct-row__act:hover { background: var(--lime); color: var(--bg); }
|
||||
.ct-preview {
|
||||
position: fixed; left: 0; top: 0; z-index: 70; width: 230px; aspect-ratio: 210 / 297; pointer-events: none;
|
||||
border-radius: 8px; overflow: hidden; border: 1px solid var(--lime); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
|
||||
opacity: 0; transform: translate(-50%, -50%) rotate(-5deg) scale(.85); transition: opacity .25s, transform .4s cubic-bezier(.2, .8, .2, 1);
|
||||
}
|
||||
.ct-preview.is-on { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1); }
|
||||
.ct-preview img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
|
||||
.ct-toast {
|
||||
position: fixed; left: 50%; bottom: 32px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
|
||||
font: 700 12px var(--mono); letter-spacing: .06em; color: var(--bg); background: var(--lime); padding: 10px 16px; border-radius: 99px;
|
||||
transition: opacity .25s, transform .35s cubic-bezier(.2, .8, .2, 1);
|
||||
}
|
||||
.ct-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
|
||||
@media (pointer: coarse) { .ct-preview { display: none; } }
|
||||
@media (max-width: 860px) {
|
||||
.ct-row { grid-template-columns: 1fr; gap: 12px; padding: 26px var(--gut); }
|
||||
.ct-row__big { font-size: min(6.6vw, 44px); color: var(--ink); -webkit-text-stroke: 0; }
|
||||
.ct-list { margin-bottom: 80px; }
|
||||
}
|
||||
|
||||
/* Coordonnées protégées : « •••••••• » tant qu'elles ne sont pas décodées */
|
||||
.yb-pv { letter-spacing: .08em; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue