/*
Theme Name: PhotoFlow
Author: Ton Nom
Description: Un thème WordPress minimal pour portfolio de photos.
Version: 1.0
*/

/* === VARIABLES CSS === */
:root {
  --bg-color: #1f1f1f;
  --text-color: #eee;
  --title-color: #fff;
}

body.light-mode {
  --bg-color: #d3d3d3;
  --text-color: #111;
  --title-color: #000;
}

/* === BASE === */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--title-color);
}

/* === SWIPER === */
.swiper-button-next,
.swiper-button-prev {
  color: #FFD700 !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 26px !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.swiper {
  margin-top: 1rem;
}
.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}

/* === MENU === */
.menu, .menu li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}
.menu li a:hover {
  text-decoration: underline;
  color: #FFD700;
}

/* === HEADER === */
.site-header {
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header a:hover {
  color: #FFD700;
  text-decoration: underline;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.site-logo img {
  max-height: 50px;
  max-width: 120px;
  height: auto;
  width: auto;
}
@media (max-width: 768px) {
  .site-logo img {
    max-width: 90px;
  }
}
.main-nav {
  flex: 1;
  text-align: center;
}
.menu-center {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.menu-center li {
  list-style-type: none;
}
.contact-link {
  color: var(--text-color);
}
.contact-link a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

/* === BURGER === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .main-nav {
    display: none;
    width: 100%;
    padding: 1rem 0;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .menu-center {
    flex-direction: column;
    gap: 1rem;
  }
  .contact-link {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
}

/* === FOOTER === */
.site-footer .footer-widget {
  margin-bottom: 1.5rem;
}
.site-footer h3 {
  color: var(--title-color);
  margin-bottom: 1rem;
}
.footer-widgets {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2rem;
}
.footer-widgets .widget {
  flex: 1 1 31%;
  min-width: 200px;
}
.footer-widgets .widget-title {
  color: var(--title-color);
}
.footer-widgets .widget a {
  color: var(--text-color);
  text-decoration: none;
}
.footer-widgets .widget a:hover {
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  padding: 1rem;
}
.site-footer .menu a,
.site-footer .menu-item a,
.menu-footer-container a {
  color: inherit;
  text-decoration: none;
}

.site-footer .menu a:hover,
.site-footer .menu-item a:hover {
  color: #FFD700;
}

/* === ALBUM SINGLE === */
.album-single-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.album-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.album-description {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}
.album-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.album-gallery img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.album-gallery a:hover img {
  transform: scale(1.03);
}
.glightbox-clean .gslide-description {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-family: 'Open Sans', sans-serif;
}
.glightbox-clean .gslide-title {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

/* === WPForms === */
.wpforms-form label,
.wpforms-form .wpforms-field-label {
  color: var(--text-color) !important;
}

/* === TOGGLE === */
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* === SINGLE PHOTO === */
.photo-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.photo-single figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.photo-single .photo-description {
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.menu-toggle {
  color: var(--text-color);
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.site-header .menu-toggle:hover {
  color: #FFD700;
}
