/* ==============================
   🌗 VARIABLES GLOBALES
============================== */
:root {
  --bg-color: #0e0e10;
  --text-color: #f1f1f1;
  --accent: #007bff;
  --card-bg: #18181b;
  --nav-bg: rgba(20, 20, 25, 0.8);
  --shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s ease;
}

[data-theme="light"] {
  --bg-color: #f5f5f5;
  --text-color: #111;
  --card-bg: #fff;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3em;
  color: var(--text-color);
  transition: var(--transition);
}

/* ==============================
   BASE & NAVBAR (identiques à ton thème)
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.logo span {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  padding: 8px 15px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent);
  color: #fff;
}

/* ==============================
   GALERIE
============================== */
.gallery-section {
  text-align: center;
  padding: 40px 20px 60px; /* ⬅️ réduit l’espace haut (avant 90px) */
  position: relative;
  z-index: 2;
}

.gallery-section h2 {
  font-size: 2.4em;
  margin-bottom: 15px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
}

.gallery-section .gallery-desc {
  font-size: 1.1em;
  opacity: 0.9;
  margin-bottom: 35px; /* 🔽 léger resserrement avant les albums */
}

.album-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  justify-content: center;
}

.album {
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.album:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px var(--accent);
}

.album img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.album h3 {
  padding: 15px;
  font-size: 1.2em;
  color: var(--accent);
}

/* ==============================
   MODALE ALBUM
============================== */
.album-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.album-modal.hidden {
  display: none;
}

.album-content {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 25px;
  width: 90%;
  max-width: 1000px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
  animation: fadeIn 0.4s ease;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.photo-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.photo-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-author {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 8px;
  font-size: 0.85em;
  text-align: center;
  backdrop-filter: blur(2px);
}

/* ==============================
   ⚠️ INFO COMMUNAUTAIRE
============================== */
.community-info {
  padding: 40px 20px 20px; /* ⬅️ réduit fortement le bas (avant 70px) */
  display: flex;
  justify-content: center;
  align-items: center;
}

.community-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 900px;
  background: var(--card-bg);
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
  margin-bottom: 30px; /* ✅ petit espace avant la galerie */
}

.community-box .emoji {
  font-size: 3rem;
  line-height: 1;
}

.community-text h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.community-text a {
  color: var(--accent);
  text-decoration: none;
}

.community-text a:hover {
  text-decoration: underline;
}

.community-text p {
  margin-bottom: 10px;
}

.community-text .ps {
  color: #ffae00;
  font-weight: 600;
}

/* ==============================
   FOOTER
============================== */
footer {
  text-align: center;
  padding: 20px;
  margin-top: auto;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  color: var(--text-color);
}
