Portfolio_pero/assets/css/style.css
Tony AVERTY f8a8aada03 fix(a11y): affiche le contenu animé quand JavaScript est désactivé
Les éléments .reveal démarraient à opacity: 0 et n'apparaissaient qu'une
fois la classe is-visible ajoutée par JS : sans JavaScript, ces sections
restaient invisibles. Un script inline (nonce CSP) remplace la classe
no-js par js sur <html>, et le masquage initial ne s'applique plus que
sous .js.
2026-10-14 15:29:10 +02:00

2808 lines
62 KiB
CSS

/* ============================================
Portfolio Tony AVERTY — Styles principaux
Direction artistique : Structured Elegance
============================================ */
/* ============================================
FONTS AUTO-HÉBERGÉES (RGPD)
============================================ */
/* Inter — latin-ext */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('../fonts/inter-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter — latin */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('../fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono — latin-ext */
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 100 800;
font-display: swap;
src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono — latin */
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 100 800;
font-display: swap;
src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ============================================
CUSTOM PROPERTIES (Design Tokens)
============================================ */
:root {
/* Typography */
--font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
/* Spacing */
--space-xs: 0.25rem;
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 1.5rem;
--space-xl: 2rem;
--space-2xl: 3rem;
--space-3xl: 4rem;
--space-4xl: 6rem;
--space-5xl: 8rem;
/* Borders */
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--radius-xl: 20px;
--radius-full: 9999px;
/* Transitions */
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
--duration-fast: 0.15s;
--duration-normal: 0.3s;
--duration-slow: 0.5s;
--duration-theme: 0.5s;
/* Layout */
--container-max: 1200px;
--navbar-height: 72px;
}
/* ============================================
THEME: DARK (default)
============================================ */
[data-theme="dark"] {
--bg-primary: #0a0a0f;
--bg-secondary: #12121a;
--bg-tertiary: #1a1a26;
--bg-card: #14141e;
--bg-card-hover: #1a1a28;
--text-primary: #f1f1f4;
--text-secondary: #8b8b9e;
--text-tertiary: #5a5a70;
--accent: #6366f1;
--accent-hover: #818cf8;
--accent-subtle: rgba(99, 102, 241, 0.1);
--accent-glow: rgba(99, 102, 241, 0.15);
--accent-warm: #f59e0b;
--accent-warm-subtle: rgba(245, 158, 11, 0.1);
--accent-green: #22c55e;
--accent-green-subtle: rgba(34, 197, 94, 0.1);
--border: rgba(255, 255, 255, 0.06);
--border-hover: rgba(255, 255, 255, 0.12);
--border-accent: rgba(99, 102, 241, 0.3);
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
--shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
--shadow-glow: 0 0 30px rgba(99, 102, 241, 0.08);
--navbar-bg: rgba(10, 10, 15, 0.85);
--hero-gradient: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}
/* ============================================
THEME: LIGHT
============================================ */
[data-theme="light"] {
--bg-primary: #fafaf9;
--bg-secondary: #ffffff;
--bg-tertiary: #f3f3f2;
--bg-card: #ffffff;
--bg-card-hover: #f8f8f7;
--text-primary: #1a1a2e;
--text-secondary: #6b7280;
--text-tertiary: #9ca3af;
--accent: #4f46e5;
--accent-hover: #6366f1;
--accent-subtle: rgba(79, 70, 229, 0.06);
--accent-glow: rgba(79, 70, 229, 0.1);
--accent-warm: #d97706;
--accent-warm-subtle: rgba(217, 119, 6, 0.08);
--accent-green: #16a34a;
--accent-green-subtle: rgba(22, 163, 74, 0.08);
--border: rgba(0, 0, 0, 0.06);
--border-hover: rgba(0, 0, 0, 0.12);
--border-accent: rgba(79, 70, 229, 0.25);
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
--shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
--shadow-glow: 0 0 30px rgba(79, 70, 229, 0.06);
--navbar-bg: rgba(250, 250, 249, 0.85);
--hero-gradient: radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.05) 0%, transparent 60%);
}
/* ============================================
THEME TRANSITION
============================================ */
html,
html *,
html *::before,
html *::after {
transition:
background-color var(--duration-theme) ease-in-out,
border-color var(--duration-theme) ease-in-out,
color var(--duration-theme) ease-in-out,
box-shadow var(--duration-theme) ease-in-out,
fill var(--duration-theme) ease-in-out,
stroke var(--duration-theme) ease-in-out;
}
/* Désactive les transitions au chargement initial pour éviter le flash */
.no-transition,
.no-transition *,
.no-transition *::before,
.no-transition *::after {
transition: none !important;
}
/* ============================================
RESET & BASE
============================================ */
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
/* scroll-behavior géré en JS (lerp) sur desktop, smooth natif sur mobile */
scroll-padding-top: var(--navbar-height);
-webkit-text-size-adjust: 100%;
}
html {
overflow-x: hidden;
}
body {
font-family: var(--font-main);
font-size: 1rem;
line-height: 1.7;
color: var(--text-primary);
background-color: var(--bg-primary);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
}
img {
max-width: 100%;
height: auto;
display: block;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
a {
color: var(--accent);
text-decoration: none;
transition: color var(--duration-fast) var(--ease-out);
}
a:hover {
color: var(--accent-hover);
}
::selection {
background-color: var(--accent);
color: #fff;
}
/* ============================================
CONTAINER
============================================ */
.container {
width: 100%;
max-width: var(--container-max);
margin: 0 auto;
padding: 0 var(--space-xl);
}
@media (max-width: 768px) {
.container {
padding: 0 var(--space-lg);
}
}
/* ============================================
SCROLL PROGRESS BAR
============================================ */
.scroll-progress {
position: fixed;
top: 0;
left: 0;
width: 0;
height: 3px;
background: linear-gradient(90deg, var(--accent), var(--accent-hover));
z-index: 10001;
transition: none;
}
/* ============================================
NAVBAR
============================================ */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--navbar-height);
background: var(--navbar-bg);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
z-index: 10000;
display: flex;
align-items: center;
}
.navbar__container {
width: 100%;
max-width: var(--container-max);
margin: 0 auto;
padding: 0 var(--space-xl);
display: flex;
align-items: center;
justify-content: space-between;
}
.navbar__logo {
text-decoration: none;
color: var(--text-primary);
}
.navbar__logo-text {
font-size: 1.35rem;
font-weight: 800;
letter-spacing: -0.03em;
}
.navbar__logo-accent {
color: var(--accent);
}
.navbar__menu {
list-style: none;
display: flex;
gap: var(--space-sm);
align-items: center;
}
.navbar__link {
color: var(--text-secondary);
font-size: 0.875rem;
font-weight: 500;
padding: var(--space-sm) var(--space-md);
border-radius: var(--radius-sm);
transition: color var(--duration-fast) var(--ease-out),
background-color var(--duration-fast) var(--ease-out);
text-decoration: none;
}
.navbar__link:hover {
color: var(--text-primary);
background-color: var(--accent-subtle);
}
.navbar__link--cta {
color: #fff;
background-color: var(--accent);
padding: var(--space-sm) var(--space-lg);
border-radius: var(--radius-full);
font-weight: 600;
}
.navbar__link--cta:hover {
color: #fff;
background-color: var(--accent-hover);
}
.navbar__actions {
display: flex;
align-items: center;
gap: var(--space-md);
}
/* ============================================
THEME SWITCH
============================================ */
.theme-switch {
position: relative;
width: 44px;
height: 44px;
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: var(--bg-secondary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-secondary);
transition: border-color var(--duration-fast) var(--ease-out),
color var(--duration-fast) var(--ease-out),
transform var(--duration-fast) var(--ease-out);
}
.theme-switch:hover {
border-color: var(--border-hover);
color: var(--accent);
transform: scale(1.05);
}
.theme-switch:active {
transform: scale(0.95);
}
.theme-switch__icon {
position: absolute;
transition: opacity var(--duration-normal) var(--ease-out),
transform var(--duration-normal) var(--ease-out);
display: flex;
align-items: center;
justify-content: center;
}
/* Dark mode: show sun, hide moon */
[data-theme="dark"] .theme-switch__icon--sun {
opacity: 1;
transform: rotate(0deg) scale(1);
}
[data-theme="dark"] .theme-switch__icon--moon {
opacity: 0;
transform: rotate(-90deg) scale(0.5);
}
/* Light mode: show moon, hide sun */
[data-theme="light"] .theme-switch__icon--sun {
opacity: 0;
transform: rotate(90deg) scale(0.5);
}
[data-theme="light"] .theme-switch__icon--moon {
opacity: 1;
transform: rotate(0deg) scale(1);
}
/* ============================================
BURGER MENU (Mobile)
============================================ */
.navbar__burger {
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
width: 44px;
height: 44px;
background: none;
border: 1px solid var(--border);
border-radius: var(--radius-md);
cursor: pointer;
gap: 5px;
padding: 0;
}
.navbar__burger-line {
display: block;
width: 20px;
height: 2px;
background-color: var(--text-primary);
border-radius: 2px;
transition: transform var(--duration-normal) var(--ease-out),
opacity var(--duration-normal) var(--ease-out);
}
.navbar__burger[aria-expanded="true"] .navbar__burger-line:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}
.navbar__burger[aria-expanded="true"] .navbar__burger-line:nth-child(2) {
opacity: 0;
}
.navbar__burger[aria-expanded="true"] .navbar__burger-line:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 900px) {
/* Supprimer backdrop-filter sur mobile : il crée un containing block
qui empêche les enfants position:fixed de se positionner par rapport
à la viewport. On met un fond solide à la place. */
.navbar {
backdrop-filter: none;
-webkit-backdrop-filter: none;
background: var(--bg-primary);
border-bottom-color: var(--border);
}
.navbar__burger {
display: flex;
}
.navbar__menu {
position: fixed;
top: var(--navbar-height);
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
background: var(--bg-primary);
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-lg);
opacity: 0;
visibility: hidden;
transform: translateY(-8px);
transition: opacity var(--duration-normal) var(--ease-out),
visibility var(--duration-normal) var(--ease-out),
transform var(--duration-normal) var(--ease-out);
}
.navbar__menu.is-open {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.navbar__link {
font-size: 1.25rem;
padding: var(--space-md) var(--space-xl);
}
/* Le bouton Contact dans le menu mobile reprend un style simple */
.navbar__link--cta {
margin-top: var(--space-sm);
padding: var(--space-sm) var(--space-2xl);
}
}
/* ============================================
BUTTONS
============================================ */
.btn {
display: inline-flex;
align-items: center;
gap: var(--space-sm);
font-family: var(--font-main);
font-weight: 600;
font-size: 0.9375rem;
padding: 0.75rem 1.5rem;
border-radius: var(--radius-md);
border: none;
cursor: pointer;
text-decoration: none;
transition: transform var(--duration-fast) var(--ease-out),
box-shadow var(--duration-fast) var(--ease-out),
background-color var(--duration-fast) var(--ease-out),
border-color var(--duration-fast) var(--ease-out);
white-space: nowrap;
}
.btn:active {
transform: scale(0.98);
}
.btn--primary {
background-color: var(--accent);
color: #fff;
box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
background-color: var(--accent-hover);
color: #fff;
box-shadow: var(--shadow-md), var(--shadow-glow);
transform: translateY(-1px);
}
.btn--outline {
background: transparent;
color: var(--accent);
border: 1.5px solid var(--border-accent);
}
.btn--outline:hover {
background-color: var(--accent-subtle);
color: var(--accent-hover);
border-color: var(--accent-hover);
transform: translateY(-1px);
}
.btn--lg {
padding: 0.875rem 2rem;
font-size: 1rem;
}
/* ============================================
TAGS
============================================ */
.tag {
display: inline-block;
padding: 0.25rem 0.75rem;
font-family: var(--font-mono);
font-size: 0.8125rem;
font-weight: 500;
color: var(--accent);
background-color: var(--accent-subtle);
border: 1px solid var(--border-accent);
border-radius: var(--radius-full);
white-space: nowrap;
}
.tag--sm {
padding: 0.15rem 0.55rem;
font-size: 0.75rem;
}
/* ============================================
SECTION SYSTEM
============================================ */
.section {
padding: 4.5rem 0;
position: relative;
}
@media (max-width: 768px) {
.section {
padding: 3rem 0;
}
}
.section__header {
display: flex;
align-items: center;
gap: var(--space-md);
margin-bottom: var(--space-lg);
}
.section__number {
font-family: var(--font-mono);
font-size: 0.8125rem;
font-weight: 500;
color: var(--accent);
opacity: 0.5;
}
.section__label {
font-family: var(--font-mono);
font-size: 0.8125rem;
font-weight: 500;
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.section__title {
font-size: clamp(1.75rem, 4vw, 2.5rem);
font-weight: 800;
letter-spacing: -0.03em;
line-height: 1.2;
color: var(--text-primary);
margin-bottom: var(--space-md);
}
.section__intro {
font-size: 1.0625rem;
color: var(--text-secondary);
max-width: 100%;
margin-bottom: var(--space-3xl);
}
/* ============================================
HERO
============================================ */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
padding-top: var(--navbar-height);
}
.hero__grid-bg {
position: absolute;
inset: 0;
background-image:
linear-gradient(var(--border) 1px, transparent 1px),
linear-gradient(90deg, var(--border) 1px, transparent 1px);
background-size: 60px 60px;
opacity: 0.4;
mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
-webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}
.hero__grain {
position: absolute;
inset: 0;
background: var(--hero-gradient);
pointer-events: none;
}
/* Layout hero 2 colonnes */
.hero__inner {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-4xl);
align-items: center;
width: 100%;
padding: var(--space-4xl) 0;
}
.hero__content {
min-width: 0;
}
/* ============================================
HERO VISUAL — Code card
============================================ */
.hero__visual {
position: relative;
transform: translateY(100px);
animation: hero-fade-in 0.8s var(--ease-out) 0.5s both;
}
/* Carte éditeur */
.hero__code-card {
background-color: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-lg);
position: relative;
z-index: 1;
}
.hero__code-header {
display: flex;
align-items: center;
gap: 6px;
padding: 0.85rem 1.25rem;
background-color: var(--bg-tertiary);
border-bottom: 1px solid var(--border);
}
.hero__code-dot {
width: 12px;
height: 12px;
border-radius: 50%;
flex-shrink: 0;
}
.hero__code-dot--red { background-color: #ff5f57; }
.hero__code-dot--yellow { background-color: #ffbd2e; }
.hero__code-dot--green { background-color: #28ca41; }
.hero__code-filename {
margin-left: var(--space-md);
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--text-tertiary);
font-weight: 500;
}
.hero__code-body {
padding: 1.5rem 1.75rem;
overflow-x: auto;
}
.hero__code-pre {
margin: 0;
font-family: var(--font-mono);
font-size: 0.8125rem;
line-height: 1.85;
white-space: pre;
color: var(--text-primary);
}
/* Syntax tokens */
.tok-tag { color: var(--accent); font-weight: 500; }
.tok-keyword { color: #c678dd; }
.tok-class { color: #e5c07b; }
.tok-fn { color: #61afef; }
.tok-var { color: #e06c75; }
.tok-string { color: var(--accent-green); }
.tok-comment { color: var(--text-tertiary); font-style: italic; }
.tok-punct { color: var(--text-secondary); }
[data-theme="light"] .tok-keyword { color: #7c3aed; }
[data-theme="light"] .tok-class { color: #b45309; }
[data-theme="light"] .tok-fn { color: #1d4ed8; }
[data-theme="light"] .tok-var { color: #dc2626; }
/* Badges flottants */
.hero__stat {
position: absolute;
display: flex;
align-items: center;
gap: var(--space-md);
padding: 0.75rem 1.1rem;
background-color: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-md);
z-index: 2;
white-space: nowrap;
animation: hero-float 4s ease-in-out infinite;
}
.hero__stat--response {
bottom: -1.5rem;
left: -1.5rem;
animation-delay: 0s;
}
.hero__stat--codebzh {
top: -1.25rem;
right: -1.25rem;
animation-delay: 2s;
}
@keyframes hero-float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-6px); }
}
.hero__stat-icon {
font-size: 1.125rem;
line-height: 1;
}
.hero__stat-value {
display: block;
font-size: 0.9375rem;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.02em;
}
.hero__stat-label {
display: block;
font-size: 0.6875rem;
color: var(--text-tertiary);
font-weight: 500;
}
/* Responsive : masquer le visuel sous 960px */
@media (max-width: 960px) {
.hero__inner {
grid-template-columns: 1fr;
padding-bottom: var(--space-2xl);
}
.hero__visual {
display: none;
}
}
.hero__badge {
display: inline-flex;
align-items: center;
gap: var(--space-sm);
padding: 0.4rem 1rem;
font-size: 0.8125rem;
font-weight: 500;
color: var(--accent-green);
background-color: var(--accent-green-subtle);
border: 1px solid rgba(34, 197, 94, 0.2);
border-radius: var(--radius-full);
margin-bottom: var(--space-xl);
animation: hero-fade-in 0.8s var(--ease-out) 0.2s both;
}
.hero__badge-dot {
width: 8px;
height: 8px;
background-color: var(--accent-green);
border-radius: 50%;
animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(0.8); }
}
.hero__title {
font-size: clamp(2.25rem, 6vw, 3.75rem);
font-weight: 800;
letter-spacing: -0.04em;
line-height: 1.1;
margin-bottom: var(--space-xl);
animation: hero-fade-in 0.8s var(--ease-out) 0.4s both;
}
.hero__title-accent {
color: var(--accent);
}
.hero__subtitle {
font-size: 1.125rem;
line-height: 1.7;
color: var(--text-secondary);
max-width: 580px;
margin-bottom: var(--space-2xl);
animation: hero-fade-in 0.8s var(--ease-out) 0.6s both;
}
.hero__actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-md);
margin-bottom: var(--space-3xl);
animation: hero-fade-in 0.8s var(--ease-out) 0.8s both;
}
.hero__stack {
display: flex;
align-items: center;
gap: var(--space-md);
flex-wrap: wrap;
animation: hero-fade-in 0.8s var(--ease-out) 1s both;
}
.hero__stack-label {
font-size: 0.8125rem;
color: var(--text-tertiary);
font-weight: 500;
}
.hero__stack-tags {
display: flex;
flex-wrap: wrap;
gap: var(--space-sm);
}
@keyframes hero-fade-in {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hero__scroll {
position: absolute;
bottom: 2rem;
left: 50%;
transform: translateX(-50%);
animation: hero-fade-in 0.8s var(--ease-out) 1.2s both;
}
.hero__scroll-line {
display: block;
width: 1px;
height: 40px;
background: linear-gradient(to bottom, var(--accent), transparent);
animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}
/* ============================================
ABOUT
============================================ */
.about__grid {
display: grid;
grid-template-columns: 340px 1fr;
gap: var(--space-4xl);
align-items: stretch;
}
@media (max-width: 900px) {
.about__grid {
grid-template-columns: 1fr;
gap: var(--space-2xl);
}
}
.about__photo-wrapper {
position: relative;
display: flex;
flex-direction: column;
align-self: stretch;
height: 100%;
}
.about__photo-wrapper .timeline--compact {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-evenly;
margin-top: var(--space-2xl);
}
.about__photo-wrapper .timeline--compact .timeline__item {
padding-bottom: 0;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
.about__photo-frame {
position: relative;
border-radius: var(--radius-lg);
overflow: hidden;
aspect-ratio: 4 / 4.85;
background-color: var(--bg-tertiary);
}
@media (min-width: 901px) {
.about__photo-frame {
margin-top: var(--space-md);
}
}
.about__photo-frame::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: 50%;
bottom: 50%;
border: 2px solid var(--accent);
border-radius: var(--radius-lg) 0 0 0;
border-right: none;
border-bottom: none;
z-index: 1;
pointer-events: none;
}
.about__photo-frame::after {
content: '';
position: absolute;
bottom: -2px;
right: -2px;
left: 50%;
top: 50%;
border: 2px solid var(--accent);
border-radius: 0 0 var(--radius-lg) 0;
border-left: none;
border-top: none;
z-index: 1;
pointer-events: none;
}
.about__photo {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center top;
}
.about__content {
padding-top: var(--space-md);
}
.about__text {
font-size: 1.0625rem;
color: var(--text-secondary);
margin-bottom: var(--space-lg);
line-height: 1.8;
}
.about__highlights {
display: flex;
flex-direction: column;
gap: var(--space-md);
margin-top: var(--space-xl);
}
.about__highlight {
display: flex;
align-items: center;
gap: var(--space-md);
font-size: 0.9375rem;
font-weight: 500;
color: var(--text-primary);
}
.about__highlight-icon {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
background-color: var(--accent-subtle);
color: var(--accent);
flex-shrink: 0;
}
/* ============================================
SKILLS
============================================ */
.skills__grid {
display: flex;
flex-direction: column;
gap: var(--space-3xl);
}
.skills__category-title {
margin-bottom: var(--space-xl);
}
.skills__category-badge {
display: inline-block;
font-family: var(--font-mono);
font-size: 0.8125rem;
font-weight: 500;
padding: 0.3rem 0.85rem;
border-radius: var(--radius-full);
}
.skills__category-badge--expert {
color: var(--accent);
background-color: var(--accent-subtle);
border: 1px solid var(--border-accent);
}
.skills__category-badge--solid {
color: var(--accent-warm);
background-color: var(--accent-warm-subtle);
border: 1px solid rgba(245, 158, 11, 0.2);
}
.skills__cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: var(--space-lg);
}
.skill-card {
background-color: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: var(--space-xl);
transition: transform var(--duration-normal) var(--ease-out),
box-shadow var(--duration-normal) var(--ease-out),
border-color var(--duration-normal) var(--ease-out);
}
.skill-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-md), var(--shadow-glow);
border-color: var(--border-accent);
}
.skill-card__icon {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-md);
background-color: var(--accent-subtle);
color: var(--accent);
margin-bottom: var(--space-lg);
}
.skill-card__name {
font-size: 1.125rem;
font-weight: 700;
letter-spacing: -0.01em;
margin-bottom: var(--space-sm);
}
.skill-card__desc {
font-size: 0.875rem;
color: var(--text-secondary);
line-height: 1.6;
}
/* Skills tools */
.skills__tools {
margin-top: var(--space-3xl);
padding: var(--space-2xl);
background-color: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
}
.skills__tools-title {
font-size: 1rem;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: var(--space-lg);
}
.skills__tools-list {
display: flex;
flex-wrap: wrap;
gap: var(--space-sm);
}
.tool-chip {
display: inline-flex;
align-items: center;
gap: 0.45rem;
padding: 0.35rem 0.85rem;
font-size: 0.8125rem;
font-weight: 500;
color: var(--text-secondary);
background-color: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: var(--radius-full);
transition: color var(--duration-fast) var(--ease-out),
border-color var(--duration-fast) var(--ease-out);
}
.tool-chip:hover {
color: var(--text-primary);
border-color: var(--border-hover);
}
.tool-chip__icon {
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--accent-subtle);
color: var(--accent);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
/* ============================================
PROJECTS
============================================ */
.projects__grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-lg);
}
@media (max-width: 1024px) {
.projects__grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 640px) {
.projects__grid {
grid-template-columns: 1fr;
}
}
.project-card {
background-color: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
overflow: hidden;
transition: transform var(--duration-normal) var(--ease-out),
box-shadow var(--duration-normal) var(--ease-out),
border-color var(--duration-normal) var(--ease-out);
}
.project-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-md), var(--shadow-glow);
border-color: var(--border-accent);
}
.project-card__image {
position: relative;
aspect-ratio: 16 / 9;
background-color: var(--bg-tertiary);
overflow: hidden;
}
.project-card__image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform var(--duration-slow) var(--ease-out);
}
.project-card:hover .project-card__image img {
transform: scale(1.04);
}
.project-card__image--placeholder {
display: flex;
align-items: center;
justify-content: center;
}
.project-card__badge {
position: absolute;
top: var(--space-sm);
left: var(--space-sm);
padding: 0.2rem 0.6rem;
font-size: 0.7rem;
font-weight: 600;
border-radius: var(--radius-full);
z-index: 1;
}
.badge--production {
background-color: var(--accent-green);
color: #fff;
}
.badge--development {
background-color: var(--accent-warm);
color: #fff;
}
.project-card__body {
padding: var(--space-md) var(--space-lg);
}
.project-card__title {
font-size: 0.9375rem;
font-weight: 700;
margin-bottom: var(--space-xs);
}
.project-card__desc {
font-size: 0.8125rem;
color: var(--text-secondary);
line-height: 1.55;
margin-bottom: var(--space-md);
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.project-card__techs {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
margin-bottom: var(--space-md);
}
.project-card__link {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
font-size: 0.8125rem;
font-weight: 600;
color: var(--accent);
}
.project-card__link:hover {
color: var(--accent-hover);
}
/* ============================================
SERVICES
============================================ */
.services__grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-lg);
}
.services__cta {
margin-top: var(--space-3xl);
text-align: center;
}
@media (max-width: 900px) {
.services__grid {
grid-template-columns: repeat(2, 1fr);
}
.services__cta .btn {
white-space: normal;
text-align: center;
}
}
@media (max-width: 600px) {
.services__grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 600px) {
.services__grid {
grid-template-columns: 1fr;
}
}
.service-card {
background-color: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: var(--space-2xl);
transition: transform var(--duration-normal) var(--ease-out),
box-shadow var(--duration-normal) var(--ease-out),
border-color var(--duration-normal) var(--ease-out);
}
.service-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-md), var(--shadow-glow);
border-color: var(--border-accent);
}
.service-card__icon {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-md);
background-color: var(--accent-subtle);
color: var(--accent);
margin-bottom: var(--space-lg);
}
.service-card__title {
font-size: 1.0625rem;
font-weight: 700;
margin-bottom: var(--space-sm);
letter-spacing: -0.01em;
}
.service-card__desc {
font-size: 0.875rem;
color: var(--text-secondary);
line-height: 1.7;
}
/* ============================================
JOURNEY / TIMELINE
============================================ */
.timeline {
position: relative;
padding-left: var(--space-3xl);
max-width: 700px;
}
.timeline--compact {
margin-top: var(--space-2xl);
padding-left: var(--space-xl);
max-width: 100%;
}
.timeline--compact .timeline__item {
padding-bottom: var(--space-lg);
}
.timeline--compact .timeline__marker {
left: calc(-1 * var(--space-xl) + 1px);
}
.timeline--compact .timeline__title {
font-size: 0.9rem;
font-weight: 600;
margin-bottom: 0;
}
.timeline::before {
content: '';
position: absolute;
left: 7px;
top: 8px;
bottom: 8px;
width: 2px;
background: linear-gradient(to bottom, var(--accent), var(--border));
border-radius: 2px;
}
.timeline__item {
position: relative;
padding-bottom: var(--space-3xl);
}
.timeline__item:last-child {
padding-bottom: 0;
}
.timeline__marker {
position: absolute;
left: calc(-1 * var(--space-3xl) + 1px);
top: 6px;
width: 14px;
height: 14px;
border-radius: 50%;
background-color: var(--accent);
border: 3px solid var(--bg-primary);
box-shadow: 0 0 0 2px var(--accent);
}
.timeline__date {
font-family: var(--font-mono);
font-size: 0.8125rem;
font-weight: 500;
color: var(--accent);
margin-bottom: var(--space-xs);
display: block;
}
.timeline__title {
font-size: 1.125rem;
font-weight: 700;
margin-bottom: var(--space-sm);
}
.timeline__desc {
font-size: 0.9375rem;
color: var(--text-secondary);
line-height: 1.7;
}
/* ============================================
CONTACT
============================================ */
.contact__grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-3xl);
align-items: start;
}
@media (max-width: 900px) {
.contact__grid {
grid-template-columns: 1fr;
gap: var(--space-2xl);
}
}
.contact__info-card {
background-color: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: var(--space-2xl);
}
.contact__info-title {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: var(--space-md);
}
.contact__info-text {
font-size: 0.9375rem;
color: var(--text-secondary);
line-height: 1.7;
margin-bottom: var(--space-xl);
}
.contact__email {
display: flex;
align-items: center;
gap: var(--space-md);
padding: var(--space-md) var(--space-lg);
background-color: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-md);
margin-top: var(--space-2xl);
margin-bottom: var(--space-md);
color: var(--text-primary);
text-decoration: none;
transition: border-color var(--duration-fast) var(--ease-out);
}
.contact__email:hover {
border-color: var(--border-accent);
}
.contact__email-icon {
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
background-color: var(--accent-subtle);
border-radius: var(--radius-md);
color: var(--accent);
flex-shrink: 0;
}
.contact__email-link {
font-weight: 600;
font-size: 0.9375rem;
color: var(--accent);
word-break: break-all;
}
.contact__process {
margin-top: var(--space-xl);
padding-top: var(--space-xl);
border-top: 1px solid var(--border);
}
.contact__process-title {
font-size: 0.8125rem;
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.06em;
margin-bottom: var(--space-md);
}
.contact__process-list {
list-style: none;
counter-reset: process-counter;
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.contact__process-list li {
counter-increment: process-counter;
display: flex;
align-items: center;
gap: var(--space-md);
font-size: 0.9375rem;
color: var(--text-primary);
}
.contact__process-list li::before {
content: counter(process-counter);
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
min-width: 28px;
border-radius: 50%;
background-color: var(--accent-subtle);
color: var(--accent);
font-family: var(--font-mono);
font-size: 0.75rem;
font-weight: 600;
border: 1px solid var(--border-accent);
}
.contact__response {
display: flex;
align-items: center;
gap: var(--space-sm);
font-size: 0.8125rem;
color: var(--text-tertiary);
font-weight: 500;
}
.contact__response-icon {
display: flex;
align-items: center;
flex-shrink: 0;
}
/* ============================================
FORM
============================================ */
.contact__form {
display: flex;
flex-direction: column;
gap: var(--space-lg);
}
.form__honeypot {
position: absolute;
left: -9999px;
opacity: 0;
height: 0;
width: 0;
overflow: hidden;
pointer-events: none;
}
.form__group {
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.form__label {
font-size: 0.875rem;
font-weight: 600;
color: var(--text-primary);
}
.form__optional {
font-weight: 400;
color: var(--text-tertiary);
}
.form__input {
font-family: var(--font-main);
font-size: 0.9375rem;
padding: 0.75rem 1rem;
background-color: var(--bg-card);
border: 1.5px solid var(--border);
border-radius: var(--radius-md);
color: var(--text-primary);
transition: border-color var(--duration-fast) var(--ease-out),
box-shadow var(--duration-fast) var(--ease-out);
outline: none;
}
.form__input::placeholder {
color: var(--text-tertiary);
}
.form__input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form__input:invalid:not(:placeholder-shown) {
border-color: #ef4444;
}
.form__textarea {
resize: vertical;
min-height: 120px;
}
.form__submit {
align-self: flex-start;
}
/* CAPTCHA */
.form__group--captcha .form__label {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: var(--space-sm);
}
.form__captcha-question {
display: inline-flex;
align-items: center;
gap: 0.35rem;
font-family: var(--font-mono, 'JetBrains Mono', monospace);
font-size: 0.875rem;
font-weight: 700;
color: var(--accent);
background: var(--accent-subtle);
border: 1px solid var(--border-accent);
border-radius: var(--radius-md);
padding: 0.25rem 0.75rem;
letter-spacing: 0.02em;
}
.form__input--captcha {
max-width: 140px;
}
/* Enlever les flèches number input */
.form__input--captcha::-webkit-outer-spin-button,
.form__input--captcha::-webkit-inner-spin-button {
-webkit-appearance: none;
appearance: none;
margin: 0;
}
.form__input--captcha[type=number] {
-moz-appearance: textfield;
appearance: textfield;
}
.form__submit-loader {
display: none;
animation: spin 1s linear infinite;
}
.form__submit.is-loading .form__submit-text {
opacity: 0.6;
}
.form__submit.is-loading .form__submit-loader {
display: inline-flex;
}
/* reCAPTCHA v3 : badge masque (evite le chevauchement avec le bouton reglages).
La mention legale ci-dessous remplace le badge, comme l'exige Google. */
.grecaptcha-badge {
visibility: hidden;
}
.form__recaptcha-note {
margin-top: var(--space-sm);
font-size: 0.75rem;
line-height: 1.5;
color: var(--text-muted, #6b7280);
}
.form__recaptcha-note a {
color: inherit;
text-decoration: underline;
}
.form__recaptcha-note a:hover {
color: var(--accent);
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* ============================================
FOOTER
============================================ */
.footer {
padding: var(--space-3xl) 0;
border-top: 1px solid var(--border);
background-color: var(--bg-secondary);
}
.footer__inner {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-lg);
text-align: center;
}
.footer__logo {
font-size: 1.25rem;
font-weight: 800;
color: var(--text-primary);
letter-spacing: -0.03em;
}
.footer__tagline {
font-size: 0.8125rem;
color: var(--text-tertiary);
margin-top: var(--space-xs);
}
.footer__tagline--sub {
font-size: 0.75rem;
color: var(--text-tertiary);
margin-top: var(--space-xs);
}
/* ── Lien BackOffice dans la navbar (admin connecté) ─────── */
.navbar__admin-link {
display: inline-flex;
align-items: center;
gap: 0.35rem;
font-size: 0.8125rem;
font-weight: 700;
color: var(--accent);
background-color: var(--accent-subtle);
border: 1px solid var(--border-accent);
border-radius: var(--radius-full);
padding: 0.4rem 0.9rem;
text-decoration: none;
transition: background-color var(--duration-fast) var(--ease-out),
color var(--duration-fast) var(--ease-out);
letter-spacing: -0.01em;
white-space: nowrap;
}
.navbar__admin-link:hover {
background-color: var(--accent);
color: #fff;
}
@media (max-width: 900px) {
.navbar__admin-link {
display: none;
}
}
@media (max-width: 480px) {
.navbar__admin-link span { display: none; }
}
.footer__links {
display: flex;
gap: var(--space-lg);
flex-wrap: wrap;
justify-content: center;
}
.footer__links a {
font-size: 0.875rem;
color: var(--text-secondary);
text-decoration: none;
transition: color var(--duration-fast) var(--ease-out);
}
.footer__links a:hover {
color: var(--accent);
}
.footer__copy {
font-size: 0.8125rem;
color: var(--text-tertiary);
}
/* ============================================
TOAST NOTIFICATION
============================================ */
.toast {
position: fixed;
bottom: 2rem;
right: 2rem;
display: flex;
align-items: center;
gap: var(--space-md);
padding: var(--space-md) var(--space-xl);
background-color: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
font-size: 0.875rem;
font-weight: 500;
color: var(--text-primary);
z-index: 20000;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: opacity var(--duration-normal) var(--ease-out),
visibility var(--duration-normal) var(--ease-out),
transform var(--duration-normal) var(--ease-out);
}
.toast.is-visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.toast.toast--success {
border-color: var(--accent-green);
}
.toast.toast--error {
border-color: #ef4444;
}
.toast__close {
background: none;
border: none;
color: var(--text-tertiary);
cursor: pointer;
font-size: 1.25rem;
padding: 0;
line-height: 1;
}
/* ============================================
TERMINAL SECRET — KONAMI CODE
============================================ */
.retro-terminal {
position: fixed;
inset: 0;
z-index: 30000;
display: flex;
align-items: center;
justify-content: center;
padding: 1.5rem;
background: rgba(0, 0, 0, 0.78);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.2s ease, visibility 0.2s ease;
}
.retro-terminal.is-open {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
.retro-terminal__window {
width: min(720px, 100%);
max-height: min(620px, 90vh);
display: flex;
flex-direction: column;
overflow: hidden;
border: 1px solid #1f8f4d;
border-radius: 8px;
background: #050805;
box-shadow: 0 0 0 1px rgba(44, 255, 112, 0.12), 0 24px 80px rgba(0, 0, 0, 0.7);
color: #42f477;
font-family: var(--font-mono);
font-size: 0.85rem;
}
.retro-terminal__header {
display: flex;
align-items: center;
gap: 0.75rem;
min-height: 42px;
padding: 0.65rem 0.85rem;
background: #0c160e;
border-bottom: 1px solid #164e2b;
}
.retro-terminal__lights {
display: flex;
gap: 0.4rem;
}
.retro-terminal__light {
width: 10px;
height: 10px;
border-radius: 50%;
}
.retro-terminal__light--red { background: #ff5f57; }
.retro-terminal__light--yellow { background: #ffbd2e; }
.retro-terminal__light--green { background: #28ca41; }
.retro-terminal__title {
flex: 1;
color: #9be8ae;
font-size: 0.75rem;
text-align: center;
}
.retro-terminal__close {
width: 26px;
height: 26px;
padding: 0;
border: 1px solid #1f8f4d;
border-radius: 4px;
background: transparent;
color: #42f477;
cursor: pointer;
font: inherit;
line-height: 1;
}
.retro-terminal__close:hover,
.retro-terminal__close:focus-visible {
background: #123b20;
}
.retro-terminal__body {
min-height: 260px;
max-height: 55vh;
padding: 1.25rem;
overflow-y: auto;
line-height: 1.65;
text-shadow: 0 0 8px rgba(66, 244, 119, 0.45);
}
.retro-terminal__body p {
margin: 0 0 0.25rem;
}
.retro-terminal__command {
display: grid;
grid-template-columns: 8.5rem minmax(0, 1fr);
gap: 1rem;
}
.retro-terminal__command-name {
color: #b5ffc5;
}
.retro-terminal__command-description {
min-width: 0;
}
.retro-terminal__body strong {
color: #b5ffc5;
}
.retro-terminal__prompt {
position: relative;
z-index: 1;
display: flex;
align-items: center;
gap: 0.65rem;
padding: 0 1.25rem 1.25rem;
color: #b5ffc5;
}
.retro-terminal__prompt input {
flex: 1;
min-width: 0;
position: relative;
z-index: 2;
padding: 0;
border: 0;
outline: 0;
background: transparent;
color: #42f477;
font: inherit;
caret-color: #42f477;
cursor: text;
pointer-events: auto;
text-shadow: 0 0 8px rgba(66, 244, 119, 0.45);
}
@media (max-width: 640px) {
.retro-terminal {
padding: 0.75rem;
}
.retro-terminal__window {
max-height: 92vh;
}
.retro-terminal__body {
min-height: 220px;
max-height: 65vh;
padding: 1rem;
font-size: 0.75rem;
}
.retro-terminal__command {
grid-template-columns: 6rem minmax(0, 1fr);
gap: 0.5rem;
}
.retro-terminal__prompt {
align-items: flex-start;
flex-direction: column;
gap: 0.35rem;
padding: 0 1rem 1rem;
}
.retro-terminal__prompt input {
width: 100%;
}
}
/* ============================================
REVEAL ANIMATIONS
============================================ */
/* Masquage initial seulement si JS est actif (sinon le contenu resterait invisible) */
.js .reveal {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s var(--ease-out),
transform 0.6s var(--ease-out);
}
.reveal.is-visible {
opacity: 1;
transform: translateY(0);
}
/* ============================================
UTILITY: hidden nav project link when no projects
============================================ */
.nav-projects-hidden {
display: none !important;
}
/* ============================================
RESPONSIVE FINE-TUNING
============================================ */
@media (max-width: 480px) {
.hero__title {
font-size: 1.85rem;
}
.hero__actions {
flex-direction: column;
}
.hero__actions .btn {
width: 100%;
justify-content: center;
}
.hero__stack {
flex-direction: column;
align-items: flex-start;
}
.section__title {
font-size: 1.5rem;
}
}
/* ============================================
RESPONSIVE PASS — MOBILE & TABLETTE
============================================ */
@media (max-width: 900px) {
.container,
.navbar__container {
padding-left: 1.25rem;
padding-right: 1.25rem;
}
.hero {
min-height: auto;
}
.hero__inner {
padding-top: 5rem;
padding-bottom: 4rem;
}
.hero__title {
max-width: 720px;
}
.about__photo-frame {
margin-top: 0;
width: min(100%, 400px);
margin-left: auto;
margin-right: auto;
}
.about__photo-wrapper .timeline--compact {
margin-top: 2rem;
}
.skills__tools,
.service-card,
.contact__info-card {
padding: var(--space-xl);
}
}
@media (max-width: 640px) {
.container,
.navbar__container {
padding-left: 1rem;
padding-right: 1rem;
}
.section {
padding: 2.75rem 0;
}
.section__header {
margin-bottom: 1.25rem;
}
.section__title {
line-height: 1.25;
}
.section__intro {
margin-bottom: 2.25rem;
}
.hero__inner {
padding-top: 4rem;
padding-bottom: 3rem;
}
.hero__scroll {
display: none;
}
.hero__badge {
max-width: 100%;
margin-bottom: 1.5rem;
white-space: normal;
}
.hero__title {
margin-bottom: 1.5rem;
}
.hero__subtitle {
font-size: 1rem;
margin-bottom: 1.75rem;
}
.hero__actions {
align-items: stretch;
margin-bottom: 2.25rem;
}
.hero__actions .btn {
width: 100%;
justify-content: center;
white-space: normal;
text-align: center;
}
.hero__stack {
gap: 0.75rem;
}
.skills__cards {
grid-template-columns: 1fr;
}
.skills__tools,
.service-card,
.contact__info-card {
padding: 1.25rem;
}
.skill-card {
padding: 1.25rem;
}
.timeline--compact {
padding-left: 1.75rem;
}
.timeline--compact .timeline__marker {
left: calc(-1 * 1.75rem + 1px);
}
.form__input {
width: 100%;
min-width: 0;
}
.form__submit {
width: 100%;
justify-content: center;
}
.toast {
right: 1rem;
bottom: 1rem;
left: 1rem;
max-width: none;
}
.devpanel {
right: 1rem;
width: min(290px, calc(100vw - 2rem));
}
.devpanel-trigger {
right: 1rem;
bottom: 1rem;
}
.footer {
padding: 2.5rem 0;
}
.footer__links {
gap: 0.75rem 1.25rem;
}
}
@media (max-width: 380px) {
.hero__title {
font-size: 1.75rem;
}
.section__label,
.section__number {
font-size: 0.75rem;
}
.navbar__container {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
.navbar__actions {
gap: 0.5rem;
}
.theme-switch,
.navbar__burger {
width: 40px;
height: 40px;
}
.contact__email {
align-items: flex-start;
padding-left: 0.75rem;
padding-right: 0.75rem;
}
}
/* ============================================
NO-ANIMATIONS MODE
============================================ */
.no-animations *,
.no-animations *::before,
.no-animations *::after {
animation: none !important;
transition: none !important;
}
/* ============================================
DEV PANEL — Réglages flottant
============================================ */
.devpanel-trigger {
position: fixed;
bottom: 1.5rem;
right: 1.5rem;
z-index: 9997;
width: 42px;
height: 42px;
background: rgba(10, 10, 20, 0.92);
border: 1px solid rgba(99, 102, 241, 0.35);
border-radius: 10px;
color: rgba(255, 255, 255, 0.65);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
[data-theme="light"] .devpanel-trigger {
background: rgba(250, 250, 249, 0.92);
border-color: rgba(79, 70, 229, 0.25);
color: rgba(26, 26, 46, 0.6);
}
.devpanel-trigger:hover {
border-color: rgba(99, 102, 241, 0.7);
color: #fff;
transform: rotate(30deg);
}
[data-theme="light"] .devpanel-trigger:hover {
background: rgba(255, 255, 255, 0.98);
color: #4f46e5;
}
.devpanel-trigger.is-open {
border-color: rgba(99, 102, 241, 0.8);
color: #a5b4fc;
transform: rotate(60deg);
}
[data-theme="light"] .devpanel-trigger.is-open {
background: rgba(255, 255, 255, 0.98);
color: #4f46e5;
}
.devpanel {
position: fixed;
bottom: calc(42px + 1.5rem + 0.75rem);
right: 1.5rem;
z-index: 9996;
width: 290px;
background: rgba(9, 9, 18, 0.97);
border: 1px solid rgba(99, 102, 241, 0.22);
border-radius: 14px;
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99,102,241,0.08);
font-family: 'JetBrains Mono', monospace;
font-size: 0.75rem;
color: #c4c4d4;
/* Fermé par défaut */
opacity: 0;
pointer-events: none;
transform: translateY(12px) scale(0.96);
transform-origin: bottom right;
transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.devpanel.is-open {
opacity: 1;
pointer-events: auto;
transform: translateY(0) scale(1);
}
/* Header type macOS */
.devpanel__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.65rem 1rem;
border-bottom: 1px solid rgba(255,255,255,0.06);
}
.devpanel__title {
display: flex;
align-items: center;
gap: 0.35rem;
}
.devpanel__title-dot {
width: 11px;
height: 11px;
border-radius: 50%;
flex-shrink: 0;
}
.devpanel__title-dot--r { background: #ff5f56; }
.devpanel__title-dot--y { background: #ffbd2e; }
.devpanel__title-dot--g { background: #27c93f; }
.devpanel__title-label {
margin-left: 0.4rem;
font-size: 0.7rem;
color: rgba(255,255,255,0.4);
letter-spacing: 0.02em;
}
.devpanel__fps-live {
display: flex;
align-items: center;
gap: 0.35rem;
font-size: 0.7rem;
font-weight: 600;
color: rgba(255,255,255,0.5);
}
.devpanel__fps-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #27c93f;
transition: background 0.3s ease;
}
.devpanel__fps-dot.is-medium { background: #ffbd2e; }
.devpanel__fps-dot.is-low { background: #ff5f56; }
/* Body */
.devpanel__body {
padding: 0.5rem 0;
}
.devpanel__section {
padding: 0.65rem 1rem;
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.devpanel__section:last-child { border-bottom: none; }
.devpanel__section-label {
display: block;
font-size: 0.65rem;
color: rgba(99, 102, 241, 0.65);
letter-spacing: 0.04em;
margin-bottom: 0.6rem;
}
.devpanel__row {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 28px;
margin-bottom: 0.4rem;
}
.devpanel__row:last-child { margin-bottom: 0; }
.devpanel__row-label {
font-size: 0.72rem;
color: rgba(255,255,255,0.72);
}
/* Segmented control */
.devpanel__seg {
display: flex;
background: rgba(255,255,255,0.06);
border-radius: 6px;
padding: 2px;
gap: 2px;
}
.devpanel__seg-btn {
display: flex;
align-items: center;
gap: 4px;
padding: 3px 9px;
background: transparent;
border: none;
border-radius: 4px;
color: rgba(255,255,255,0.45);
font-family: 'JetBrains Mono', monospace;
font-size: 0.7rem;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
}
.devpanel__seg-btn:hover {
color: rgba(255,255,255,0.75);
}
.devpanel__seg-btn.is-active {
background: rgba(99, 102, 241, 0.85);
color: #fff;
}
/* Toggle switch */
.devpanel__toggle {
position: relative;
display: inline-flex;
cursor: pointer;
}
.devpanel__toggle input { display: none; }
.devpanel__toggle-track {
width: 36px;
height: 20px;
background: rgba(255,255,255,0.1);
border-radius: 99px;
display: flex;
align-items: center;
padding: 2px;
transition: background 0.2s ease;
}
.devpanel__toggle input:checked + .devpanel__toggle-track {
background: rgba(99, 102, 241, 0.85);
}
.devpanel__toggle-thumb {
width: 16px;
height: 16px;
border-radius: 50%;
background: #fff;
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.devpanel__toggle input:checked + .devpanel__toggle-track .devpanel__toggle-thumb {
transform: translateX(16px);
}
/* FPS bar */
.devpanel__fps-bar-wrap {
height: 3px;
background: rgba(255,255,255,0.08);
border-radius: 99px;
margin-top: 0.6rem;
overflow: hidden;
}
.devpanel__fps-bar {
height: 100%;
width: 100%;
border-radius: 99px;
background: #27c93f;
transition: width 0.3s ease, background 0.3s ease;
}
/* Footer */
.devpanel__footer {
padding: 0.5rem 1rem;
border-top: 1px solid rgba(255,255,255,0.05);
text-align: center;
}
.devpanel__footer-line {
font-size: 0.62rem;
color: rgba(255,255,255,0.2);
letter-spacing: 0.04em;
}
/* ============================================
DEVPANEL — Thème clair
============================================ */
[data-theme="light"] .devpanel {
background: rgba(250, 250, 249, 0.97);
border-color: rgba(79, 70, 229, 0.18);
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(79,70,229,0.06);
color: #4b5563;
}
[data-theme="light"] .devpanel__header {
border-bottom-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .devpanel__title-label {
color: rgba(26, 26, 46, 0.35);
}
[data-theme="light"] .devpanel__fps-live {
color: rgba(26, 26, 46, 0.45);
}
[data-theme="light"] .devpanel__section {
border-bottom-color: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .devpanel__section-label {
color: rgba(79, 70, 229, 0.7);
}
[data-theme="light"] .devpanel__row-label {
color: rgba(26, 26, 46, 0.65);
}
[data-theme="light"] .devpanel__seg {
background: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .devpanel__seg-btn {
color: rgba(26, 26, 46, 0.4);
}
[data-theme="light"] .devpanel__seg-btn:hover {
color: rgba(26, 26, 46, 0.7);
}
[data-theme="light"] .devpanel__toggle-track {
background: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .devpanel__fps-bar-wrap {
background: rgba(0, 0, 0, 0.07);
}
[data-theme="light"] .devpanel__footer {
border-top-color: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .devpanel__footer-line {
color: rgba(26, 26, 46, 0.2);
}
/* Curseur désactivé */
.cursor-disabled .cursor-dot,
.cursor-disabled .cursor-ring {
display: none !important;
}
@media (hover: hover) and (pointer: fine) {
html:not(.cursor-disabled),
html:not(.cursor-disabled) * {
cursor: none !important;
}
}
/* ============================================
CUSTOM CURSOR — Dot + Ring
Uniquement sur appareils à pointeur précis
============================================ */
@media (hover: hover) and (pointer: fine) {
/* Base commune aux deux éléments */
.cursor-dot,
.cursor-ring {
position: fixed;
top: 0;
left: 0;
border-radius: 50%;
pointer-events: none;
/* transform: translate(-50%, -50%) gère le centrage sur la position JS */
transform: translate(-50%, -50%);
opacity: 0;
/* left/top mis à jour par JS sans transition (smooth natif via RAF) */
/* Les autres props ont des transitions CSS */
transition:
width 0.3s var(--ease-out),
height 0.3s var(--ease-out),
opacity 0.3s var(--ease-out),
background-color var(--duration-theme) var(--ease-out),
border-color var(--duration-theme) var(--ease-out);
}
/* ── Point central (suit la souris instantanément) ── */
.cursor-dot {
width: 7px;
height: 7px;
background-color: var(--accent);
z-index: 999999;
}
/* ── Anneau (suit avec un léger retard via lerp JS) ── */
.cursor-ring {
width: 38px;
height: 38px;
border: 1.5px solid var(--accent);
background-color: transparent;
z-index: 999998;
}
/* États : visible */
.cursor-dot.is-visible { opacity: 1; }
.cursor-ring.is-visible { opacity: 0.45; }
/* États : survol d'un élément interactif */
.cursor-dot.is-hovering { opacity: 0; }
.cursor-ring.is-hovering {
width: 52px;
height: 52px;
border-color: #c8fa00;
border-width: 2px;
opacity: 0.9;
}
/* États : clic */
.cursor-dot.is-clicking { width: 12px; height: 12px; }
.cursor-ring.is-clicking {
width: 28px;
height: 28px;
opacity: 0.8;
transition-duration: 0.08s;
}
/* Le stretch de scroll est géré entièrement en JS (RAF + vélocité)
— pas de classes CSS pour cet état */
}