269 lines
No EOL
8.3 KiB
CSS
269 lines
No EOL
8.3 KiB
CSS
:root{
|
|
--bg: linear-gradient(135deg, #f6f8fb 0%, #e6f3ff 50%, #eefaf9 100%);
|
|
--card: #ffffff;
|
|
--muted: #6b7280;
|
|
--accent: #2563eb;
|
|
--accent-2: #10b981;
|
|
--text: #0f172a;
|
|
--radius: 12px;
|
|
}
|
|
|
|
*{box-sizing:border-box}
|
|
|
|
html, body {height:100%}
|
|
|
|
html{
|
|
background: var(--bg);
|
|
background-attachment: fixed;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
}
|
|
|
|
body{
|
|
margin:0;
|
|
font-family: Inter, "EB Garamond", serif;
|
|
background: transparent;
|
|
color:var(--text);
|
|
-webkit-font-smoothing:antialiased;
|
|
-moz-osx-font-smoothing:grayscale;
|
|
line-height:1.6;
|
|
}
|
|
|
|
.container{
|
|
max-width:1100px;
|
|
margin:0 auto;
|
|
padding:24px;
|
|
}
|
|
|
|
.site-header{
|
|
background: linear-gradient(90deg, rgba(16,185,129,0.06), rgba(37,99,235,0.04));
|
|
backdrop-filter: blur(4px);
|
|
border-bottom:1px solid rgba(15,23,42,0.06);
|
|
}
|
|
.site-header .container{
|
|
display:flex;
|
|
align-items:center;
|
|
gap:16px;
|
|
padding-top:18px;
|
|
padding-bottom:18px;
|
|
}
|
|
.brand{
|
|
font-weight:700;
|
|
font-size:20px;
|
|
color:var(--accent-2);
|
|
text-decoration:none;
|
|
}
|
|
.nav{
|
|
margin-left:auto;
|
|
display:flex;
|
|
gap:12px;
|
|
align-items:center;
|
|
}
|
|
.nav a{color:var(--muted); text-decoration:none; padding:8px 12px; border-radius:8px}
|
|
.nav a:hover{color:var(--accent); background:rgba(37,99,235,0.08)}
|
|
|
|
.profile-card{position:relative; overflow:visible}
|
|
.profile-card::before{
|
|
content:"";
|
|
position:absolute;
|
|
left:0; top:0; bottom:0;
|
|
width:6px;
|
|
border-radius:8px 0 0 8px;
|
|
background: linear-gradient(180deg, var(--accent-2), var(--accent));
|
|
}
|
|
|
|
.main-card{border-top:6px solid; border-top-color:rgba(16,185,129,0.12)}
|
|
|
|
.layout{display:grid; grid-template-columns: 350px 1fr; gap:24px; align-items:start}
|
|
|
|
.profile-card{
|
|
background:var(--card);
|
|
border-radius:var(--radius);
|
|
padding:24px;
|
|
box-shadow:0 6px 20px rgba(15,23,42,0.06);
|
|
text-align:center;
|
|
}
|
|
.profile-card img{border-radius:50%; width:200px; height:200px; object-fit:cover; display:block; margin:0 auto 16px}
|
|
.profile-card h2{margin:8px 0 4px;font-size:20px}
|
|
.profile-card .meta{color:var(--muted); font-size:14px}
|
|
.contact-list{list-style:none; padding:0; margin:12px 0 0; text-align:left}
|
|
.contact-list li{margin:10px 0}
|
|
.contact-list a{color:var(--accent); text-decoration:none}
|
|
|
|
/* Skills bar: each bar composed of 6 segments; add/remove 'filled' on .segment to change level */
|
|
.skills{margin-top:14px; text-align:center}
|
|
.skills h3{margin:6px 0 10px; font-size:16px; color:var(--text); font-weight:700}
|
|
.skill-list{list-style:none; padding:0; margin:0; display:grid; gap:10px; text-align:left}
|
|
.skill-list{list-style:none; padding:0; margin:0; display:grid; gap:10px}
|
|
.skill{display:flex; align-items:center; gap:12px}
|
|
.skill-name{width:100px; font-weight:600; color:var(--muted); font-size:14px}
|
|
.skill-bar{flex:1; display:flex; gap:6px; align-items:center}
|
|
.skill-bar .segment{flex:1; height:10px; background:rgba(15,23,42,0.06); border-radius:6px}
|
|
.skill-bar .segment.filled{background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset}
|
|
.skill-bar .segment:first-child{border-radius:6px 4px 4px 6px}
|
|
.skill-bar .segment:last-child{border-radius:4px 6px 6px 4px}
|
|
|
|
@media (max-width:600px){
|
|
.skill{gap:8px}
|
|
.skill-name{width:90px; font-size:13px}
|
|
.skill-bar .segment{height:9px}
|
|
}
|
|
|
|
.profile-card > a{
|
|
display:inline-block;
|
|
line-height:0;
|
|
text-decoration:none;
|
|
cursor: default;
|
|
border: none;
|
|
}
|
|
.profile-card > a img{display:block}
|
|
.profile-card > a:focus{
|
|
outline: 2px dashed rgba(37,99,235,0.28);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.main-card{
|
|
background:var(--card);
|
|
border-radius:var(--radius);
|
|
padding:20px;
|
|
box-shadow:0 6px 20px rgba(15,23,42,0.04);
|
|
}
|
|
|
|
h1,h2,h3{font-family:'EB Garamond', serif; color:var(--text); margin-top:0}
|
|
h1{font-size:28px}
|
|
h2{font-size:20px}
|
|
|
|
main-card h1{color:var(--accent)}
|
|
.main-card h2{color:var(--accent-2)}
|
|
|
|
.section{margin-bottom:18px}
|
|
|
|
.card-list{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px}
|
|
|
|
a{color:var(--accent);}
|
|
|
|
ul{padding-left:1.1rem}
|
|
li{margin:8px 0}
|
|
|
|
.footer{
|
|
padding:20px 0;
|
|
color:var(--muted);
|
|
text-align:center;
|
|
}
|
|
|
|
@media (max-width:900px){
|
|
.layout{grid-template-columns:1fr}
|
|
/* On mobile, empile le header et affiche la navigation verticalement
|
|
au lieu de la masquer. Cela permet d'avoir les liens "Accueil", "Syllabus",
|
|
etc. visibles sur petit écran. */
|
|
.site-header .container{
|
|
flex-direction:column;
|
|
align-items:flex-start;
|
|
gap:12px;
|
|
}
|
|
.nav{
|
|
display:flex;
|
|
flex-direction:column;
|
|
gap:8px;
|
|
width:100%;
|
|
margin-left:0;
|
|
}
|
|
.nav a{
|
|
display:block;
|
|
width:100%;
|
|
padding:8px 10px;
|
|
border-radius:8px;
|
|
color:var(--muted);
|
|
}
|
|
.nav a:hover{color:var(--accent); background:rgba(37,99,235,0.06)}
|
|
.container{padding:16px}
|
|
}
|
|
|
|
.muted{color:var(--muted)}
|
|
.pill{display:inline-block; padding:6px 10px; background:rgba(37,99,235,0.08); color:var(--accent); border-radius:999px; font-size:13px}
|
|
|
|
a#easteregg,
|
|
a#easteregg:link,
|
|
a#easteregg:visited,
|
|
a#easteregg:hover,
|
|
a#easteregg:active{
|
|
color: inherit !important;
|
|
text-decoration: none !important;
|
|
background: transparent !important;
|
|
cursor: text !important;
|
|
}
|
|
|
|
#easteregg:focus{
|
|
outline: 2px dashed rgba(37,99,235,0.28);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.markdown-content{color:var(--text); line-height:1.7}
|
|
.markdown-content h1{font-size:22px; color:var(--accent); margin-top:0}
|
|
.markdown-content h2{font-size:18px; color:var(--accent-2); margin-bottom:6px}
|
|
.markdown-content h3{font-size:16px; margin-bottom:6px}
|
|
.markdown-content p{margin:0 0 10px}
|
|
.markdown-content a{color:var(--accent)}
|
|
.markdown-content ul{padding-left:1.2rem; margin-bottom:12px}
|
|
.markdown-content li{margin-bottom:6px}
|
|
.markdown-content pre{background:rgba(15,23,42,0.03); padding:12px; border-radius:8px; overflow:auto}
|
|
.markdown-content blockquote{border-left:4px solid rgba(16,185,129,0.12); padding:8px 12px; color:var(--muted); background:rgba(16,185,129,0.02); border-radius:6px}
|
|
|
|
|
|
/* Projects grid */
|
|
.projects-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; margin-top:12px}
|
|
.projects-grid p{grid-column:1/-1}
|
|
.project-links{margin-top:10px; display:flex; gap:8px}
|
|
|
|
/* Project card */
|
|
.project-card{background:var(--card); border-radius:10px; padding:12px; box-shadow:0 6px 18px rgba(15,23,42,0.05); border:1px solid rgba(15,23,42,0.04)}
|
|
.project-card .project-thumb{width:100%; height:300px; object-fit:cover; border-radius:6px; display:block; margin-bottom:10px}
|
|
.project-card h3{margin:8px 0 6px; font-size:18px}
|
|
.project-card .excerpt{color:var(--muted); font-size:15px; margin:0}
|
|
.project-card .tech{margin-top:8px}
|
|
.project-card .tag{display:inline-block; background:rgba(15,23,42,0.04); padding:4px 8px; margin-right:6px; border-radius:6px; font-size:12px}
|
|
|
|
/* Prototype card */
|
|
.prototype-card{background:var(--card); border-radius:10px; padding:12px; box-shadow:0 6px 18px rgba(15,23,42,0.05); border:1px solid rgba(15,23,42,0.04); position:relative; overflow:hidden}
|
|
.prototype-card .project-thumb{width:100%; height:300px; object-fit:cover; border-radius:6px; display:block; margin-bottom:10px}
|
|
|
|
/* Ensure image stays below the badge but within card clipping */
|
|
.prototype-card .project-thumb{position:relative; z-index:1}
|
|
.prototype-card h3{margin:8px 0 6px; font-size:18px}
|
|
.prototype-card .excerpt{color:var(--muted); font-size:15px; margin:0}
|
|
.prototype-card .tech{margin-top:8px}
|
|
.prototype-card .tag{display:inline-block; background:rgba(15,23,42,0.04); padding:4px 8px; margin-right:6px; border-radius:6px; font-size:12px}
|
|
.prototype-card::before{
|
|
content:"PROTOTYPAGE";
|
|
position:absolute;
|
|
top:110px;
|
|
left:-30px;
|
|
width:210px;
|
|
height:34px;
|
|
line-height: 30px;
|
|
text-align: center;
|
|
background:#6e98f3;
|
|
border-radius:6px;
|
|
box-shadow:0 6px 18px rgba(37,99,235,0.12);
|
|
pointer-events:none;
|
|
z-index:2;
|
|
opacity:0.98;
|
|
transform-origin: left top;
|
|
transform: rotate(-40deg);
|
|
}
|
|
|
|
.lang-toggle{color:var(--muted); text-decoration:none; padding:4px 6px; border-radius:6px}
|
|
.lang-toggle.active{background:rgba(37,99,235,0.08); color:var(--accent);}
|
|
|
|
|
|
@media (max-width:900px){
|
|
.projects-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px}
|
|
.project-card .project-thumb{height:220px}
|
|
.prototype-card .project-thumb{height:220px}
|
|
}
|
|
|
|
@media (max-width:600px){
|
|
.projects-grid{grid-template-columns:1fr}
|
|
.project-card .project-thumb{height:180px}
|
|
.prototype-card .project-thumb{height:180px}
|
|
} |