:root {
  --bg: #050b14;
  --bg-soft: #0a1622;
  --bg-deep: #0e2233;
  --band: rgba(7, 16, 27, 0.62);
  --surface: rgba(13, 27, 42, 0.82);
  --surface-strong: rgba(16, 35, 51, 0.96);
  --card-1: #0d1f30;
  --card-2: #14304a;
  --text: #eef7ff;
  --text-dark: #eef7ff;
  --muted: #a7bdcf;
  --muted-dark: #a7bdcf;
  --accent: #5eead4;
  --accent-2: #38bdf8;
  --accent-3: #a78bfa;
  --gold: #ffd166;
  --line: rgba(148, 200, 255, 0.13);
  --line-dark: rgba(148, 200, 255, 0.13);
  --shadow: rgba(2, 8, 16, 0.5);
  --glow: rgba(94, 234, 212, 0.35);
  --page-pad: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(94, 234, 212, 0.15), transparent 62%),
    radial-gradient(1000px 540px at 88% -6%, rgba(56, 189, 248, 0.13), transparent 64%),
    radial-gradient(900px 620px at 50% 115%, rgba(167, 139, 250, 0.12), transparent 60%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 55%, var(--bg-deep) 100%);
}

::selection {
  background: rgba(94, 234, 212, 0.32);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #060d16;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.5), rgba(56, 189, 248, 0.5), rgba(167, 139, 250, 0.5));
  border-radius: 999px;
  border: 2px solid #060d16;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: -24%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 16% 26%, rgba(94, 234, 212, 0.15), transparent 23%),
    radial-gradient(circle at 76% 16%, rgba(56, 189, 248, 0.17), transparent 25%),
    radial-gradient(circle at 30% 82%, rgba(167, 139, 250, 0.13), transparent 24%),
    radial-gradient(circle at 70% 76%, rgba(255, 209, 102, 0.07), transparent 21%);
  filter: blur(36px);
  opacity: 0.92;
}

/* ---------------------------------------------------------------------- */
/* Keyframes                                                               */
/* ---------------------------------------------------------------------- */

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------------------------------------------------------------------- */
/* Layout                                                                  */
/* ---------------------------------------------------------------------- */

main {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 72px;
}

section {
  width: 100%;
  scroll-margin-top: 92px;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(var(--page-pad), env(safe-area-inset-left));
  padding-right: max(var(--page-pad), env(safe-area-inset-right));
}

/* ---------------------------------------------------------------------- */
/* Nav                                                                     */
/* ---------------------------------------------------------------------- */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 18, 30, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  z-index: 20;
}

nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.45), rgba(56, 189, 248, 0.4), rgba(167, 139, 250, 0.35), transparent);
}

.logo {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(90deg, #ffffff 0%, var(--accent) 55%, var(--accent-2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.5s ease;
}

.logo:hover {
  background-position: 100% center;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

nav a:not(.logo) {
  position: relative;
  text-decoration: none;
  color: #d7e5f0;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 11px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav a:not(.logo)::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 0.7, 0.3, 1);
}

nav a:not(.logo):hover,
nav a:not(.logo):focus-visible,
nav a:not(.logo).active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

nav a:not(.logo):hover::after,
nav a:not(.logo):focus-visible::after,
nav a:not(.logo).active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: #f0f6fc;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.Accueil {
  padding: 56px 0 62px;
  border-bottom: 1px solid rgba(148, 200, 255, 0.09);
}

.accueil-inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 40px);
  align-items: center;
}

.avatar-wrap {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 230px;
  border-radius: 20px;
}

.avatar-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line-dark);
  box-shadow: 0 24px 52px var(--shadow);
}

.description {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 7px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.09);
  border: 1px solid rgba(94, 234, 212, 0.3);
  color: #dffcf2;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.Accueil h1 {
  margin: 0 0 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  line-height: 1.04;
  max-width: 720px;
  background: linear-gradient(90deg, #ffffff 0%, var(--accent) 28%, var(--accent-2) 52%, var(--accent-3) 76%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead,
.Accueil p {
  margin: 0;
  max-width: 760px;
  line-height: 1.7;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
}

.cta {
  margin: 24px 0 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.94rem;
  transition: transform 0.18s ease, box-shadow 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03121c;
  box-shadow: 0 14px 32px rgba(56, 189, 248, 0.28);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.42), 0 0 24px rgba(94, 234, 212, 0.3);
}

