:root {
  --bg: #0b0b0d;
  --text: #f5f5f5;
  --muted: rgba(245,245,245,0.65);
  --ghost: rgba(180,190,200,0.15); /* gris bleu */
}

.fond {
  position: fixed;
  inset: 0;
  z-index: 0; 
  pointer-events: none;
  overflow: hidden;
}

.fond img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.4; /* adjust */
}

.fond-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fond-stars img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%; /* bigger than screen so it fills */
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.4; /* adjust per layer for depth */
}

@font-face {
  font-family: fontTitre;
  src: url(font/Catchye.otf);
}

@font-face {
  font-family: fontBase;
  src: url(font/CaviarDreams.ttf);
}

@font-face {
  font-family: fontSpecial;
  src: url(font/StrangerThings.ttf);
}

.cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 1px solid white;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999;
  transition: transform 0.1s ease;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: fontBase;
  letter-spacing: 0.02em;
  /*overflow-x: hidden;*/
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

section {
  min-height: auto;
  padding: 10vh 8vw;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro {
  min-height: 75vh;
  justify-content: center;
}

p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
  /*max-width: 520px;*/
}

.title {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 600;
  font-family: fontTitre;
  letter-spacing: 0.03em;
  margin-bottom: 6vh;
}

#projects .title {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 600;
  font-family: fontTitre;
  letter-spacing: 0.03em;
  margin-bottom: 6vh;
  text-align: right;
}

.bg-title {
  position: absolute;
  top: 6vh;
  left: 8vw;
  font-family: fontTitre;
  font-size: clamp(5rem, 16vw, 12rem);
  font-weight: 700;
  color: var(--ghost);
  pointer-events: none;
}

#nav-toggle {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 100;
  background: none;
  border: none;
  color: #f5f5f5;
  font-size: 20px;
  cursor: pointer;
  letter-spacing: 0.2em;
}

#nav {
  position: fixed;
  inset: 0;
  background: rgba(10,10,12,0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 90;
}

#nav a {
  font-size: clamp(1.2rem, 2vw, 1.2rem);
  color: #f5f5f5;
  text-decoration: none;
  letter-spacing: 0.1em;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

#nav a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

#nav.open {
  opacity: 1;
  pointer-events: auto;
}

.intro {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.intro .title {
  font-size: clamp(4rem, 14vw, 10rem);
  opacity: 0;
  animation: introFade 1.2s ease forwards;
}

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

.about .content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6vw;
  align-items: center;
}

.about .photo {
  width: 100%;
  aspect-ratio: 3 / 4;   /* ajuste si besoin */
  overflow: hidden;
  position: relative;
}

.about .photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about .text {
  max-width: 500px;
}

.formation .content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.formation .content > div:first-child {
  text-align: right;
  padding-right: 1.5rem;
  border-right: 2px solid rgba(255,255,255,0.2);
  opacity: 1;
}

.formation .content > div:last-child {
  text-align: left;
  opacity: 0.85;
  color: rgba(255,255,255,0.8);
}

/* Responsive */
@media (max-width: 768px) {
  .formation .content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .formation .content > div {
    text-align: left; /* on reset sinon ça fait bizarre */
  }
}
.skills {
  padding: 18vh 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center; /* ðÂÂÂÂÂÂ centers horizontally */
}

.skills-rows {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 6vh; /* more breathing room vertically */
}

.skills-row {
  display: flex;
  justify-content: center; /* ðÂÂÂÂÂÂ center content */
  gap: 5vw; /* ðÂÂÂÂÂÂ slightly more space, balanced */
  white-space: nowrap;
}

.skills-row span {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(245,245,245,0.85);
  transition: opacity 0.3s ease;
}

.skills .bg-title {
  color: rgba(180,190,200,0.18);
}

.horizontal-track {
  display: flex;
  height: 100vh;
}

.panel {
  min-width: 60vw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--text);
}

.experience {
  max-width: 1000px;
  margin: 0 auto;
}

.experience p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  position: relative;
}

/* Ligne verticale */
.experience p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
}

/* Espacement entre expériences */
.experience p + p {
  margin-top: 3rem;
}

