@font-face {
  font-family: 'TropicGround';
  src: url('font/TropicGround-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-star {
  width: 60px;
  height: 60px;
  animation: loader-spin 2s linear infinite, loader-pulse 1.5s ease-in-out infinite;
}

.loader-star svg {
  width: 100%;
  height: 100%;
}

@keyframes loader-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes loader-pulse {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
}

.loader-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.2em;
  text-transform: lowercase;
  overflow: hidden;
  white-space: nowrap;
  animation: loader-text-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes loader-text-reveal {
  from { opacity: 0; letter-spacing: 0.5em; }
  to { opacity: 1; letter-spacing: 0.2em; }
}

.loader-bar {
  width: 160px;
  height: 1px;
  background: rgba(75, 63, 110, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #9C8CB9, #4B3F6E);
  border-radius: 2px;
  animation: loader-fill 2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes loader-fill {
  0% { width: 0%; }
  60% { width: 80%; }
  100% { width: 100%; }
}


:root {
  --bg: #f5eee8;
  --dark: #4B3F6E;
  --pink: #e8a0b4;
  --blue-asterisk: #7aacbf;
  --nav-bg: #f5eee8;
  --noise-opacity: 0.025;
}

body.dark {
  --bg: #0e0c14;
  --dark: #e8d5f5;
  --pink: #6b3352;
  --blue-asterisk: #c9a8e8;
  --nav-bg: #0e0c14;
  --noise-opacity: 0.01;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  cursor: none;
  transition: background 0.6s ease;
  isolation: isolate;
}


.cursor {
  position: fixed;
  width: 28px; height: 28px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

.cursor svg {
  width: 100%; height: 100%;
}


header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 36px;
  z-index: 100;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--dark);
  text-transform: lowercase;
  transition: color 0.6s ease;
}

.logo a {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 75px;
  width: auto;
  max-width: 75px;
  display: block;
  flex-shrink: 0;
}

.logo-name {
  font-family: 'TropicGround', serif;
  font-size: 22px;
  color: var(--dark);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  transition: color 0.6s ease;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  width: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 28px;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.menu-btn .bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  transition: all 0.4s cubic-bezier(0.76, 0, 0.24, 1), background 0.6s ease;
  transform-origin: center;
}

.menu-btn:focus,
.menu-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.menu-btn.open .bar:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.menu-btn.open .bar:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.asterisk-fixed {
  font-size: 30px;
  color: var(--blue-asterisk);
  font-weight: 300;
  line-height: 1;
  user-select: none;
  animation: spin-slow 12s linear infinite;
  display: inline-block;
  cursor: none;
  position: relative;
}

.asterisk-fixed:hover {
  animation: spin-slow 2s linear infinite;
}

.asterisk-fixed::after {
  content: attr(data-label);
  position: absolute;
  bottom: -26px;
  right: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--dark);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.asterisk-fixed:hover::after {
  opacity: 0.5;
}


@keyframes burst {
  0% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.5) rotate(90deg); }
  60% { transform: scale(0.85) rotate(200deg); }
  100% { transform: scale(1) rotate(360deg); }
}

.asterisk-fixed.burst {
  animation: burst 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


.hero {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease;
  background-image: url('img/fond.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-portfolio-text {
  position: absolute;
  bottom: 52%;
  left: 0;
  right: 0;
  font-family: 'TropicGround', serif;
  font-size: clamp(60px, 10vw, 130px);
  color: var(--dark);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  white-space: nowrap;
  pointer-events: all;
  user-select: none;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  transition: color 0.6s ease, font-family 0s, opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
  cursor: none;
}


.bg-art {
  position: absolute;
  bottom: -60px;
  right: -30px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(200px, 30vw, 380px);
  font-weight: 900;
  color: var(--pink);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  transition: color 0.6s ease;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 940px;
  padding: 0 40px;
}


.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 500;
  line-height: 1.0;
  color: var(--dark);
  letter-spacing: -0.01em;
  position: relative;
  transition: color 0.6s ease;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(1) span { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.35s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.5s; }

@keyframes slideUp {
  to { transform: translateY(0); opacity: 1; }
}


.of-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1.5px solid var(--dark);
  font-size: clamp(36px, 5vw, 60px);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-style: italic;
  vertical-align: middle;
  margin-right: 16px;
  position: relative;
  top: -8px;
  transition: border-color 0.6s ease;
}


.hero-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 500;
  line-height: 1.0;
  color: var(--dark);
  position: relative;
  display: inline-block;
  transition: color 0.6s ease;
}


