/* Valentin.dev — feuille de style locale, sans étape de compilation. */
:root {
  color-scheme: dark;
  --bg: #080a12;
  --bg-elevated: #0d101b;
  --surface: rgba(18, 22, 36, 0.82);
  --surface-solid: #121624;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --text: #f5f7ff;
  --muted: #a9b0c3;
  --subtle: #747d95;
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.19);
  --accent: #8b5cf6;
  --accent-strong: #7c3aed;
  --accent-soft: rgba(139, 92, 246, 0.18);
  --cyan: #22d3ee;
  --header: rgba(8, 10, 18, 0.76);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-sm: 0.75rem;
  --radius: 1.15rem;
  --radius-lg: 1.6rem;
  --content: 72rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6fb;
  --bg-elevated: #eceffa;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --surface-soft: rgba(21, 24, 39, 0.045);
  --surface-hover: rgba(21, 24, 39, 0.075);
  --text: #161827;
  --muted: #586078;
  --subtle: #727a91;
  --border: rgba(22, 24, 39, 0.11);
  --border-strong: rgba(22, 24, 39, 0.19);
  --accent: #7551dc;
  --accent-strong: #6441ca;
  --accent-soft: rgba(117, 81, 220, 0.12);
  --cyan: #0284c7;
  --header: rgba(245, 246, 251, 0.82);
  --shadow-sm: 0 12px 32px rgba(44, 48, 73, 0.09);
  --shadow-lg: 0 28px 75px rgba(44, 48, 73, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(139, 92, 246, 0.15), transparent 29rem),
    radial-gradient(circle at 88% 34%, rgba(34, 211, 238, 0.08), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  animation: page-enter 420ms cubic-bezier(.22, 1, .36, 1) backwards;
  transition: opacity 180ms ease, transform 180ms ease, background-color 250ms ease, color 250ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body.page-leaving { opacity: 0; transform: translateY(-6px); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4 { margin-top: 0; }
::selection { background: rgba(139, 92, 246, 0.36); color: #fff; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cyan) 78%, white);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* Utilitaires conservés pour que toutes les pages restent 100 % statiques. */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-\[1\.4\] { flex: 1.4 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.right-0 { right: 0; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-\[90\] { z-index: 90; }
.z-\[100\] { z-index: 100; }
.z-\[900\] { z-index: 900; }
.z-\[1000\] { z-index: 1000; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-5 { width: 1.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }
.w-\[320px\] { width: 320px; }
.w-\[95vw\] { width: 95vw; }
.h-full { height: 100%; }
.h-5 { height: 1.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }
.h-\[85vh\] { height: 85vh; }
.max-w-full { max-width: 100%; }
.max-w-\[90vw\] { max-width: 90vw; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.max-h-full { max-height: 100%; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-inline: 0.75rem; }
.px-4 { padding-inline: 1rem; }
.px-30 { padding-inline: 7.5rem; }
.py-1 { padding-block: 0.25rem; }
.py-2 { padding-block: 0.5rem; }
.py-3 { padding-block: 0.75rem; }
.py-6 { padding-block: 1.5rem; }
.py-16 { padding-block: 4rem; }
.py-24 { padding-block: 6rem; }
.pb-4 { padding-bottom: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.overflow-hidden { overflow: hidden !important; }
.pointer-events-none { pointer-events: none; }
.object-contain { object-fit: contain; }
.select-none { user-select: none; }
.cursor-zoom-in { cursor: zoom-in; }
.cursor-zoom-out { cursor: zoom-out; }
.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: var(--radius-sm); }
.rounded-xl { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid var(--border); }
.border-4 { border-width: 4px; border-style: solid; }
.border-b { border-bottom: 1px solid var(--border); }
.border-white { border-color: #fff; }
.border-violet-500 { border-color: var(--accent); }
.border-gray-200, .border-gray-600, .border-gray-700 { border-color: var(--border); }
.shadow, .shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md, .shadow-lg, .shadow-2xl { box-shadow: var(--shadow-lg); }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-white, .bg-white\/60, .bg-white\/95 { background: var(--surface); }
.bg-gray-100, .bg-gray-200, .bg-gray-600, .bg-gray-700, .bg-gray-800, .bg-gray-900 { background: var(--surface-soft); }
.bg-\[\#1a1f2e\] { background: #111522; }
.bg-black\/40 { background: rgba(0, 0, 0, 0.4); }
.bg-black\/50 { background: rgba(0, 0, 0, 0.5); }
.bg-violet-600 { background: var(--accent); }
.bg-blue-600 { background: #2563eb; }
.bg-red-600 { background: #dc2626; }
.bg-orange-600 { background: #ea580c; }
.bg-pink-600 { background: #db2777; }
.text-white { color: #fff; }
.text-gray-900, .text-gray-800 { color: var(--text); }
.text-gray-600, .text-gray-500 { color: var(--muted); }
.text-gray-400, .text-gray-300, .text-gray-100 { color: var(--muted); }
.text-blue-600, .text-violet-400 { color: color-mix(in srgb, var(--accent) 72%, var(--cyan)); }
.text-yellow-400 { color: #facc15; }
.text-yellow-400\/30 { color: rgba(250, 204, 21, 0.3); }
.text-xs { font-size: 0.75rem; line-height: 1.4; }
.text-sm { font-size: 0.9rem; line-height: 1.65; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 650; }
.font-bold { font-weight: 750; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.08em; }
.leading-none { line-height: 1; }
.text-center { text-align: center; }
.underline, .hover\:underline:hover { text-decoration: underline; }
.line-clamp-3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.opacity-0 { opacity: 0; }
.opacity-70 { opacity: 0.7; }
.opacity-100 { opacity: 1; }
.scale-95 { transform: scale(0.95); }
.rotate-180 { transform: rotate(180deg); }
.translate-x-full { transform: translateX(100%); }
.translate-x-0 { transform: translateX(0); }
.translate-x-4 { transform: translateX(1rem); }
.-translate-x-4 { transform: translateX(-1rem); }
.transition, .transition-all { transition: all 250ms ease; }
.transition-colors { transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease; }
.transition-opacity { transition-property: opacity; transition-timing-function: ease; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(.22, 1, .36, 1); }
.duration-300 { transition-duration: 300ms; }
.duration-1000 { transition-duration: 1000ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, .2, 1); }
.hover\:scale-105:hover { transform: translateY(-3px) scale(1.015); }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover\:bg-gray-50:hover, .hover\:bg-gray-100:hover, .hover\:bg-gray-200:hover { background: var(--surface-hover); }
.hover\:bg-violet-700:hover { background: var(--accent-strong); }
.hover\:bg-blue-700:hover { background: #1d4ed8; }
.hover\:bg-red-700:hover { background: #b91c1c; }
.hover\:bg-orange-700:hover { background: #c2410c; }
.hover\:bg-pink-700:hover { background: #be185d; }
.hover\:text-violet-300:hover { color: #c4b5fd; }

/* En-tête et navigation */
body > header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 76px;
  padding: 0.8rem clamp(1rem, 4vw, 3.5rem) !important;
  border-bottom: 1px solid var(--border);
  background: var(--header) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.site-brand { display: inline-flex; align-items: center; gap: 0.75rem; border-radius: 0.8rem; }
.site-brand img { filter: drop-shadow(0 7px 14px rgba(139, 92, 246, 0.3)); }
.site-brand h1 {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  letter-spacing: -0.035em;
}
.site-brand h1::after { color: var(--cyan); content: "_"; animation: cursor-blink 1.05s steps(1) infinite; }

#menu-button, #theme-toggle {
  min-height: 44px;
  border: 1px solid var(--border-strong);
  background: var(--surface-soft) !important;
  color: var(--text) !important;
  box-shadow: none;
  backdrop-filter: blur(12px);
}
#menu-button:hover, #theme-toggle:hover { border-color: rgba(139, 92, 246, 0.5); background: var(--accent-soft) !important; transform: translateY(-1px); }
#theme-toggle { display: inline-grid; width: 44px; padding: 0; place-items: center; border-radius: 50%; }

#menu-backdrop { background: rgba(3, 5, 12, 0.64); backdrop-filter: blur(5px); }
#slide-menu {
  width: min(390px, 92vw);
  border-left: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 100% 0, rgba(139, 92, 246, 0.22), transparent 18rem),
    var(--surface-solid) !important;
  color: var(--text);
}
#slide-menu > div:first-child { padding: 1.4rem; }
#slide-menu nav { display: grid; gap: 0.45rem; padding: 1.25rem; }
#slide-menu nav a {
  position: relative;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  color: var(--muted);
  font-weight: 620;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
#slide-menu nav a:hover { border-color: var(--border); background: var(--surface-hover); color: var(--text); transform: translateX(4px); }
#slide-menu nav a[aria-current="page"] { border-color: rgba(139, 92, 246, 0.33); background: var(--accent-soft); color: var(--text); }
#slide-menu nav a[aria-current="page"]::before { position: absolute; top: 50%; left: -2px; width: 4px; height: 55%; border-radius: 4px; background: var(--accent); content: ""; transform: translateY(-50%); }

/* Mise en page générale */
main { width: min(100% - 2rem, var(--content)); min-height: calc(100vh - 240px); margin-inline: auto; }
body[data-page="home"] main { width: 100%; max-width: none; }
body.bg-white {
  background:
    radial-gradient(circle at 12% 12%, rgba(139, 92, 246, 0.15), transparent 29rem),
    radial-gradient(circle at 88% 34%, rgba(34, 211, 238, 0.08), transparent 24rem),
    var(--bg) !important;
}
body:not([data-page="home"]) main { padding-block: clamp(3.25rem, 8vw, 6.5rem) !important; }
body:not([data-page="home"]) main > section:first-child > h2,
body:not([data-page="home"]) main > section:first-child > div > h2 {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  font-size: clamp(2.35rem, 7vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
body:not([data-page="home"]) main > section:first-child > h2::before,
body:not([data-page="home"]) main > section:first-child > div > h2::before {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  content: "Portfolio / Valentin";
}

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 560ms ease, transform 560ms cubic-bezier(.22, 1, .36, 1); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* Accueil */
.home-hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100svh - 76px));
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 7vw, 7rem) !important;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
}
.home-hero > .absolute { z-index: -2; transform: scale(1.025); }
.home-hero > .absolute::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 17, 0.92) 4%, rgba(7, 9, 17, 0.6) 54%, rgba(7, 9, 17, 0.82)),
    linear-gradient(0deg, var(--bg), transparent 32%);
  content: "";
}
.home-hero > .relative {
  display: grid;
  width: min(100%, 70rem);
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  text-align: left;
}
.hero-copy { max-width: 48rem; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 9, 17, 0.45);
  color: #d9dded;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}
.hero-eyebrow::before { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.13); content: ""; }
.home-hero h2 {
  max-width: 13ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.25rem, 8.5vw, 7.2rem) !important;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.07em;
  text-wrap: balance;
}
.home-hero h2 span { color: transparent; background: linear-gradient(100deg, #c4b5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; }
.hero-lead { max-width: 42rem; margin-bottom: 1.75rem; color: #cbd0df; font-size: clamp(1rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.button-primary, .button-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 0.85rem;
  font-weight: 680;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button-primary { border-color: transparent; background: linear-gradient(125deg, #8b5cf6, #6366f1); color: #fff; box-shadow: 0 14px 34px rgba(99, 102, 241, 0.3); }
.button-secondary { background: rgba(255, 255, 255, 0.08); color: #fff; backdrop-filter: blur(10px); }
.button-primary:hover, .button-secondary:hover { transform: translateY(-3px); }
.button-primary:hover { box-shadow: 0 18px 44px rgba(99, 102, 241, 0.42); }
.hero-portrait { justify-self: end; }
.hero-portrait img {
  width: clamp(12rem, 23vw, 19rem) !important;
  height: clamp(12rem, 23vw, 19rem) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  outline: 12px solid rgba(255, 255, 255, 0.055);
  object-fit: cover;
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.46), 0 0 80px rgba(139, 92, 246, 0.24) !important;
}

#about { padding-block: clamp(4rem, 9vw, 7rem) !important; }
#about > div { position: relative; padding: clamp(1.6rem, 5vw, 3rem) !important; overflow: hidden; }
#about > div::after { position: absolute; top: -5rem; right: -5rem; width: 14rem; height: 14rem; border-radius: 50%; background: rgba(139, 92, 246, 0.12); filter: blur(15px); content: ""; }
#about h3, #testimonials h3 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.045em; }
#about p { max-width: 70ch; color: var(--muted); font-size: 1.04rem; }
.featured-project { padding: clamp(1.25rem, 4vw, 2rem) !important; }
.featured-project iframe { border: 0; }

/* Cartes */
.bg-white, .dark .dark\:bg-gray-800 { background: var(--surface) !important; }
.dark .dark\:bg-gray-700 { background: var(--surface-soft) !important; }
.dark .dark\:bg-gray-900 { background: var(--bg) !important; }
.dark .dark\:text-white, .dark .dark\:text-gray-100 { color: var(--text) !important; }
.dark .dark\:text-gray-300, .dark .dark\:text-gray-400 { color: var(--muted) !important; }
.dark .dark\:border-gray-600, .dark .dark\:border-gray-700 { border-color: var(--border) !important; }

html.dark body.bg-white.dark\:bg-gray-900 {
  background:
    radial-gradient(circle at 12% 12%, rgba(139, 92, 246, 0.15), transparent 29rem),
    radial-gradient(circle at 88% 34%, rgba(34, 211, 238, 0.08), transparent 24rem),
    var(--bg) !important;
}
html.dark body > header.dark\:bg-gray-800 { background: var(--header) !important; }

#capacites > div,
.featured-project,
#testimonial-main,
body[data-page="experience"] main > section:nth-child(2),
body[data-page="presentation"] main > section,
#reseaux > div,
#projects-accordion > section {
  border: 1px solid var(--border) !important;
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-solid) 80%, transparent)) !important;
  box-shadow: var(--shadow-sm) !important;
  backdrop-filter: blur(14px);
}

#capacites > div { padding: clamp(1.25rem, 4vw, 2rem) !important; }
#capacites .grid > div {
  min-height: 175px;
  padding: 1.25rem !important;
  border: 1px solid var(--border);
  background: var(--surface-soft) !important;
  box-shadow: none !important;
}
#capacites .grid > div:hover { border-color: rgba(139, 92, 246, 0.42); background: var(--surface-hover) !important; }
#capacites .grid img { padding: 0.35rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.9); object-fit: contain; }
#capacites .grid p { margin-bottom: 0.15rem; color: var(--muted); }

body[data-page="experience"] main > section:nth-child(2) { padding: clamp(1rem, 4vw, 2rem) !important; }
body[data-page="experience"] main > section:nth-child(2) > div { padding: 1.15rem 0; }
body[data-page="experience"] main > section:nth-child(2) > div + div { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 2rem; }
body[data-page="experience"] main img { aspect-ratio: 16 / 10; object-fit: cover; }

body[data-page="presentation"] main > section { padding: clamp(1.5rem, 5vw, 3rem) !important; background: linear-gradient(145deg, rgba(30, 35, 58, 0.95), rgba(15, 18, 31, 0.96)) !important; }
body[data-page="presentation"] main > section > div > img { object-fit: cover; box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35); }
body[data-page="presentation"] main p { color: #cbd0df; }

#reseaux { gap: 1.25rem !important; }
#reseaux > div { min-height: 245px; padding: 1.25rem !important; transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
#reseaux > div:hover { border-color: rgba(139, 92, 246, 0.4) !important; box-shadow: var(--shadow-lg) !important; transform: translateY(-5px); }
#reseaux img { aspect-ratio: 1; border-radius: 1rem; object-fit: cover; box-shadow: none !important; }
#reseaux p { color: var(--muted); }

#projects-accordion > section { border-radius: var(--radius) !important; }
#projects-accordion > section > button { min-height: 62px; background: transparent; color: var(--text); }
#projects-accordion > section > button:hover { background: var(--surface-hover) !important; }
#projects-accordion [data-acc-panel] { padding: 0 1rem 1rem; }
#projects-accordion [data-acc-panel] > section { margin-bottom: 1rem !important; background: var(--surface-soft) !important; box-shadow: none !important; }
#projects-accordion [data-acc-panel] img { aspect-ratio: 16 / 10; object-fit: cover; }

#testimonial-main { padding: clamp(1.4rem, 4vw, 2.1rem) !important; }
#testimonial-prev-card, #testimonial-next-card { border: 1px solid var(--border); background: var(--surface-soft) !important; }
#testimonial-text { color: var(--muted); }
#testimonial-prev, #testimonial-next { border: 1px solid var(--border); }

/* Liens d'action dans les cartes */
main a[class*="bg-violet"], main a[class*="bg-gray"], main a[class*="bg-blue"], main a[class*="bg-red"], main a[class*="bg-orange"], main a[class*="bg-pink"], #open-cv {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.58rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.72rem;
  font-weight: 650;
}

/* Pied de page */
body > footer {
  position: relative;
  margin-top: clamp(2rem, 6vw, 5rem);
  padding: 2.2rem 1rem !important;
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 15, 0.42) !important;
  color: var(--muted);
  backdrop-filter: blur(12px);
}
:root.dark body > footer.dark\:bg-gray-900 { background: rgba(6, 8, 15, 0.42) !important; }
:root[data-theme="light"] body > footer { background: rgba(255, 255, 255, 0.42) !important; }
body > footer p { margin-bottom: 0.4rem; }
body > footer a { color: var(--muted) !important; text-decoration: none !important; transition: color 160ms ease; }
body > footer a:hover { color: var(--text) !important; }

/* Modale CV */
#cv-modal > div { border: 1px solid var(--border); background: var(--surface-solid) !important; }
#cv-modal > div > div:last-of-type { overflow: auto; }
#cv-image { transform-origin: center top; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:w-1\/3 { width: 33.333333%; }
  .md\:w-2\/3 { width: 66.666667%; }
  .md\:text-base { font-size: 1rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  body > header { min-height: 68px; }
  body > header > div:last-child { gap: 0.5rem; }
  #menu-button { width: 44px; padding: 0; justify-content: center; }
  #menu-button svg { flex: none; }
  #menu-button .menu-label, #menu-button:not(:has(.menu-label)) { font-size: 0; }
  #menu-button:not(:has(.menu-label)) svg { margin: auto; }
  .home-hero { min-height: auto; padding-block: 5.5rem !important; }
  .home-hero > .relative { grid-template-columns: 1fr; text-align: center; }
  .home-hero h2 { max-width: none; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-portrait { grid-row: 1; justify-self: center; }
  .hero-eyebrow { margin-inline: auto; }
  .featured-project { margin-inline: 1rem; }
  #testimonials > div:last-child > div > div { display: block; }
  #testimonial-main { width: 100%; }
  #reseaux img { width: 5.5rem !important; }
  #cv-modal > div { height: 92vh; }
  #cv-modal > div > div:first-child { align-items: flex-start; gap: 0.5rem; }
  #cv-modal > div > div:first-child > div { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 430px) {
  .site-brand h1 { font-size: 1rem; }
  .site-brand img { width: 2.1rem; height: 2.1rem; }
  .home-hero h2 { font-size: 3rem !important; }
  #testimonial-main > div:last-child { flex-wrap: wrap; }
  #testimonial-position { order: -1; width: 100%; text-align: center; }
  .px-30 { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@keyframes page-enter { from { opacity: 0; transform: translateY(8px); } }
@keyframes cursor-blink { 50% { opacity: 0.15; } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms ease both fade-out; }
::view-transition-new(root) { animation: 360ms cubic-bezier(.22, 1, .36, 1) both fade-in; }
@keyframes fade-out { to { opacity: 0; transform: translateY(-5px); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(7px); } }
