body {
  font-family: sans-serif;
  background: #faf6ef;
  padding: 20px;
  text-align: center;
}

.tabs {
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  background: #ddd;
  border-radius: 8px;
  border: none;
  font-size: 16px;
}

.tab.active {
  background: #c19a6b;
  color: white;
}

.gallery {
  display: grid;
  gap: 15px;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  max-width: 600px;
  margin: 0 auto;
}

.frame {
  aspect-ratio: 1 / 1;         /* carré parfait */
  background: #d2b48c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Petit zoom au hover sur desktop */
@media (hover: hover) {
  .frame:hover {
    transform: scale(1.05);
  }
}

/* Images */
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* --- RESPONSIVE EXTRA --- */

@media (max-width: 500px) {
  .gallery {
    gap: 10px;
  }

  .frame {
    font-size: 20px;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .frame {
    font-size: 18px;
  }
}


/* ----- THEMES ----- */

body.victor-theme {
  background: #A10000; /* Rouge RC Lens */
}

body.victor-theme .frame {
  background: #FFD700; /* Or RC Lens */
  color: #A10000;
}

body.camille-theme {
  background: #FFD700; /* Bleu roi FCSM */
  background: #0033A0;
}

body.camille-theme .frame {
  background: #FFD700; 
  color: #0033A0;
}

/* Les tabs doivent rester visibles dans les deux thèmes */
.tab {
  background: #ddd;
}

.tab.active {
  background: #c19a6b;
  color: white;
}

/* ---- TABS ---- */

.tabs {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}

/* --- FULLSCREEN IMAGE --- */

#fullscreenOverlay {
  position: fixed;
  inset: 0;
  background: rgba(50, 50, 50, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

#fullscreenOverlay.hidden {
  display: none;
}

#fullscreenOverlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  cursor: zoom-out;
}


/* ----- Thème Victor ----- */
/* RC Lens : rouge + or */

body.victor-theme .tab.active {
  background: #FFD700;   /* or */
  color: #A10000;        /* rouge */
}

body.victor-theme .tab {
  background: #A10000;    /* rouge */
  color: #FFD700;         /* or */
}

/* ----- Thème Camille ----- */
/* FCSM : or + bleu roi */

body.camille-theme .tab {
  background: #0033A0;    /* bleu roi */
  color: #FFD700;         /* or */
}

body.camille-theme .tab.active {
  background: #FFD700;    /* or */
  color: #0033A0;         /* bleu roi */
}