.description-wrap {
  position: absolute;
  top: 46%;
  left: 47%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: fadeIn 0.8s ease 1.1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.description-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--dark);
  white-space: nowrap;
  transition: color 0.6s ease;
}

.paren {
  font-size: 38px;
  font-weight: 200;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
  opacity: 0.5;
}

.desc-text {
  max-width: 200px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  font-size: 12px;
}

.badge {
  position: absolute;
  top: 28%;
  right: 16%;
  width: 76px;
  height: 76px;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.9s forwards;
}

.badge svg {
  animation: spin-slow 10s linear infinite;
  transform-origin: center;
}

.badge-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}


.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.02em;
  margin-top: 10px;
  overflow: hidden;
  transition: color 0.6s ease;
}

.hero-subtitle span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.ampersand {
  font-style: italic;
  font-weight: 300;
}


.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at 50% 8%);
  transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1), background 0.6s ease;
  overflow: hidden;
  outline: none;
  border: none;
  box-shadow: none;
}

.nav-overlay.open {
  clip-path: circle(150% at 50% 8%);
  outline: none;
}

body.dark .nav-overlay {
  background: #0e0c14;
}
.nav-bg-text {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(120px, 20vw, 260px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(75,63,110,0.18);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
  transition: all 0.5s ease;
  line-height: 1;
  text-align: center;
}

body.dark .hero {
  background-image: url('img/fond2.png');
}

body.dark .nav-bg-text {
  -webkit-text-stroke: 1px rgba(232,213,245,0.18);
}

.nav-bg-text.visible {
  bottom: -40px;
  -webkit-text-stroke: 1px rgba(75,63,110,0.28);
}

body.dark .nav-bg-text.visible {
  -webkit-text-stroke: 1px rgba(232,213,245,0.28);
}


.nav-links {
  text-align: center;
  position: relative;
  z-index: 2;
}

.nav-links a {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.15;
  overflow: hidden;
  position: relative;
  cursor: none;
  transition: color 0.3s ease;
}

.nav-links a .link-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-overlay.open .nav-links a:nth-child(1) .link-inner { transition-delay: 0.08s; transform: translateY(0); }
.nav-overlay.open .nav-links a:nth-child(2) .link-inner { transition-delay: 0.14s; transform: translateY(0); }
.nav-overlay.open .nav-links a:nth-child(3) .link-inner { transition-delay: 0.20s; transform: translateY(0); }

.nav-links a:hover {
  font-weight: 500;
}


.nav-socials {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.nav-socials a {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  overflow: hidden;
  display: block;
  cursor: none;
  transition: color 0.3s ease;
}

.nav-socials a .link-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay.open .nav-socials a:nth-child(1) .link-inner { transition-delay: 0.32s; transform: translateY(0); }
.nav-overlay.open .nav-socials a:nth-child(2) .link-inner { transition-delay: 0.38s; transform: translateY(0); }
.nav-overlay.open .nav-socials a:nth-child(3) .link-inner { transition-delay: 0.44s; transform: translateY(0); }

.nav-socials a:hover {
  font-style: italic;
}

.nav-links a {
  position: relative;
}

.nav-links a .link-default {
  display: block;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s ease;
}

.nav-links a:hover .link-default {
  transform: translateY(-10px);
  opacity: 0;
}

.nav-links a .link-italic {
  position: absolute;
  top: 0; left: 0; right: 0;
  font-style: italic;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s ease;
}

.nav-links a:hover .link-italic {
  transform: translateY(0);
  opacity: 1;
}

.decorative-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 0;
  background: var(--dark);
  opacity: 0.2;
  animation: growLine 1s ease 0.3s forwards;
  transform: translate(-50%,-50%);
  display: none;
}

@keyframes growLine {
  to { height: 60px; }
}


footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  z-index: 10;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--dark);
  text-transform: lowercase;
  opacity: 1;
  transition: color 0.6s ease;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.6s ease;
}

