feat: architecture multi-thèmes (6 designs) et nouveau logo SVG
This commit is contained in:
1 parent
685599e706
commit
e180a97113
20 files changed
+3177
-118
No files matched your search
@@ -0,0 +1,254 @@
|
||||
/* ==========================================================================
|
||||
themes/bento-grid.css — Thème « Grille Bento » (Modulaire 2027)
|
||||
--------------------------------------------------------------------------
|
||||
Esthétique :
|
||||
- Fond gris très clair neutre (#F4F5F7)
|
||||
- Cartes blanches aux coins généreusement arrondis (22px), bordures
|
||||
subtiles (1px solid rgb(0 0 0 / 6%))
|
||||
- Grilles CSS modulaires asymétriques sur desktop (Profil, Projets,
|
||||
Compétences, Formation) avec tuiles de largeur variée
|
||||
- Retour propre sur une seule colonne sur mobile
|
||||
- Accents vert émeraude repris du logo SVG
|
||||
========================================================================== */
|
||||
|
||||
@layer themes {
|
||||
|
||||
[data-theme="bento-grid"] {
|
||||
--color-bg: #f4f5f7;
|
||||
--color-bg-translucent: rgb(244 245 247 / 86%);
|
||||
--color-surface: #ffffff;
|
||||
--color-surface-alt: #eef0f3;
|
||||
--color-line: rgb(0 0 0 / 6%);
|
||||
--color-line-strong: rgb(0 0 0 / 12%);
|
||||
|
||||
--color-ink: #10201c;
|
||||
--color-ink-soft: #43504c;
|
||||
--color-ink-faint: #5e6b67;
|
||||
--color-accent: #05bc8a;
|
||||
--color-accent-dark: #038762;
|
||||
--color-accent-wash: #e8faf3;
|
||||
|
||||
--radius-sm: 10px;
|
||||
--radius-md: 22px;
|
||||
--shadow-sm: 0 1px 2px rgb(16 32 28 / 4%), 0 4px 14px rgb(16 32 28 / 3%);
|
||||
--shadow-md: 0 8px 24px rgb(16 32 28 / 7%);
|
||||
--transition-fast: 140ms ease;
|
||||
--transition-base: 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .site-header {
|
||||
border-block-end: 1px solid rgb(0 0 0 / 6%);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .site-header__logo .logo-bars {
|
||||
color: var(--color-ink);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .masthead {
|
||||
background-color: var(--color-surface);
|
||||
border: 1px solid var(--color-line);
|
||||
border-radius: 24px;
|
||||
padding: var(--space-2xl);
|
||||
margin-block-start: var(--space-xl);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .section {
|
||||
border-block-start: 0;
|
||||
padding-block: var(--space-2xl) var(--space-lg);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------
|
||||
TUILES BENTO (Enseignement, Coordination, Contact)
|
||||
------------------------------------------------------------------------ */
|
||||
[data-theme="bento-grid"] .entry {
|
||||
background-color: var(--color-surface);
|
||||
border: 1px solid var(--color-line);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-lg);
|
||||
margin-block-end: var(--space-md);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .entry:last-child {
|
||||
margin-block-end: 0;
|
||||
border-color: var(--color-line);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .entry::before {
|
||||
content: none;
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .course {
|
||||
background-color: var(--color-bg);
|
||||
border: 1px solid var(--color-line);
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .card,
|
||||
[data-theme="bento-grid"] .project,
|
||||
[data-theme="bento-grid"] .education,
|
||||
[data-theme="bento-grid"] .contact-block {
|
||||
background-color: var(--color-surface);
|
||||
border: 1px solid var(--color-line);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
margin: 0;
|
||||
transition:
|
||||
border-color var(--transition-base),
|
||||
box-shadow var(--transition-base),
|
||||
transform var(--transition-base);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .card:hover,
|
||||
[data-theme="bento-grid"] .project:hover,
|
||||
[data-theme="bento-grid"] .education:hover {
|
||||
border-color: rgb(5 188 138 / 38%);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .button {
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .badge {
|
||||
border-radius: 999px;
|
||||
padding: 3px 10px;
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .project__stack li {
|
||||
border-radius: 999px;
|
||||
padding: 3px 9px;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------
|
||||
GRILLES ASYMÉTRIQUES BENTO (Desktop)
|
||||
------------------------------------------------------------------------ */
|
||||
[data-theme="bento-grid"] .intro {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: var(--space-md);
|
||||
padding-block: var(--space-xl) var(--space-lg);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .intro__heading {
|
||||
grid-column: 1 / -1;
|
||||
max-inline-size: none;
|
||||
margin-block-end: var(--space-xs);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .intro__text {
|
||||
background-color: var(--color-surface);
|
||||
border: 1px solid var(--color-line);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-lg);
|
||||
margin: 0;
|
||||
max-inline-size: none;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .intro__text:nth-of-type(1) { grid-column: span 3; }
|
||||
[data-theme="bento-grid"] .intro__text:nth-of-type(2) { grid-column: span 3; }
|
||||
[data-theme="bento-grid"] .intro__text:nth-of-type(3) { grid-column: span 2; }
|
||||
[data-theme="bento-grid"] .intro__text:nth-of-type(4) {
|
||||
grid-column: span 4;
|
||||
background: linear-gradient(135deg, #ffffff 0%, #eafaf4 100%);
|
||||
border-color: rgb(5 188 138 / 28%);
|
||||
border-inline-start: 4px solid var(--color-accent);
|
||||
}
|
||||
|
||||
/* Projets : 6 tuiles sur 3 rangées asymétriques (4+2, 2+4, 3+3) */
|
||||
[data-theme="bento-grid"] #projets {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] #projets .section-title {
|
||||
grid-column: 1 / -1;
|
||||
margin-block-end: var(--space-xs);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] #projets .project:nth-of-type(1) { grid-column: span 4; }
|
||||
[data-theme="bento-grid"] #projets .project:nth-of-type(2) { grid-column: span 2; }
|
||||
[data-theme="bento-grid"] #projets .project:nth-of-type(3) { grid-column: span 2; }
|
||||
[data-theme="bento-grid"] #projets .project:nth-of-type(4) { grid-column: span 4; }
|
||||
[data-theme="bento-grid"] #projets .project:nth-of-type(5) { grid-column: span 3; }
|
||||
[data-theme="bento-grid"] #projets .project:nth-of-type(6) { grid-column: span 3; }
|
||||
|
||||
/* Compétences : 6 cartes asymétriques (4+2, 2+4, 4+2) */
|
||||
[data-theme="bento-grid"] #competences .grid {
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] #competences .card:nth-child(1) { grid-column: span 4; }
|
||||
[data-theme="bento-grid"] #competences .card:nth-child(2) { grid-column: span 2; }
|
||||
[data-theme="bento-grid"] #competences .card:nth-child(3) { grid-column: span 2; }
|
||||
[data-theme="bento-grid"] #competences .card:nth-child(4) { grid-column: span 4; }
|
||||
[data-theme="bento-grid"] #competences .card:nth-child(5) { grid-column: span 4; }
|
||||
[data-theme="bento-grid"] #competences .card:nth-child(6) { grid-column: span 2; }
|
||||
|
||||
/* Formation : asymétrie 4 + 2 */
|
||||
[data-theme="bento-grid"] #formation .grid {
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] #formation .education:nth-child(1) { grid-column: span 4; }
|
||||
[data-theme="bento-grid"] #formation .education:nth-child(2) { grid-column: span 2; }
|
||||
|
||||
/* ------------------------------------------------------------------------
|
||||
MOBILE — retour propre en une seule colonne
|
||||
------------------------------------------------------------------------ */
|
||||
@media (width <= 46rem) {
|
||||
[data-theme="bento-grid"] .masthead {
|
||||
padding: var(--space-lg);
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .intro,
|
||||
[data-theme="bento-grid"] #projets,
|
||||
[data-theme="bento-grid"] #competences .grid,
|
||||
[data-theme="bento-grid"] #formation .grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .intro__text,
|
||||
[data-theme="bento-grid"] #projets .project,
|
||||
[data-theme="bento-grid"] #competences .card,
|
||||
[data-theme="bento-grid"] #formation .education {
|
||||
grid-column: 1 / -1 !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------
|
||||
ANIMATION D'ÉTAT (≤ 260ms) & PREFERS-REDUCED-MOTION
|
||||
------------------------------------------------------------------------ */
|
||||
[data-js="true"][data-theme="bento-grid"] [data-reveal] {
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
transition: opacity 240ms ease-out, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
[data-js="true"][data-theme="bento-grid"] [data-reveal][data-revealed="true"] {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
[data-js="true"][data-theme="bento-grid"] [data-reveal] {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
[data-theme="bento-grid"] .card:hover,
|
||||
[data-theme="bento-grid"] .project:hover,
|
||||
[data-theme="bento-grid"] .education:hover {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user