/* Styles généraux */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

@font-face {
  font-family: 'FZ Imokenpi';
  src: url('assets/font/Cocoscaca-Regular.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

.logo {
  font-family: 'FZ Imokenpi', sans-serif;
  font-size: 4.3rem;
  font-weight: normal;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  gap: 20px;
}

/* Groupe logo + icônes */
.logo-and-icons {
  display: flex;
  align-items: center;
  gap: 20px; /* espace entre logo et icônes */
}

.logo {
  font-family: 'FZ Imokenpi', sans-serif;
  font-size: 2.4rem;
  cursor: default;
}

/* Icônes */
.header-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.header-icons img:hover {
  transform: scale(1.2);
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}


/* ==== Première rangée horizontale ==== */
.first-row {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 20px;
}

.first-row .card {
  flex: 1; /* chaque image prend la même largeur */
}

.first-row img {
  width: 100%;
  display: block;
  border-radius: 0px;
}

/* ==== Reste de la galerie style Pinterest ==== */
.rest-gallery {
  column-count: 3;
  column-gap: 5px;
  padding: 0 20px 20px 20px; /* colle à la première rangée */
}

.rest-gallery img {
  width: 100%;
  margin-bottom: 7px;
  display: block;
  break-inside: avoid;
}

/* Responsive pour le reste de la galerie */
@media (max-width: 900px) {
  .rest-gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .rest-gallery {
    column-count: 1;
  }
}
@media (max-width: 768px) {
  .first-row img,
  .rest-gallery img {
    pointer-events: none;
  }
}
/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
  color: #333;
  z-index: 10000;
}

/* Flèches */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  cursor: pointer;
  color: #333;
  user-select: none;
  z-index: 10000;
}

.arrow.left {
  left: 30px;
}

.arrow.right {
  right: 30px;
}

/* ===== HEADER MOBILE ===== */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
  }

  .logo-and-icons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  nav a {
    text-align: center;
  }
}
/* ===== FIRST ROW MOBILE ===== */
/* ===== FIRST ROW TABLET + MOBILE ===== */
@media (max-width: 900px) {
  .first-row {
    flex-direction: column;
    gap: 10px;
  }

  .first-row .card {
    width: 100%;
  }
}
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: black;
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  font-size: 1.2rem;
  border-radius: 50%;
  z-index: 999;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