body.page-contact {
  overflow: hidden auto !important;
  height: auto !important;
  min-height: 100%;
}

html:has(body.page-contact) {
  overflow: hidden auto !important;
  height: auto !important;
}

body.page-contact header {
  position: sticky;
  top: 0;
  background: var(--bg);
  transition: background 0.6s ease;
}

body.page-contact.dark header { background: #0e0c14; }

body.page-contact footer {
  position: static;
  padding: 28px 60px;
  border-top: 1px solid rgba(75, 63, 110, 0.1);
}

body.page-contact.dark footer { border-top: 1px solid rgba(232, 213, 245, 0.08); }
.contact-page {
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  padding-bottom: 120px;
}

.contact-title-wrap {
  padding: 140px 60px 0;
  overflow: hidden;
}

.contact-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(70px, 12vw, 160px);
  font-weight: 400;
  line-height: 0.9;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin: 0;
  opacity: 0;
  transform: translateY(60px);
  animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  transition: color 0.6s ease;
}

.contact-title em { font-style: italic; font-weight: 400; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.contact-rule {
  width: calc(100% - 120px);
  margin: 40px 60px 0;
  height: 1px;
  background: var(--dark);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: revealLine 1s cubic-bezier(0.76, 0, 0.24, 1) 0.4s forwards;
  transition: background 0.6s ease;
}

@keyframes revealLine {
  to { opacity: 0.2; transform: scaleX(1); }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
}

.contact-col {
  padding: 70px 60px 80px;
  border-right: 1px solid rgba(75, 63, 110, 0.1);
  opacity: 0;
  transform: translateY(20px);
}

body.dark .contact-col { border-right-color: rgba(232, 213, 245, 0.08); }
.contact-col:last-child { border-right: none; }

.contact-col:nth-child(1) { animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards; }
.contact-col:nth-child(2) { animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards; }

.col-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.6;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.6s ease;
}

.col-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--dark);
  opacity: 0.4;
  flex-shrink: 0;
}

.socials-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 50px; }

.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(75, 63, 110, 0.08);
  text-decoration: none;
  cursor: none;
  transition: padding-left 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

body.dark .social-item { border-bottom-color: rgba(232, 213, 245, 0.06); }
.social-item:hover { padding-left: 12px; }

.social-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  color: var(--dark);
  transition: color 0.6s ease;
}

.social-item:hover .social-name { font-style: italic; }

.social-ext {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--dark);
  opacity: 0.6;
  transition: opacity 0.3s ease, color 0.6s ease;
}

.social-item:hover .social-ext { opacity: 1; }

.cv-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease, gap 0.3s ease, color 0.6s ease;
  cursor: none;
}

.cv-link:hover { opacity: 1; gap: 16px; }

.form-fields { display: flex; flex-direction: column; }

.field-row {
  border-bottom: 1px solid rgba(75, 63, 110, 0.12);
  padding: 14px 0;
  transition: border-color 0.3s ease;
}

body.dark .field-row { border-bottom-color: rgba(232, 213, 245, 0.1); }
.field-row:focus-within { border-bottom-color: var(--dark); }

.field-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.7;
  display: block;
  margin-bottom: 4px;
  transition: opacity 0.3s ease, color 0.6s ease;
}

.field-row:focus-within .field-label { opacity: 1; }

.field-input, .field-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: var(--dark);
  padding: 2px 0;
  box-sizing: border-box;
  resize: none;
  transition: color 0.6s ease;
  cursor: none;
}

.field-textarea { min-height: 80px; }

.field-input::placeholder, .field-textarea::placeholder {
  color: var(--dark);
  opacity: 0.3;
  font-style: italic;
}

.mail-notice {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--dark);
  opacity: 0.65;
  margin-top: 20px;
  line-height: 1.5;
  transition: color 0.6s ease;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--dark);
  border: none;
  padding: 18px 36px;
  cursor: none;
  transition: background 0.4s ease, color 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.3;
  pointer-events: none;
  align-self: flex-start;
  margin-top: 24px;
}

.btn-submit.active { opacity: 1; pointer-events: all; }

.btn-submit.active:hover {
  background: transparent;
  color: var(--dark);
  outline: 1px solid var(--dark);
  transform: translateY(-2px);
}

