Feat: responsive header mobile + variables breakpoints

- variables.css : --breakpoint-mobile (700px) et --breakpoint-tablet (912px)
- Header : .navbar-item { display: none } en dessous de 700px
- Header/Menu : annotation des media queries avec les variables de référence

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-19 14:38:06 +01:00
parent a1785743c9
commit d44c886e8c
3 changed files with 12 additions and 4 deletions

View file

@ -168,13 +168,14 @@
transition-delay: 0.1s; transition-delay: 0.1s;
} }
/* Mobile — var(--breakpoint-mobile) = 700px */
@media screen and (max-width: 700px) { @media screen and (max-width: 700px) {
.navbar-item { .navbar-item {
font-size: var(--font-size-paragraph-mobile); display: none;
padding: 1vmax 1.5vmax;
} }
} }
/* Tablet — var(--breakpoint-tablet) = 912px */
@media screen and (min-width: 701px) and (max-width: 912px) { @media screen and (min-width: 701px) and (max-width: 912px) {
.navbar-item { .navbar-item {
font-size: var(--font-size-paragraph-tablet); font-size: var(--font-size-paragraph-tablet);

View file

@ -243,7 +243,7 @@
text-transform: uppercase; text-transform: uppercase;
} }
/* Mobile */ /* Mobile — var(--breakpoint-mobile) = 700px */
@media screen and (max-width: 700px) { @media screen and (max-width: 700px) {
.menu-list { .menu-list {
font-size: var(--font-size-subtitle-mobile); font-size: var(--font-size-subtitle-mobile);
@ -268,7 +268,7 @@
} }
} }
/* Tablet */ /* Tablet — var(--breakpoint-tablet) = 912px */
@media screen and (min-width: 701px) and (max-width: 912px) { @media screen and (min-width: 701px) and (max-width: 912px) {
.menu-list { .menu-list {
font-size: var(--font-size-title-section-tablet); font-size: var(--font-size-title-section-tablet);

View file

@ -6,6 +6,13 @@
--color-background: #000; --color-background: #000;
--color-text: #fff; --color-text: #fff;
/* BREAKPOINTS (référence non utilisables directement dans @media)
* --breakpoint-mobile : 700px
* --breakpoint-tablet : 912px
*/
--breakpoint-mobile: 700px;
--breakpoint-tablet: 912px;
/* Z-INDEX SCALE /* Z-INDEX SCALE
* --z-base : éléments décoratifs (lignes verticales, bg) * --z-base : éléments décoratifs (lignes verticales, bg)
* --z-content : contenu de slides (textes, overlays légers) * --z-content : contenu de slides (textes, overlays légers)