/* Titres plus impactants */
.experience strong {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.contact {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.contact p {
  margin: 3rem auto 0;
  max-width: 520px;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* Highlight email */
.contact p a,
.contact p span {
  font-weight: 500;
}

footer {
  padding: 6vh 8vw;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.reseaux-sociaux {
  display: flex;
  gap: 1.5rem;
}

.reseaux-sociaux a img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.reseaux-sociaux a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

footer p {
  margin: 0;
}

footer a.cv-link {
  text-decoration: none;
  font-weight: 600;
  color: inherit;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.3s ease;
}

footer a.cv-link:hover {
  border-color: rgba(255,255,255,0.7);
}

@media (max-width: 900px) {
  .about .content {
    grid-template-columns: 1fr;
  }

  .bg-title {
    display: none;
  }
}






.projects {
  padding-right: 0;
}

.projects-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6vw;
  min-height: 100vh;
}

/* LEFT */
.projects-left {
  position: sticky;
  top: 12vh;
  align-self: start;
}

.projects-menu {
  list-style: none;
  margin-top: 6vh;
}

.projects-menu li {
  font-size: 16px;
  margin-bottom: 14px;
  color: rgba(245,245,245,0.6);
  font-weight: 400;
  transition: all 0.3s ease;

  text-align: right;
}

.projects-menu li.active {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

/* RIGHT */
.projects-right {
  position: relative;
}

.projects-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-card {
  position: relative;
  height: 240px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.5;
  transform-origin: center;
  filter: blur(2px);
}

.project-card:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* IMAGE FULL COVER */
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

/* TEXTE AU MILIEU */
.project-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 0.4s ease;
  font-size: 28px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  z-index: 2;
}

/* Petit overlay sombre pour lisibilité */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

/* ACTIVE STATE */
.project-card.active {
  opacity: 1;
  filter: blur(0);
  z-index: 3;
  transform: scale(1.02);
}

.project-card:not(.active) {
  transform: scale(0.95);
}







/*PAGES*/

.illustrations-scene {
  position: relative;
  height: 100vh; /* full viewport height */
  overflow: hidden; /* hide normal scroll */
}

.illustrations-track {
  display: flex;
  gap: 5vw;
  height: 100%;
}

.illustration-card {
  flex: 0 0 70vw; /* width of each card */
  height: 80%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform 0.5s ease;
}

.illustration-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.illustration-card:hover img {
  transform: scale(1.05);
}

.illustration-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.3s ease 0.5s;
}

.illustration-card:hover .illustration-overlay {
  opacity: 1;
}

.illustration-overlay h3 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.illustration-overlay p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 70%;
}





.bento-container {
  display: grid;
  /* Only 3 columns = much wider images */
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense; 
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.photo-item {
  position: relative;
  overflow: hidden;
  background: #111;
}

/* --- THE WIDE & STABLE SHAPES --- */

/* Standard Square (1/3 of the row) */
.item-standard { 
  grid-column: span 1; 
  aspect-ratio: 1 / 1; 
}

/* Wide Landscape (2/3 of the row) - No more skinny portraits! */
.item-wide { 
  grid-column: span 2; 
  aspect-ratio: 16 / 9; 
}

/* Feature Block (2/3 width and height) */
.item-feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

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

/* RESPONSIVE: Tablet and Phone */
@media (max-width: 900px) {
  .bento-container {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
  .item-wide, .item-feature {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .bento-container {
    grid-template-columns: 1fr; /* 1 per row on phones */
  }
  .item-wide, .item-feature, .item-standard {
    grid-column: span 1 !important;
    aspect-ratio: 4 / 3;
  }
}




.projets-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10vh 8vw;
  display: flex;
  flex-direction: column;
  gap: 10vh;
}

/* Layout général */
.projet {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.projet-right {
  grid-template-columns: 1fr 1.2fr;
}

.projet-right .projet-visuel {
  order: 2;
}

/* VISUEL */
.projet-visuel {
  position: relative;
  width: 100%;
  height: 420px;
}

.projet-image {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
}

.projet-link {
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.projet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.projet-frame {
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  border: 1px solid rgba(255,255,255,0.25);
  z-index: 1;
}

/* TEXTE */
.projet-texte h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.projet-texte p {
  max-width: 420px;
  opacity: 0.8;
  line-height: 1.6;
}

.projet-meta {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* HOVER INFO */
.projet-hover {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.projet:hover .projet-hover {
  opacity: 1;
  transform: translateY(0);
}

.projet-hover a {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  color: white;
}

.projet-hover a:hover {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  color: lightgrey;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.projet-hover a::after {
  content: " →";
}

@media (max-width: 900px) {
  .projet,
  .projet-right {
    grid-template-columns: 1fr;
  }

  .projet-right .projet-visuel {
    order: 0;
  }

  .projet-visuel {
    height: 300px;
  }
}





/* Conteneur global */
.projet-immersif {
  position: relative;
  padding: 10vh 8vw;
  overflow: visible;
}

/* Titre et description */
.projet-title {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.projet-desc {
  /*max-width: 600px;*/
  margin-bottom: 3rem;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: left;
  position: relative;
  z-index: 2; /* au-dessus des images */
}

/* Conteneur images */
.projet-images {
  position: relative;
  width: 100%;
  height: auto
  margin-bottom: 3rem;
}

.img-layer {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  cursor: pointer;
}

/* Zoom léger au hover */
.img-layer.main:hover {
  transform: scale(1.05) translateY(-10px) translateX(5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Secondaires + déplacement différent */
.img-layer.secondary:nth-child(3):hover {
  transform: scale(1.08) translate(-5px, -5px);
}

.img-layer.secondary:nth-child(4):hover {
  transform: scale(1.07) translate(5px, 0px);
}

.img-layer.secondary:nth-child(5):hover {
  transform: scale(1.06) translate(-3px, 8px);
}

/* Image principale */
.img-layer.main {
  position: absolute;
  width: 55%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Images secondaires */
.img-layer.secondary {
  position: absolute;
  width: 25%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  z-index: 0;
}

/* Placement individuel des secondaires */
.img-layer.secondary:nth-child(3) { /* première secondaire */
  top: 30px;
  left: 60%;
}

.img-layer.secondary:nth-child(4) { /* deuxième secondaire */
  top: 120px;
  left: 50%;
}

.img-layer.secondary:nth-child(5) { /* troisième secondaire */
  top: 50px;
  left: 75%;
}

/* Infos projet */
.projet-info ul {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.projet-info ul li {
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  opacity: 0.7;
}



