/* ============================================================
   STYLE.CSS — Portfolio BUT MMI · Graphisme
   Identité : Noir Vintage · Mauve · Glassmorphisme
   ============================================================ */

/* ── Variables ── */
:root {
  --accent:        #c9a8e8;
  --accent-light:  rgba(201,168,232,.15);
  --accent-dark:   #a47bc8;
  --accent-glow:   rgba(201,168,232,.35);
  --bg:            #0d0b14;
  --bg-alt:        #13101f;
  --bg-dark:       #07060f;
  --text:          #ede9f5;
  --muted:         #9991ad;
  --border:        rgba(201,168,232,.18);
  --green:         #6fcf97;
  --red:           #eb5757;
  --shadow-sm:     0 2px 12px rgba(0,0,0,.45);
  --shadow:        0 6px 28px rgba(0,0,0,.55);
  --shadow-lg:     0 14px 50px rgba(0,0,0,.65);
  --radius:        14px;
  --radius-lg:     24px;
  --nav-h:         70px;
  --tr:            0.3s ease;
  --ff-head:       'Playfair Display', serif;
  --ff-body:       'Inter', sans-serif;
  /* Glassmorphisme */
  --glass-bg:      rgba(201,168,232,.06);
  --glass-border:  rgba(201,168,232,.22);
  --glass-blur:    blur(18px);
  --glass-strong:  rgba(201,168,232,.1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #0d0b14; overflow-x: hidden; }

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-align: justify;
  overflow-x: hidden;
  max-width: 100vw;
  /* Texture grain vintage */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
}

/* Fond radial dégradé mauve subtil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(130,80,200,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(180,100,240,.12) 0%, transparent 55%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; text-align: center; }
h1, h2, h3, h4, h5, h6 { text-align: left; }
nav, .nav-container, .nav-menu, .stats-bar, .filter-bar,
.about-tags, .origin-info, .hero-actions, .featured-actions,
.proj-actions, .form-actions, .contact-actions { text-align: center; }

/* ── Utility ── */
.accent        { color: var(--accent); }
.eyebrow       { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; text-align: left; }
.page-title    { font-family: var(--ff-head); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1; margin-bottom: .75rem; color: var(--text); text-align: left; }
.page-subtitle { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-bottom: 2.5rem; text-align: left; }
.section-title { font-family: var(--ff-head); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 1.75rem; color: var(--text); text-align: left; }
.section-heading {
  font-family: var(--ff-head);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text);
  text-align: left;
}

/* ── Boutons ── */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--tr);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--bg-dark);
  box-shadow: 0 4px 20px var(--accent-glow);
  border: 1px solid var(--glass-border);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
  filter: brightness(1.1);
}
.btn-outline {
  border: 1.5px solid var(--glass-border);
  color: var(--accent);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.btn-outline:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR — Glassmorphisme
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(13,11,20,.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow var(--tr);
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(201,168,232,.12); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 80px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  padding: .45rem 1rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  transition: var(--tr);
  letter-spacing: .02em;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--accent-light);
}
.nav-cta {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--bg-dark) !important;
  padding: .45rem 1.3rem;
  font-weight: 700;
  border: 1px solid var(--glass-border);
}
.nav-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: var(--bg-dark) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--tr);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   PAGES
   ============================================================ */
.page {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
  opacity: 0;
  animation: none;
}
.page.active {
  display: block;
  animation: pageFadeIn .35s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

/* ============================================================
   PAGE ACCUEIL
   ============================================================ */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text { animation: fadeInUp .8s ease both; }

.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--text);
}
.hero-sub {
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.25rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
  animation: fadeInUp .8s .2s ease both;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .25;
}
.blob-1 {
  width: 340px; height: 340px;
  background: var(--accent);
  top: -40px; right: -30px;
  animation: blob 10s ease-in-out infinite;
}
.blob-2 {
  width: 220px; height: 220px;
  background: #7c3aed;
  bottom: 0; left: 10px;
  animation: blob 13s 2s ease-in-out infinite;
}
.hero-photo-frame {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(201,168,232,.15);
  border: 1px solid var(--glass-border);
}
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-photos-row {
  display: block;
}

.about-photo-img {
  width: 220px;
  height: 290px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  display: block;
}

/* Colonne carte NC */
.about-origin-col {
  display: flex;
  flex-direction: column;
}

.about-origin-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.origin-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  align-self: flex-start;
}

.about-nc-img {
  width: 100%;
  height: auto;
  min-height: 260px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(201,168,232,.2));
}

.origin-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-align: center;
}

