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

body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background: #0a0a0a;
    color: white;
  }
  
  /* HEADER */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  
    display: flex;
    justify-content: space-between;
    align-items: center;
  
    padding: 20px 30px;
    background: black;
  
    z-index: 1000;
  }
  
  .logo {
    font-weight: bold;
    letter-spacing: 2px;
  }
  
  nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap; /* 🔥 important */
  }
  
  
  nav a {
    color: white;
    text-decoration: none;
    position: relative;
  }
  
  /* underline animation */
  nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    background: white;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
  }
  
  nav a:hover::after {
    width: 100%;
  }
  
  .menu-toggle {
    display: none;
  }
  
  /* HERO */
  .hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #0a0a0a;
  }
  
  /* conteneur images */
  .parallax {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  
  /* images flottantes */
  .layer {
    position: absolute;
    width: 300px;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.1s ease-out;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  }
  
  /* placement stylé (IMPORTANT) */
  .layer:nth-child(1) { top: 20%; left: 10%; }
  .layer:nth-child(2) { top: 50%; left: 60%; }
  .layer:nth-child(3) { top: 70%; left: 20%; }
  .layer:nth-child(4) { top: 10%; left: 70%; }
  
  /* texte au centre */
  .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .hero h1 {
    font-size: 3.5em;
  }
  
  .hero p {
    opacity: 0.7;
  }  
  
  /* GALERIE */
  .gallery {
    padding: 120px 20px;
    text-align: center;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
  }
  
  .grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
  
    transition: transform 0.6s ease, opacity 0.6s ease;
    will-change: transform;
  }
  
  /* effet premium */
  .grid img:hover {
    transform: scale(1.08);
    opacity: 0.85;
  }  

  /* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
  }
  
  .lightbox img {
    max-width: 80%;
    max-height: 80%;
  }
  
  /* boutons */
  .close, .prev, .next {
    position: absolute;
    color: white;
    font-size: 2em;
    cursor: pointer;
    user-select: none;
  }
  
  .close {
    top: 20px;
    right: 40px;
  }
  
  .prev {
    left: 30px;
    top: 50%;
  }
  
  .next {
    right: 30px;
    top: 50%;
  }
  
  
  /* ABOUT */
  .about {
    padding: 100px 30px;
    text-align: center;
  }

  .themes {
    padding: 120px 20px;
    text-align: center;
    background: #0a0a0a;
  }
  
  .themes h2 {
    margin-bottom: 50px;
  }
  
  /* GRID */
  .themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
  }
  


  .carousel {
    height: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  
  
  .carousel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
  }
  
  .carousel img.active {
    opacity: 1;
  }
  
  /* DOTS */
  .dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    z-index: 5;
  }
  
  .dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 5px;
    background: white;
    opacity: 0.4;
    border-radius: 50%;
  }
  
  .dots span.active {
    opacity: 1;
  }

  /* CARD */
  .theme-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
  }
  
  /* IMAGE */
  .theme-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s ease;
  }
  
  /* OVERLAY */
  .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 1;
    transition: 0.5s;
  }
  
  /* TEXTE */
  .overlay h3 {
    margin: 0;
  }
  
  .overlay p {
   font-size: 0.9em;
   opacity: 1;
  }
  
  /* HOVER EFFECT 🔥 */
  .theme-card:hover img {
    transform: scale(1.1);
  }
  
  .theme-card:hover .overlay {
    opacity: 1;
  }
  
  /* CONTACT */
  .contact {
    padding: 100px 20px;
    text-align: center;
  }
  
  .contact input, .contact textarea {
    display: block;
    width: 80%;
    max-width: 500px;
    margin: 10px auto;
    padding: 10px;
    background: transparent;
    border: 1px solid white;
    color: white;
  }
  
  button {
    margin-top: 10px;
    padding: 10px 30px;
    background: white;
    color: black;
    border: none;
    cursor: pointer;
  }
  
  /* FOOTER */
  footer {
    text-align: center;
    padding: 20px;
    background: black;
  }
  
  /* RESPONSIVE */
  @media (max-width: 768px) {
    nav {
      display: none;
      flex-direction: column;
      position: absolute;
      right: 0;
      top: 60px;
      background: black;
      width: 100%;
      text-align: center;
    }
  
    .menu-toggle {
      display: block;
    }
  
    .grid {
      grid-template-columns: repeat(2,1fr);
    }
  }
  
  @media (max-width: 480px) {
    .grid {
      grid-template-columns: 1fr;
    }
  }

/* ===== MES UNIVERS (cartes cliquables) ===== */
a.theme-card { display: block; color: white; text-decoration: none; }

/* ===== PAGE UNIVERS ===== */
.univers-page { padding: 120px 20px 80px; text-align: center; min-height: 100vh; }
.univers-page h1 { font-size: 2.5em; margin-bottom: 10px; }
.univers-page .subtitle { opacity: 0.7; margin-bottom: 40px; }
.breadcrumb { display: inline-block; margin-bottom: 30px; color: white; opacity: 0.7; text-decoration: none; }
.breadcrumb:hover { opacity: 1; }
.univers-page .grid img { cursor: pointer; }

/* ===== GALERIE JUSTIFIÉE (photos à leur format d'origine) ===== */
.grid.justified {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}
.grid.justified img {
  flex: none;
  max-width: 100%;
  object-fit: cover;
}
.grid.justified img:hover { transform: scale(1.02); }

/* ===== TEXTES BLANCS (Mes univers + pages univers) ===== */
.themes h2,
a.theme-card, a.theme-card:visited, a.theme-card:hover, a.theme-card:active,
.theme-card .overlay h3, .theme-card .overlay p,
.univers-page h1, .univers-page .subtitle,
.breadcrumb, .breadcrumb:visited {
  color: #fff;
  opacity: 1;
}

/* Le texte des cartes ne dépend plus de la couleur des liens (violet = lien déjà visité) */
.theme-card .overlay h3,
.theme-card .overlay p {
  color: #fff !important;
}

/* ===== LOGO + INSTAGRAM ===== */
.brand { display: flex; align-items: center; gap: 15px; }
.insta, .insta:visited { display: flex; color: #fff; opacity: 0.85; transition: 0.3s; }
.insta:hover { opacity: 1; transform: scale(1.1); }
.insta svg { width: 22px; height: 22px; }

/* ===== MOBILE ===== */
.themes-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); }
.menu-toggle { cursor: pointer; }

@media (max-width: 768px) {
  header { padding: 15px 20px; }
  .menu-toggle { font-size: 1.6em; line-height: 1; padding: 5px; }
  nav { top: 100%; }
  nav.open { display: flex; gap: 0; }
  nav a { padding: 16px 0; border-top: 1px solid #222; }

  .hero { height: 100vh; height: 100svh; min-height: 500px; }
  .layer { width: 38vw; opacity: 0.6; }
  .hero h1 { font-size: 2.2em; padding: 0 20px; }
  .hero p { padding: 0 20px; }
  .hero-content { text-shadow: 0 2px 12px rgba(0,0,0,0.8); }

  .gallery, .themes { padding: 90px 15px 60px; }
  .about, .contact { padding: 80px 20px; }
  .contact input, .contact textarea { width: 100%; font-size: 16px; }

  .univers-page { padding: 100px 15px 60px; }
  .univers-page h1 { font-size: 1.8em; }

  .lightbox img { max-width: 95%; max-height: 75%; }
  .close, .prev, .next { font-size: 2.2em; padding: 8px 12px; background: rgba(0,0,0,0.4); }
  .close { top: 15px; right: 15px; }
  .prev { left: 8px; }
  .next { right: 8px; }
}