.btn-arrow { transition: transform 0.3s ease; }
.btn-submit.active:hover .btn-arrow { transform: translateX(4px); }


@media (max-width: 768px) {

  header { padding: 20px 24px; }

  
  .hero-portfolio-text {
    font-size: clamp(40px, 10vw, 80px);
    letter-spacing: 0.02em;
  }

  
  footer { padding: 16px 24px; font-size: 11px; }


  .nav-links a { font-size: clamp(32px, 8vw, 60px); letter-spacing: 0.08em; }
  .nav-socials { bottom: 40px; gap: 2px; }
  .nav-socials a { font-size: clamp(13px, 3.5vw, 18px); }
  .nav-bg-text { font-size: clamp(80px, 18vw, 160px); }


  .projets-hero { padding: 100px 24px 40px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .projets-hero-title { font-size: clamp(52px, 12vw, 100px); }
  .projets-divider { width: calc(100% - 48px); margin: 0 24px; }


  .projets-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 32px 24px 0;
  }
  .projet-card:nth-child(n) { grid-column: span 1 !important; }
  .projet-img-wrap { aspect-ratio: 16/10 !important; }


  .projets-behance { padding: 48px 24px 0; }
}

@media (max-width: 480px) {
  header { padding: 16px 20px; }
  .logo { font-size: 14px; }
  .asterisk-fixed { width: 36px; height: 30px; }
  footer { padding: 14px 20px; font-size: 10px; }

  .projets-hero { padding: 80px 20px 32px; }
  .projets-hero-title { font-size: clamp(44px, 13vw, 80px); }
  .projets-divider { width: calc(100% - 40px); margin: 0 20px; }
  .projets-grid { padding: 24px 20px 0; gap: 14px; }
  .projets-behance { padding: 40px 20px 0; }
  .behance-link { font-size: 12px; }

  .nav-links a { font-size: clamp(28px, 9vw, 52px); }
}

@media (max-width: 320px) {
  header { padding: 14px 16px; }
  footer { padding: 12px 16px; font-size: 10px; }

  .projets-hero { padding: 70px 16px 28px; }
  .projets-hero-title { font-size: 40px; }
  .projets-divider { width: calc(100% - 32px); margin: 0 16px; }
  .projets-grid { padding: 20px 16px 0; gap: 12px; }
  .projets-behance { padding: 32px 16px 0; }

  .nav-links a { font-size: 26px; }
  .nav-socials a { font-size: 12px; }
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-col {
    border-right: none;
    border-bottom: 1px solid rgba(75, 63, 110, 0.08);
    padding: 40px 32px;
  }
  body.dark .contact-col { border-bottom-color: rgba(232, 213, 245, 0.06); }
  .contact-title-wrap { padding: 80px 32px 0; }
  .contact-rule { width: calc(100% - 64px); margin: 30px 32px 0; }
  .contact-page { padding-bottom: 60px; }
  footer { padding: 24px 32px !important; }
}

@media (max-width: 480px) {
  .contact-title-wrap { padding: 60px 24px 0; }
  .contact-rule { width: calc(100% - 48px); margin: 24px 24px 0; }
  .contact-col { padding: 32px 24px; }
  .contact-title {
    font-size: clamp(52px, 14vw, 100px);
    letter-spacing: -0.02em;
  }
  .social-name { font-size: clamp(20px, 6vw, 28px); }
  .col-label { font-size: 10px; margin-bottom: 28px; }
  .field-input, .field-textarea { font-size: 15px; }
  .btn-submit { padding: 14px 28px; font-size: 11px; width: 100%; justify-content: center; }
  .cv-link { font-size: 12px; }
  footer { padding: 20px 24px !important; }
}

@media (max-width: 320px) {
  .contact-title-wrap { padding: 50px 16px 0; }
  .contact-rule { width: calc(100% - 32px); margin: 20px 16px 0; }
  .contact-col { padding: 28px 16px; }
  .contact-title { font-size: 46px; }
  .social-name { font-size: 18px; }
  .btn-submit { padding: 12px 20px; font-size: 10px; }
  footer { padding: 16px !important; font-size: 11px; }
}


body.page-projets {
  overflow: hidden auto !important;
  height: auto !important;
  min-height: 100%;
  min-width: 320px;
  box-sizing: border-box;
}