.origin-city {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.origin-country {
  font-size: .82rem;
  color: var(--accent);
  font-weight: 600;
}

.origin-motto {
  font-style: italic;
  font-size: .73rem;
  color: var(--muted);
  margin-top: .25rem;
  line-height: 1.5;
}

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  background: rgba(201,168,232,.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.stat {
  flex: 1;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  border-right: 1px solid var(--glass-border);
}
.stat:last-child { border-right: none; }
.stat-n {
  font-family: var(--ff-head);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-l {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  margin-top: .35rem;
  letter-spacing: .04em;
}

/* Home projects */
.home-projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* ── Carte vedette ── */
.featured-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: var(--tr);
  box-shadow: var(--shadow-sm);
}
.featured-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(201,168,232,.12);
  border-color: var(--accent);
}
.featured-card-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-card-img img,
.featured-card-img video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
  background: var(--bg-dark);
}
.featured-card:hover .featured-card-img img,
.featured-card:hover .featured-card-img video { transform: scale(1.04); }
.featured-card-overlay {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.45));
  pointer-events: none;
}
.featured-tag {
  background: rgba(13,11,20,.75);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .8rem;
  border-radius: 50px;
  letter-spacing: .06em;
  border: 1px solid var(--glass-border);
  text-transform: uppercase;
}
.featured-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.featured-card-body h3 {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}
.featured-card-body p { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; line-height: 1.65; }
.card-arrow { font-size: .82rem; color: var(--accent); font-weight: 600; }
.center-btn { text-align: center; }

/* ============================================================
   PAGE À PROPOS
   ============================================================ */
.about-hero {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-top: 1rem;
}
.about-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag {
  background: var(--accent-light);
  color: var(--accent);
  font-size: .73rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.tagline {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: left;
}
.about-text { color: var(--muted); line-height: 1.85; font-size: .97rem; text-align: justify; }
.about-section { margin-bottom: 3.5rem; }

/* Highlight box — Glassmorphisme */
.highlight-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

/* Two-col */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.col-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--tr);
}
.col-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.col-card h3 {
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
}
.col-card p { font-size: .88rem; color: var(--muted); line-height: 1.8; }

/* Word card */
.word-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.big-word {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(201,168,232,.4);
}
.word-card p { max-width: 680px; color: var(--muted); line-height: 1.85; }

/* Q&D grid */
.qd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.qd-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid transparent;
  position: relative;
  transition: var(--tr);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.qd-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.qd-card.positive {
  background: rgba(111,207,151,.07);
  border-color: rgba(111,207,151,.2);
}
.qd-card.negative {
  background: rgba(235,87,87,.07);
  border-color: rgba(235,87,87,.18);
}
.qd-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: .9rem;
  backdrop-filter: blur(8px);
}
.positive .qd-icon { background: rgba(111,207,151,.15); color: var(--green); }
.negative .qd-icon { background: rgba(235,87,87,.15); color: var(--red); }
.qd-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.qd-card p { font-size: .83rem; color: var(--muted); line-height: 1.7; }
.qd-grid .qd-card:nth-child(4) { grid-column: 1 / 2; }
.qd-grid .qd-card:nth-child(5) { grid-column: 2 / 3; }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; margin-bottom: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(201,168,232,.1));
}
.tl-item { position: relative; margin-bottom: 2rem; }
.tl-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 12px var(--accent-glow);
}
.tl-date {
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: .25rem;
}
.tl-content h3 { font-size: .97rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.tl-content p { font-size: .87rem; color: var(--muted); line-height: 1.75; }

.parcours-aide {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  border-top: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem;
  margin-top: 1rem;
}
.parcours-aide h3 { font-size: .97rem; font-weight: 700; margin-bottom: .6rem; color: var(--text); }
.parcours-aide p { font-size: .88rem; color: var(--muted); line-height: 1.8; }

/* Aspirations */
.section-intro { color: var(--muted); margin-bottom: 1.75rem; max-width: 700px; line-height: 1.75; }
.aspirations-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.asp-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--tr);
}
.asp-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow), 0 0 25px rgba(201,168,232,.1); }
.asp-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.asp-icon {
  width: 40px; height: 40px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border);
}
.asp-label { font-size: .75rem; font-weight: 600; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.asp-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: .6rem; color: var(--text); }
.asp-card p { font-size: .83rem; color: var(--muted); line-height: 1.75; }