.btn.ghost {
  color: #ecf4fc;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover,
.btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(130%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 1fr));
  gap: 10px;
  max-width: 640px;
}

.stat {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(148, 200, 255, 0.13);
  border-radius: 12px;
  padding: 12px 13px;
  min-width: 0;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 14px 26px rgba(2, 8, 16, 0.4);
}

.stat-number {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 2px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------------- */
/* Section titles                                                          */
/* ---------------------------------------------------------------------- */

.titre {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.12;
  background: linear-gradient(180deg, #ffffff 30%, #b9d6e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.titre::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6%;
  bottom: 6%;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 16px var(--glow);
}

/* ---------------------------------------------------------------------- */
/* Cards: shared spotlight + hover                                          */
/* ---------------------------------------------------------------------- */

.objective-card,
.Project-card,
.skill-group,
.contact-card,
.stat {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.objective-card::before,
.Project-card::before,
.skill-group::before,
.contact-card::before,
.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(94, 234, 212, 0.12), rgba(56, 189, 248, 0.05) 42%, transparent 68%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.objective-card:hover::before,
.Project-card:hover::before,
.skill-group:hover::before,
.contact-card:hover::before,
.stat:hover::before {
  opacity: 1;
}

.objective-card > *,
.skill-group > *,
.contact-card > * {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------------- */
/* A propos                                                                */
/* ---------------------------------------------------------------------- */

.About {
  padding: 56px 0 40px;
}

.About .hero-lead {
  margin: 14px 0 8px;
}

/* ---------------------------------------------------------------------- */
/* Formation                                                               */
/* ---------------------------------------------------------------------- */

.Formation {
  padding: 64px 0 48px;
  background: var(--band);
  color: var(--text-dark);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.objective-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.Formation .objective-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
}

.objective-card {
  background: var(--surface);
  border: 1px solid var(--line-dark);
  padding: 20px;
  box-shadow: 0 14px 28px var(--shadow);
  transform: translateY(var(--lift, 0px));
  transition: transform 0.18s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.objective-card:hover {
  --lift: -5px;
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 20px 40px rgba(2, 8, 16, 0.55), 0 0 24px rgba(94, 234, 212, 0.07);
}

.objective-card i {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.16), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(94, 234, 212, 0.28);
  color: var(--accent);
  font-size: 1.05rem;
}

.objective-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.objective-card p {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.6;
}

/* ---------------------------------------------------------------------- */
/* Projets                                                                 */
/* ---------------------------------------------------------------------- */

.Projects {
  padding: 64px 0 80px;
}

.Projects h5 {
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 550;
  max-width: 820px;
}

.project-category {
  margin-top: 34px;
}

.project-category:first-of-type {
  margin-top: 26px;
}

.project-category h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.2;
  color: #f6fbff;
}

.project-category h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.45), rgba(56, 189, 248, 0.18), transparent);
}

.proj {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.Project-card {
  background: linear-gradient(160deg, var(--card-1), var(--card-2));
  color: var(--text);
  border: 1px solid rgba(148, 200, 255, 0.15);
  box-shadow: 0 16px 34px var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transform: translateY(var(--lift, 0px));
  transition: transform 0.18s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.Project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.05) 45%, rgba(94, 234, 212, 0.1) 50%, rgba(255, 255, 255, 0.05) 55%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.9s ease;
}

.Project-card:hover::after {
  transform: translateX(130%);
}

.Project-card.featured {
  border-top: 3px solid var(--accent);
}

.Project-card.stage-highlight {
  border: 1px solid rgba(255, 209, 102, 0.48);
  border-top: 3px solid var(--gold);
  background:
    linear-gradient(160deg, rgba(255, 209, 102, 0.15), transparent 34%),
    linear-gradient(160deg, var(--card-1), var(--card-2));
  box-shadow: 0 18px 38px rgba(255, 209, 102, 0.12), 0 16px 34px var(--shadow);
}