html:has(body.page-projets) {
  overflow: hidden auto !important;
  height: auto !important;
}

*, *::before, *::after { box-sizing: border-box; }

body.page-projets header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  transition: background 0.6s ease;
}

body.page-projets.dark header { background: #0e0c14; }

body.page-projets .hero {
  background-image: none !important;
  background-color: var(--bg);
}

.projets-page {
  min-height: 100vh;
  background: var(--bg);
  transition: background 0.6s ease;
  padding-bottom: 0;
}

body.dark .projets-page { background: #0e0c14; }

body.page-projets footer {
  position: static;
  margin-top: 80px;
  padding: 28px 60px;
  border-top: 1px solid rgba(75, 63, 110, 0.1);
}

body.page-projets.dark footer { border-top: 1px solid rgba(232, 213, 245, 0.08); }

.projets-hero {
  padding: 140px 60px 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.projets-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(70px, 12vw, 160px);
  font-weight: 400;
  line-height: 0.9;
  color: var(--dark);
  letter-spacing: -0.02em;
  transition: color 0.6s ease;
  opacity: 0;
  animation: cardReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.projets-hero-title em { font-style: italic; font-weight: 400; }

.projets-hero-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--dark);
  opacity: 0.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 16px;
  transition: color 0.6s ease;
  white-space: nowrap;
}

.projets-divider {
  width: calc(100% - 120px);
  margin: 0 60px;
  height: 1px;
  background: var(--dark);
  opacity: 0.15;
  transition: background 0.6s ease;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 60px 60px 0;
}

.projet-card {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  cursor: none;
  opacity: 0;
  transform: translateY(30px);
  animation: cardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.projet-card:nth-child(1) { grid-column: span 7; animation-delay: 0.1s; }
.projet-card:nth-child(2) { grid-column: span 5; animation-delay: 0.2s; }
.projet-card:nth-child(3) { grid-column: span 6; animation-delay: 0.3s; }
.projet-card:nth-child(4) { grid-column: span 6; animation-delay: 0.35s; }

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}

.projet-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(75, 63, 110, 0.06);
  position: relative;
}

.projet-card:nth-child(1) .projet-img-wrap { aspect-ratio: 16/10; }
.projet-card:nth-child(2) .projet-img-wrap { aspect-ratio: 3/4; }
.projet-card:nth-child(3) .projet-img-wrap img { object-position: 80% center; }

.projet-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(20%);
}

.projet-card:hover .projet-img-wrap img { transform: scale(1.06); filter: grayscale(0%); }

.projet-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(156,140,185,0.15) 0%, rgba(75,63,110,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 900;
  color: rgba(75, 63, 110, 0.08);
  letter-spacing: -0.02em;
  transition: background 0.6s ease;
}

body.dark .projet-placeholder {
  background: linear-gradient(135deg, rgba(201,168,232,0.1) 0%, rgba(232,213,245,0.05) 100%);
  color: rgba(232, 213, 245, 0.06);
}

.projet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(75, 63, 110, 0.0);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: background 0.4s ease;
  z-index: 2;
}

.projet-card:hover .projet-overlay { background: rgba(75, 63, 110, 0.5); }
body.dark .projet-card:hover .projet-overlay { background: rgba(14, 12, 20, 0.6); }

.projet-overlay-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f5eee8;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.projet-overlay-text::after { content: '→'; font-size: 16px; }
.projet-card:hover .projet-overlay-text { opacity: 1; transform: translateY(0); }

.projet-info {
  padding: 16px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.projet-titre {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.01em;
  transition: color 0.6s ease;
}

.projet-annee {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--dark);
  opacity: 0.4;
  letter-spacing: 0.1em;
  transition: color 0.6s ease;
}

.projets-behance { text-align: center; padding: 80px 60px 0; }

.behance-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(75, 63, 110, 0.3);
  padding-bottom: 8px;
  cursor: none;
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.4s ease;
}

body.dark .behance-link { border-color: rgba(232, 213, 245, 0.3); }
.behance-link:hover { gap: 28px; }
.behance-arrow { font-size: 1.2em; transition: transform 0.4s ease; }
.behance-link:hover .behance-arrow { transform: translateX(6px); }