.jobs-section { margin-top: 1rem; }
.jobs-section h3 { font-size: .97rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.jobs-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.job-item {
  display: flex; align-items: center; gap: .5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: .5rem 1.1rem;
  font-size: .83rem;
  font-weight: 500;
  color: var(--muted);
  transition: var(--tr);
}
.job-item:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.job-item i { color: var(--accent); font-size: .88rem; }

/* Philosophy */
.philosophy-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.phil-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--tr);
}
.phil-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.phil-item i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}
.phil-item h3 { font-size: .9rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.phil-item p { font-size: .8rem; color: var(--muted); line-height: 1.65; }

/* Formation */
.formation-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.formation-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--tr);
}
.formation-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.formation-card > i {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}
.formation-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.formation-card p { font-size: .83rem; color: var(--muted); line-height: 1.7; }

/* ============================================================
   PAGE PROJETS
   ============================================================ */
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  color: var(--muted);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  transition: var(--tr);
  letter-spacing: .03em;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-color: var(--accent);
  color: var(--bg-dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ── Carte projet ── */
.proj-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--tr);
}
.proj-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg), 0 0 28px rgba(201,168,232,.12);
  border-color: var(--accent);
}
/* Skeleton loader — s'applique aux conteneurs img pendant le chargement */
.img-loading {
  position: relative;
  overflow: hidden;
}
.img-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(201,168,232,.04) 0%,
    rgba(201,168,232,.12) 50%,
    rgba(201,168,232,.04) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-sweep 1.4s ease infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes skeleton-sweep {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.proj-card-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-card-img img,
.proj-card-img video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
  background: var(--bg-dark);
}
.proj-card:hover .proj-card-img img,
.proj-card:hover .proj-card-img video { transform: scale(1.04); }
.proj-card-overlay {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.5));
  pointer-events: none;
}
.proj-num {
  font-family: var(--ff-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(243, 241, 245, 0.882);
  line-height: 1;
}
.proj-cat-badge {
  background: rgba(13,11,20,.75);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
  letter-spacing: .06em;
  text-transform: uppercase;
  align-self: flex-start;
  border: 1px solid var(--glass-border);
}
.proj-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.proj-card-body h3 {
  font-family: var(--ff-head);
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.3;
  color: var(--text);
}
.proj-card-body p { font-size: .83rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.65; }
.proj-card-link { font-size: .8rem; font-weight: 600; color: var(--accent); }

/* ============================================================
   PAGE DÉTAIL PROJET
   ============================================================ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .83rem;
  font-weight: 600;
  color: var(--accent);
  padding: .5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  margin-bottom: 2.5rem;
  transition: var(--tr);
}
.back-btn:hover { background: var(--accent-light); border-color: var(--accent); }

/* Image/vidéo principale du détail — pleine, non recadrée */
.detail-hero-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(201,168,232,.1);
  min-height: 200px;
}
.detail-hero-img {
  width: 100%;
  max-height: 520px;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(201,168,232,.1);
  object-fit: contain;
  display: block;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
}
.detail-hero-wrap .detail-hero-img {
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}
video.detail-hero-img {
  object-fit: contain;
}

.detail-cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.detail-title {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.15;
  color: var(--text);
}
.detail-desc { font-size: 1rem; color: var(--muted); max-width: 700px; margin-bottom: 1.75rem; line-height: 1.85; }
.detail-live-link-wrap { margin-bottom: 2.5rem; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.detail-block {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
}
.detail-block h3 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.detail-block p, .detail-block li {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
}
.detail-block ul { padding-left: 1.1rem; list-style: disc; }
.detail-block li { margin-bottom: .3rem; }

.detail-full-block {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}
.detail-full-block h3 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.detail-full-block p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.85;
}

/* Galerie preuves */
.detail-proofs {
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--glass-border);
  margin-top: 1.5rem;
}
.detail-proofs h3 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.proof-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Vignette preuve — image complète visible */
.proof-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--tr);
  box-shadow: var(--shadow-sm);
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.proof-thumb:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow), 0 0 20px rgba(201,168,232,.2);
  border-color: var(--accent);
}
.proof-thumb img,
.proof-thumb video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg-dark);
}
.proof-thumb-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(7,6,15,.88), transparent);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  padding: 1rem .5rem .35rem;
  text-align: center;
  letter-spacing: .04em;
}

/* ============================================================
   PAGE COMPÉTENCES
   ============================================================ */
.skills-section { margin-bottom: 3.5rem; }
.skills-philosophy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  margin-bottom: 3rem;
  padding: 2rem 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.skills-philosophy i {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: .7;
}
.skills-philosophy blockquote {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0;
}
.skills-philosophy p {
  color: var(--muted);
  font-size: .93rem;
  max-width: 560px;
  line-height: 1.7;
  text-align: center;
}