.Project-card.stage-highlight:hover {
  border-color: rgba(255, 209, 102, 0.72);
  box-shadow: 0 24px 46px rgba(255, 209, 102, 0.18), 0 22px 42px rgba(2, 8, 16, 0.55);
}

.Project-card.stage-highlight::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 209, 102, 0.12), rgba(255, 209, 102, 0.04) 42%, transparent 68%);
}

.Project-card.stage-highlight .project-tags span:first-child {
  background: rgba(255, 209, 102, 0.16);
  color: var(--gold);
}

.Project-card:hover {
  --lift: -6px;
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow: 0 26px 48px rgba(2, 8, 16, 0.6), 0 0 30px rgba(94, 234, 212, 0.08);
}

.Project-card h3 {
  margin: 15px 14px 10px;
  padding-right: 6px;
  font-size: 1.08rem;
  line-height: 1.25;
  min-height: 2.7em;
  display: flex;
  align-items: center;
}

.Projects div img {
  width: 100%;
  height: 176px;
  object-fit: contain;
  background: rgba(4, 13, 22, 0.75);
  border-top: 1px solid rgba(148, 200, 255, 0.09);
  border-bottom: 1px solid rgba(148, 200, 255, 0.09);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 0 15px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.16), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(94, 234, 212, 0.28);
  color: var(--accent);
  font-size: 1.05rem;
}

.card-icon-gold {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 224, 138, 0.1));
  border-color: rgba(255, 209, 102, 0.4);
  color: var(--gold);
}

.Project-card:has(.card-icon) {
  min-height: 0;
}

.Project-card:has(.card-icon) h3 {
  margin-top: 10px;
  min-height: 0;
}

.Project-card:has(.card-icon) .card-links {
  margin-top: 4px;
}

.Projects div p {
  color: #cfdded;
  padding: 13px 15px 10px;
  margin: 0;
  line-height: 1.55;
  font-size: 0.93rem;
}

.project-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 15px 14px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(148, 200, 255, 0.09);
  border: 1px solid rgba(148, 200, 255, 0.14);
  color: #e9f5ff;
  font-size: 0.77rem;
  font-weight: 800;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-tags span:hover {
  background: rgba(94, 234, 212, 0.14);
  border-color: rgba(94, 234, 212, 0.5);
  transform: translateY(-1px);
}