.projet-num {
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #f5eee8;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.projet-card:hover .projet-num { opacity: 0.7; }

body.dark * { scrollbar-color: #2a2435 #0e0c14; }

/* ======= PAGE CONTACT — overrides html/body ======= */
body.page-contact {
  overflow: hidden auto !important;
  height: auto !important;
  min-height: 100%;
  min-width: 320px;
}

html:has(body.page-contact) {
  overflow: hidden auto !important;
  height: auto !important;
}

body.page-contact header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  transition: background 0.6s ease;
}

body.page-contact.dark header { background: #0e0c14; }

body.page-contact footer {
  position: static;
  padding: 28px 60px;
  border-top: 1px solid rgba(75, 63, 110, 0.1);
}

body.page-contact.dark footer { border-top: 1px solid rgba(232, 213, 245, 0.08); }


body.page-profil {
  overflow: hidden auto !important;
  height: auto !important;
  min-height: 100%;
  min-width: 320px;
  box-sizing: border-box;
}

html:has(body.page-profil) {
  overflow: hidden auto !important;
  height: auto !important;
}

body.page-profil header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  transition: background 0.6s ease;
}

body.page-profil.dark header { background: #0e0c14; }

body.page-profil footer {
  position: static;
  padding: 28px 60px;
  border-top: 1px solid rgba(75, 63, 110, 0.1);
}

body.page-profil.dark footer { border-top: 1px solid rgba(232, 213, 245, 0.08); }

.profil-page {
  min-height: 100vh;
  background: var(--bg);
  transition: background 0.6s ease;
}

body.dark .profil-page { background: #0e0c14; }

.profil-hero {
  padding: 140px 60px 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.profil-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(70px, 12vw, 160px);
  font-weight: 400;
  line-height: 0.9;
  color: var(--dark);
  letter-spacing: -0.02em;
  transition: color 0.6s ease;
  opacity: 0;
  animation: cardReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.profil-hero-title em { font-style: italic; font-weight: 400; }

.profil-hero-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--dark);
  opacity: 0.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 16px;
  transition: color 0.6s ease;
  white-space: nowrap;
}

.profil-divider {
  width: calc(100% - 120px);
  margin: 0 60px;
  height: 1px;
  background: var(--dark);
  opacity: 0.15;
  transition: background 0.6s ease;
}

.profil-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0 60px;
  margin-top: 80px;
}

.profil-col {
  padding: 40px 60px 60px 0;
}

.profil-col:last-child {
  padding: 40px 0 60px 60px;
  border-left: 1px solid rgba(75, 63, 110, 0.1);
}

body.dark .profil-col:last-child {
  border-left-color: rgba(232, 213, 245, 0.06);
}

.profil-bio {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--dark);
  transition: color 0.6s ease;
  opacity: 0;
  animation: cardReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.profil-bio p { margin: 0; }
.profil-bio p + p { margin-top: 1.4em; }

.skills-section {
  margin-top: 52px;
  opacity: 0;
  animation: cardReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.skills-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.4;
  margin-bottom: 28px;
  transition: color 0.6s ease;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(75, 63, 110, 0.08);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 300;
  color: var(--dark);
  letter-spacing: 0.01em;
  transition: color 0.6s ease, border-color 0.6s ease;
}

body.dark .skill-item { border-bottom-color: rgba(232, 213, 245, 0.06); }

.skill-item:first-child { border-top: 1px solid rgba(75, 63, 110, 0.08); }
body.dark .skill-item:first-child { border-top-color: rgba(232, 213, 245, 0.06); }

.skill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dark);
  opacity: 0.25;
  flex-shrink: 0;
  transition: background 0.6s ease;
}

.profil-info-blocks {
  display: flex;
  flex-direction: column;
  gap: 52px;
  opacity: 0;
  animation: cardReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.info-block-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.4;
  margin-bottom: 20px;
  transition: color 0.6s ease;
}

.formation-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(75, 63, 110, 0.08);
  transition: border-color 0.6s ease;
}

body.dark .formation-item { border-bottom-color: rgba(232, 213, 245, 0.06); }

.formation-item:first-of-type { border-top: 1px solid rgba(75, 63, 110, 0.08); }
body.dark .formation-item:first-of-type { border-top-color: rgba(232, 213, 245, 0.06); }