.skills-heading {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text);
}
.skills-heading i { color: var(--accent); }
.skills-sub { font-size: .97rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }

.skill-list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2rem; }
.skill-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--tr);
}
.skill-item:hover { border-color: var(--accent); }
.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .6rem;
}
.skill-name { font-weight: 600; font-size: .88rem; display: flex; align-items: center; gap: .4rem; color: var(--text); }
.skill-name i { color: var(--accent); }
.skill-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 50px;
  background: var(--accent-light);
  color: var(--accent);
  letter-spacing: .05em;
  border: 1px solid var(--glass-border);
}
.skill-bar {
  height: 5px;
  background: rgba(201,168,232,.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: .6rem;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-dark), var(--accent));
  border-radius: 3px;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.skill-desc { font-size: .8rem; color: var(--muted); }

.tech-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tech-tag {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: .38rem .95rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  transition: var(--tr);
}
.tech-tag:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

.creative-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.creative-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--tr);
}
.creative-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.creative-card > i {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}
.creative-card h3 { font-size: .88rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.creative-card p { font-size: .83rem; color: var(--muted); line-height: 1.7; }

.comm-list { display: flex; flex-direction: column; gap: 1.1rem; }
.comm-item {
  display: flex;
  gap: 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--tr);
}
.comm-item:hover { border-color: var(--accent); }
.comm-icon {
  width: 46px; height: 46px;
  min-width: 46px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  border: 1px solid var(--glass-border);
}
.comm-text h3 { font-size: .88rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.comm-text p { font-size: .82rem; color: var(--muted); line-height: 1.7; }

.lang-grid { display: flex; flex-direction: column; gap: 1rem; max-width: 500px; }
.lang-item { margin-bottom: .25rem; }
.lang-row { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.lang-name { font-weight: 600; font-size: .88rem; color: var(--text); }
.lang-level { font-size: .8rem; color: var(--muted); }

/* ============================================================
   PAGE CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}
.contact-form-col h2,
.contact-info-col h2 {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .83rem; font-weight: 600; color: var(--muted); }
.required { color: var(--red); }
.form-group input,
.form-group textarea {
  padding: .8rem 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: .88rem;
  color: var(--text);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color var(--tr), box-shadow var(--tr);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: .6; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,232,.15);
}
.form-group input.error,
.form-group textarea.error { border-color: var(--red); }
.form-err { font-size: .78rem; color: var(--red); min-height: 1rem; }
.form-success[hidden], .cv-dl-success[hidden] { display: none !important; }

.form-success {
  background: rgba(111,207,151,.1);
  border: 1px solid rgba(111,207,151,.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .88rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: .6rem;
}


/* Toast de succès (téléchargement CV) */
.cv-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg-alt);
  border: 1px solid rgba(111,207,151,.35);
  color: var(--green);
  padding: .9rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .88rem;
  font-weight: 500;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  max-width: calc(100vw - 2rem);
  text-align: left;
}
.cv-toast i { font-size: 1.1rem; flex-shrink: 0; }
.cv-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 6, 15, 0.95);
  backdrop-filter: blur(15px);
  display: none; /* Caché au départ */
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 1.5rem;
}

.modal-overlay.active { display: flex; } /* S'affiche quand on ajoute la classe 'active' */

.modal-content {
  background: var(--bg-alt);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.4s ease both;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 2rem;
  color: var(--muted);
  background: none; border: none; cursor: pointer;
}

.modal-header { text-align: center; margin-bottom: 2rem; }
.modal-header i { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }
.modal-header h2 { font-family: var(--ff-head); font-size: 1.5rem; margin-bottom: 0.5rem; text-align: center;}
.modal-header p { font-size: 0.9rem; color: var(--muted); text-align: center;}



.contact-info-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--tr);
}
.contact-info-item:hover { border-color: var(--accent); }
.ci-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .97rem;
  border: 1px solid var(--glass-border);
}
.ci-label { font-size: .72rem; color: var(--muted); display: block; margin-bottom: .1rem; }
.ci-value { font-size: .85rem; font-weight: 600; color: var(--text); word-break: break-all; overflow-wrap: break-word; }
.ci-value:hover { color: var(--accent); }

.cv-section { margin-bottom: 1.5rem; }
.cv-section h3 { font-size: .88rem; font-weight: 700; margin-bottom: .75rem; color: var(--text); }

/* Carte CV */
.cv-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cv-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cv-card-icon {
  width: 46px; height: 46px;
  min-width: 46px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--bg-dark);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.cv-card-top h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin: 0 0 .15rem; }
