@charset "UTF-8";
:root {
  --bg: #f5f0eb;
  --ink: #1a1614;
  --muted: #6b5e56;
  --accent: #8c3a3a;
  --accent-light: #c4796c;
  --cream: #ece6de;
  --line: #d0c8be;
  --white: #faf8f5;
  --nav-height: 52px;
}

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

html {
  scroll-behavior: smooth;
  /* Empêche le menu sticky de masquer le haut des sections lors du défilement */
  scroll-padding-top: calc(var(--nav-height) + 40px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ── FOND INTERACTIF ── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ── HEADER ── */
header {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: 70px 60px 60px;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.18;
  transition: transform 0.8s ease-out;
}

header:hover::before {
  transform: scale(1.1);
}

header::after {
  content: "MW";
  position: absolute;
  bottom: -20px;
  right: 50px;
  font-family: "Cormorant Garamond", serif;
  font-size: 160px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.avatar-wrap {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--accent-light);
  overflow: hidden;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.avatar-wrap:hover {
  border-color: var(--accent);
}

.avatar-initials {
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 2px;
}

.header-text h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.1;
}

.header-text h1 span {
  color: var(--accent-light);
}

.header-text h2 {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-top: 10px;
}

/* Typewriter effect */
.typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent-light);
  box-sizing: border-box;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* ── NAV ── */
nav {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
}

nav ul {
  max-width: 960px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  gap: 0;
  padding: 0 60px;
}

nav ul li a {
  display: block;
  padding: 16px 20px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(140, 58, 58, 0.04);
}

/* ── LAYOUT ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 60px 80px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px 80px;
}

section {
  grid-column: 1/-1;
}

.section-label {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

h5 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

h6 {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── À PROPOS ── */
#a-propos {
  grid-column: 1/-1;
}

.about-flex-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.about-photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--ink);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.about-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.about-photo-frame:hover::before {
  opacity: 0.5;
}

.about-photo-frame .avatar-initials-big {
  font-family: "Cormorant Garamond", serif;
  font-size: 80px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 4px;
  position: relative;
  z-index: 1;
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s ease;
}

.about-photo-frame:hover img {
  transform: scale(1.05);
}

.photo-caption {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  text-transform: uppercase;
}

.about-content p {
  font-size: 14px;
  line-height: 1.8;
}

/* ── COMPÉTENCES ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.skill-category h5 {
  margin-bottom: 10px;
}

.skill-category ul {
  list-style: none;
}

.skill-category ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-category ul li::before {
  content: "▸";
  color: var(--accent);
  font-size: 10px;
}

/* ── TABLEAU FORMATIONS ── */
.table-container {
  overflow-x: auto; /* Permet le scroll horizontal sur petit écran */
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

thead tr {
  background: var(--ink);
  color: var(--cream);
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
}

tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

tbody tr:nth-child(even) {
  background: var(--white);
}

tbody tr:hover {
  background: var(--cream);
}

tbody td {
  padding: 14px 16px;
  color: var(--muted);
  vertical-align: top;
}

tbody td:first-child {
  color: var(--accent);
  font-weight: 400;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 1px;
}

tbody td strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 2px;
}

/* ── PROJETS ── */
.projects-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  perspective: 1000px; /* Ajout d'une perspective pour l'effet 3D */
}

.projects-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: crosshair;
  transform-style: preserve-3d;
  will-change: transform;
}

.projects-list li:hover {
  border-color: var(--accent-light);
  box-shadow: 0 15px 35px rgba(26, 22, 20, 0.1);
}

.projects-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.projects-list li:hover::before {
  width: 4px;
}

.project-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.project-type {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── CONTACT & LANGUES ── */
.info-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 40px;
}

.info-block h5 {
  margin-bottom: 14px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.contact-list li .icon {
  color: var(--accent);
  font-size: 14px;
  width: 16px;
  flex-shrink: 0;
  text-align: center;
}

.contact-list li a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-list li a:hover {
  color: var(--accent);
}

.lang-list {
  list-style: none;
}

.lang-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.lang-dot {
  display: flex;
  gap: 4px;
}

.lang-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.lang-dot span.filled {
  background: var(--accent);
}

.interests-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interests-list li {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: capitalize;
  color: var(--muted);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.interests-list li:hover {
  background: var(--white);
  border-color: var(--accent-light);
  color: var(--accent);
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: var(--muted);
  text-align: center;
  padding: 30px 20px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

footer span {
  color: var(--accent-light);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes typing {
  from {
    max-width: 0;
  }
  to {
    max-width: 100%;
  }
}
@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent-light);
  }
}
.header-inner {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

main {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

@media (max-width: 768px) {
  header {
    padding: 40px 24px 36px;
  }
  .header-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  nav {
    overflow-x: auto;
  }
  nav ul {
    padding: 0 10px;
    width: max-content;
  }
  nav ul li a {
    padding: 14px 12px;
    font-size: 10px;
  }
  main {
    padding: 40px 24px 60px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  #a-propos, .about-flex-container {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=styles.css.map */