.formation-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}

.formation-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 400;
  color: var(--dark);
  transition: color 0.6s ease;
}

.formation-year {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--dark);
  opacity: 0.4;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 0.6s ease;
}

.formation-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--dark);
  opacity: 0.5;
  transition: color 0.6s ease;
}

.softwares-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.software-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  border: 1px solid rgba(75, 63, 110, 0.2);
  padding: 8px 16px;
  transition: border-color 0.6s ease, color 0.6s ease, background 0.3s ease;
}

body.dark .software-tag { border-color: rgba(232, 213, 245, 0.15); }

.software-tag:hover { background: rgba(75, 63, 110, 0.06); }
body.dark .software-tag:hover { background: rgba(232, 213, 245, 0.05); }

.profil-cta {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(75, 63, 110, 0.1);
  opacity: 0;
  animation: cardReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

body.dark .profil-cta { border-top-color: rgba(232, 213, 245, 0.06); }

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(75, 63, 110, 0.3);
  padding-bottom: 6px;
  cursor: none;
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.4s ease;
}

body.dark .cta-link { border-color: rgba(232, 213, 245, 0.3); }
.cta-link:hover { gap: 24px; }


@media (max-width: 900px) {
  .profil-content { grid-template-columns: 1fr; padding: 0 32px; }
  .profil-col { padding: 40px 0 40px; }
  .profil-col:last-child {
    padding: 40px 0 60px;
    border-left: none;
    border-top: 1px solid rgba(75, 63, 110, 0.08);
  }
  body.dark .profil-col:last-child { border-top-color: rgba(232, 213, 245, 0.06); }
  .profil-hero { padding: 80px 32px 40px; }
  .profil-divider { width: calc(100% - 64px); margin: 0 32px; }
  .profil-cta { flex-direction: column; align-items: flex-start; gap: 24px; }
  body.page-profil footer { padding: 24px 32px !important; }
}

@media (max-width: 768px) {
  .profil-hero { padding: 100px 24px 40px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .profil-hero-title { font-size: clamp(52px, 12vw, 100px); }
  .profil-divider { width: calc(100% - 48px); margin: 0 24px; }
  .profil-content { padding: 0 24px; margin-top: 48px; }
}

@media (max-width: 480px) {
  .profil-hero { padding: 60px 24px 32px; }
  .profil-hero-title { font-size: clamp(52px, 14vw, 100px); }
  .profil-content { padding: 0 24px; }
  .profil-divider { width: calc(100% - 48px); margin: 0 24px; }
  body.page-profil footer { padding: 20px 24px !important; }
}


.profil-col-right {
  position: relative;
}

.polaroid-float {
  margin-top: 100px;
  display: flex;
  justify-content: center;
}

.polaroid {
  background: #fff;
  padding: 10px 10px 34px;
  box-shadow:
    6px 8px 28px rgba(75, 63, 110, 0.18),
    0 2px 6px rgba(75, 63, 110, 0.1);
  transform: rotate(-5deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  width: 180px;
  opacity: 0;
  animation: polaroidDrop 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes polaroidDrop {
  from { opacity: 0; transform: rotate(-8deg) translateY(-16px); }
  to   { opacity: 1; transform: rotate(-5deg) translateY(0); }
}

.polaroid:hover {
  transform: rotate(-1deg) scale(1.05);
  box-shadow:
    10px 16px 40px rgba(75, 63, 110, 0.22),
    0 4px 10px rgba(75, 63, 110, 0.12);
}

body.dark .polaroid {
  background: #1e1a2e;
  box-shadow:
    6px 8px 28px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5eee8;
}

body.dark .polaroid-img {
  background: #0e0c14;
}

.polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(10%);
  transition: filter 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.polaroid:hover .polaroid-img img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.polaroid-caption {
  font-family: 'TropicGround', serif;
  font-size: 16px;
  color: #4B3F6E;
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

body.dark .polaroid-caption { color: #c9a8e8; }

.profil-col-right .profil-info-blocks {
  padding-top: 0;
}

@media (max-width: 900px) {
  .polaroid-float { justify-content: center; }
  .polaroid { width: 160px; }
}

@media (max-width: 480px) {
  .polaroid { width: 140px; }
}