.cv-card-top p  { font-size: .78rem; color: var(--muted); margin: 0; }
.cv-dl-success {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
  font-size: .83rem;
  color: var(--green);
  background: rgba(111,207,151,.1);
  border: 1px solid rgba(111,207,151,.25);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  animation: fadeInUp .4s ease both;
}

.proof-thumb--light {
  background: #ffffff;
}
.proof-thumb--light img {
  background: #ffffff;
}
.lb-media--light {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.lb-media--light img {
  background: #ffffff;
}

.availability-badge {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .82rem;
  color: var(--muted);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: .85rem 1.2rem;
}
.avail-dot {
  width: 10px; height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(111,207,151,.2);
  animation: pulse 2s ease infinite;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.active { display: flex; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,6,15,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lb-media {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp .25s ease both;
}
.lb-media img,
.lb-media video {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(201,168,232,.15);
  border: 1px solid var(--glass-border);
  display: block;
}
.lb-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--tr);
}
.lb-close:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--tr);
}
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-prev:hover, .lb-next:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

.lb-caption {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: .85rem;
  margin-top: .85rem;
  text-align: center;
}
.lb-counter {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  margin-top: .25rem;
  letter-spacing: .08em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: rgba(7,6,15,.9);
  backdrop-filter: var(--glass-blur);
  color: var(--muted);
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--glass-border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer p { font-size: .8rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { font-size: .8rem; transition: color var(--tr); }
.footer-nav a:hover { color: var(--accent); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blob {
  0%, 100% { border-radius: 50%; }
  33%  { border-radius: 60% 40% 70% 30% / 50% 60% 40% 70%; }
  66%  { border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(111,207,151,.2); }
  50%       { box-shadow: 0 0 0 6px rgba(111,207,151,.08); }
}

.page.active .proj-card,
.page.active .asp-card,
.page.active .qd-card,
.page.active .skill-item,
.page.active .featured-card { animation: fadeInUp .5s ease both; }
.page.active .proj-card:nth-child(2),
.page.active .featured-card:nth-child(2) { animation-delay: .07s; }
.page.active .proj-card:nth-child(3),
.page.active .featured-card:nth-child(3) { animation-delay: .14s; }
.page.active .proj-card:nth-child(4) { animation-delay: .21s; }
.page.active .proj-card:nth-child(5) { animation-delay: .28s; }
.page.active .proj-card:nth-child(6) { animation-delay: .35s; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  z-index: 500;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--accent-light);
  color: var(--text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --nav-h: 62px; }
  .nav-logo-img { height: 44px; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 1.5rem 2rem; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { min-height: 260px; }
  .hero-photo-frame { width: 220px; height: 270px; }
  /* About hero : photo + texte en colonne, carte NC dessous centree */
  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about-photos-row { width: auto; }
  .about-photo-img { width: 200px; height: 260px; }
  .about-tags { justify-content: center; }
  .about-origin-col {
    display: flex;
    justify-content: center;
  }
  .about-origin-card {
    width: 100%;
    max-width: 360px;
  }
  .about-nc-img { min-height: 180px; }
  .two-col { grid-template-columns: 1fr; }
  .qd-grid { grid-template-columns: repeat(2,1fr); }
  .qd-grid .qd-card:nth-child(4),
  .qd-grid .qd-card:nth-child(5) { grid-column: auto; }
  .aspirations-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: repeat(2,1fr); }
  .formation-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .proof-gallery { grid-template-columns: repeat(2,1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; }
  .stat { border-right: none; border-bottom: 1px solid var(--glass-border); flex: 1 1 45%; }
  .creative-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --nav-h: 56px; }
  .nav-container { padding: 0 1.1rem; }
  .nav-logo-img { height: 36px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    width: 100%;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: #0d0b14;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    gap: .6rem;
    z-index: 999;
    box-sizing: border-box;
  }
  .nav-menu.open { display: flex; }
  .nav-link {
    width: 100%;
    box-sizing: border-box;
    padding: .95rem 1.1rem;
    font-size: .95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-cta { text-align: center; justify-content: center; }
  .qd-grid { grid-template-columns: 1fr; }
  .qd-grid .qd-card:nth-child(4),
  .qd-grid .qd-card:nth-child(5) { grid-column: auto; }
  .projects-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .hero-photo-frame { width: 180px; height: 220px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .filter-bar { gap: .4rem; }
  .filter-btn { padding: .38rem .85rem; font-size: .78rem; }
  .proof-gallery { grid-template-columns: repeat(2,1fr); }
  /* Désactive justify sur mobile — évite les espaces disgracieux */
  body { text-align: left; }
  .about-text, .about-intro-col p, p { text-align: left; }
}