.card-links {
  display: flex;
  gap: 9px;
  justify-content: flex-start;
  padding: 0 15px 16px;
  margin-top: auto;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f3fbff;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover,
.chip:focus-visible {
  background: rgba(94, 234, 212, 0.12);
  border-color: rgba(94, 234, 212, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(2, 8, 16, 0.45), 0 0 14px rgba(94, 234, 212, 0.18);
  outline: none;
}

.projects-more {
  margin: 36px 0 0;
  color: #dceaf5;
  font-size: 1.02rem;
  line-height: 1.65;
}

.projects-more a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 234, 212, 0.5);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.projects-more a:hover,
.projects-more a:focus-visible {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
  outline: none;
}

/* ---------------------------------------------------------------------- */
/* Compétences                                                             */
/* ---------------------------------------------------------------------- */

.Skills {
  padding: 64px 0 80px;
  background: var(--band);
  color: var(--text-dark);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--line-dark);
  padding: 18px;
  box-shadow: 0 14px 28px var(--shadow);
  transition: transform 0.22s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-group:hover {
  border-color: rgba(94, 234, 212, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(2, 8, 16, 0.5);
}

.Skills h3 {
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  font-size: 1.06rem;
}

.Skills ul {
  padding: 0;
  margin: 0;
}

.Skills li {
  list-style: none;
  display: grid;
  grid-template-columns: 132px minmax(110px, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.Skills li span {
  min-width: 0;
  font-weight: 750;
  color: #e8f3fb;
}

.method-list {
  display: grid;
  gap: 10px;
}

.method-list li {
  grid-template-columns: 28px 1fr;
  margin-bottom: 0;
  padding: 10px 12px;
  border: 1px solid rgba(148, 200, 255, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.method-list li:hover {
  background: rgba(94, 234, 212, 0.08);
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateX(5px);
}

.method-list i {
  color: var(--accent);
}

.bare {
  height: 10px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 200, 255, 0.16);
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.bare > div {
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 999px;
  transform-origin: left;
  overflow: hidden;
}

.nvJava { width: 75%; }
.nvC { width: 65%; }
.nvCpp { width: 65%; }
.nvBash { width: 55%; }
.nvVscode { width: 75%; }
.nvPython { width: 85%; }
.nvHtmlCss { width: 75%; }
.nvJs { width: 65%; }
.nvJulia { width: 45%; }
.nvPhp { width: 65%; }
.nvReact { width: 65%; }
.nvAngular { width: 30%; }
.nvTailwind { width: 65%; }
.nvDjango { width: 65%; }
.nvSpringboot { width: 40%; }
.nvSql { width: 50%; }
.nvYii { width: 65%; }
.nvGit { width: 65%; }
.nvDocker { width: 50%; }
.nvLinux { width: 55%; }
.nvFr { width: 85%; }
.nvAng { width: 60%; }

.method-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 200, 255, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.method-list a:hover,
.method-list a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

/* ---------------------------------------------------------------------- */
/* Contact                                                                 */
/* ---------------------------------------------------------------------- */

.contact {
  padding: 64px 0 70px;
}

.contact-inner {
  display: grid;
  gap: 22px;
}

.contact-lead {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 0;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 780px;
}

.contact-card {
  width: 100%;
  min-height: 116px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(148, 200, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  border-color: rgba(94, 234, 212, 0.6);
  box-shadow: 0 20px 38px rgba(2, 8, 16, 0.45), 0 0 24px rgba(94, 234, 212, 0.08);
  transform: translateY(-4px);
  outline: none;
}

.contact-card i {
  color: var(--accent);
  font-size: 1.3rem;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-card strong {
  color: #ffffff;
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  word-break: break-word;
}

.footer-quote {
  text-align: center;
  margin: 0;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

#by {
  text-align: center;
  padding-top: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

#visit-counter {
  text-align: center;
  margin: 4px 0 0;
  font-size: 0.7rem;
  opacity: 0.35;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------- */
/* to-top + modal                                                          */
/* ---------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03121c;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  transform: translateY(-3px);
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.video-modal.open {
  display: flex;
}

.video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 12, 0.78);
  backdrop-filter: blur(6px);
}

.video-modal.open .video-backdrop {
  animation: fade-in 0.25s ease both;
}

.video-dialog {
  position: relative;
  width: min(900px, 92vw);
  background: #0d1c2b;
  border: 1px solid rgba(148, 200, 255, 0.18);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(94, 234, 212, 0.07);
}

.video-modal.open .video-dialog {
  animation: pop-in 0.32s cubic-bezier(0.22, 0.9, 0.3, 1.2) both;
}

.video-dialog video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #000;
}

.video-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-close:hover {
  background: rgba(94, 234, 212, 0.25);
  transform: rotate(90deg);
}

/* ---------------------------------------------------------------------- */
/* Reduced motion                                                          */
/* ---------------------------------------------------------------------- */

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

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .accueil-inner {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px 16px;
    background: rgba(6, 13, 22, 0.98);
    border-bottom: 1px solid rgba(148, 200, 255, 0.12);
  }

  nav.open .nav-links {
    display: grid;
  }

  nav a:not(.logo) {
    text-align: center;
  }

  nav a:not(.logo)::after {
    display: none;
  }

  .accueil-inner {
    grid-template-columns: 1fr;
  }

  .avatar-wrap {
    max-width: 210px;
  }

  .objective-grid,
  .skill-layout,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  main {
    padding-top: 68px;
  }

  nav {
    height: 68px;
    padding: 0 14px;
  }

  .nav-links {
    top: 68px;
  }

  .Accueil {
    padding: 32px 0 44px;
  }

  .Accueil h1 {
    font-size: clamp(2rem, 11vw, 2.65rem);
  }

  .cta {
    display: grid;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .Projects,
  .Skills,
  .Formation,
  .contact {
    padding-top: 46px;
    padding-bottom: 56px;
  }

  .Skills li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
