/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: #121212;
  color: #e0e0e0;
  font-family: "Noto Serif", serif;
  margin: 0;
  padding: 0;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
#root, #__next {
  isolation: isolate;
}

/* === CONTAINERS === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}


/* === HEADER === */
.header {
  background-color: #212122;
  color: #ecf0f1;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.site-title a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 24px;
}
.site-description {
  margin-top: 5px;
  font-size: 14px;
  color: #bdc3c7;
}
.main-navigation ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}
.main-navigation li {
  margin-left: 20px;
}
.main-navigation a {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 500;
}

/* === FOOTER === */
.footer {
  background-color: #212122;
  color: #ecf0f1;
  padding: 40px  20px;
}
.footer-widgets {
  padding-bottom: 30px;
}
.footer .container {
  padding: 0 20px;
}
.footer h4 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 18px;
}
.footer a {
  color: #bdc3c7;
  text-decoration: none;
}
.footer a:hover {
  color: var(--primary-color);
}
.footer .fa {
  margin-right: 10px;
}
.social-icons a {
  margin-right: 10px;
  color: #bdc3c7;
  font-size: 20px;
}
.social-icons a:hover {
  color: var(--primary-color);
}
.footer-bottom {
  background-color: #1a252f;
  padding: 20px 0;
  text-align: center;
}
.copyright {
  font-size: 14px;
  color: #bdc3c7;
}

/* === HERO === */
.hero {
  background: linear-gradient(to right, #1f1f1f, #121212);
  text-align: center;
  padding: 2rem;
  border-bottom: 1px solid #2e2e2e;
}
.hero-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.hero-subtitle {
  font-size: 1.3rem;
  color: #bbbbbb;
}

/* === SECTION TITLES === */
.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #ffffff;
}

/* === GALERIE (archive) === */
.galerie-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.galerie-item {
  background-color: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  max-width: 340px;
  display: flex;
  flex-direction: column;
}
.galerie-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.galerie-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.galerie-title {
  text-align: center;
  padding: 1rem;
  font-size: 1.1rem;
  flex-grow: 1;
}
.galerie-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.1);
}

/* === GALERIE SINGLE === */
.galerie-single {
  max-width: 1200px;
  margin: 0 auto; 
  padding: 20px;
  padding-top: 0px;
}
.galerie-header {
  text-align: center;
  margin-bottom: 30px;
}
.galerie-single .galerie-title {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #f0f0f0;
}
.galerie-meta {
  color: #aaa;
  margin-bottom: 20px;
}
.galerie-meta span {
  margin-right: 20px;
}
.galerie-taxonomies,
.galerie-tags {
  background: #1e1e1e;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
}
.tax-link,
.tag-link {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 5px 10px;
  margin: 2px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.9em;
}
.tag-link {
  background: #28a745;
}
.tag-link:hover {
  background: #1e7e34;
}
/* .tax-link:hover {
  background: #005a87;
} */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.image-item {
  text-align: center;
}
.galerie-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s ease;
}
.galerie-thumb:hover {
  transform: scale(1.05);
}
.image-caption {
  margin-top: 5px;
  font-size: 0.9em;
  color: #999;
}

/* === NAVIGATION === */
.galerie-navigation {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #2e2e2e;
  border-bottom: 1px solid #2e2e2e;
}
.nav-links {
  display: flex;
  justify-content: space-between;
}
.nav-previous, .nav-next {
  flex: 1;
}
.nav-next {
  text-align: right;
}
.nav-subtitle {
  display: block;
  font-size: 0.9em;
  color: #bbb;
}
.nav-title {
  font-weight: bold;
  color: #ffffff;
}

/* === GALERIES SIMILAIRES === */
.galeries-similaires {
  margin-top: 40px;
}
.galeries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 32%);
  gap: 1%;
  margin-top: 20px;
}
.galerie-card {
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.galerie-card:hover {
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.05);
}
.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 15px;
}
.card-content h4 {
  margin: 0 0 10px 0;
  color: #f0f0f0;
}
.card-meta {
  color: #aaa;
  font-size: 0.9em;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .galerie-title {
    font-size: 2em;
  }
  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  .nav-links {
    flex-direction: column;
    gap: 20px;
  }
  .nav-next {
    text-align: left;
  }
}

.featured-banner {
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-bottom: 40px;
  position: relative;
}

.featured-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

button, .main-navigation a {
  color: var(--primary-color);
}

.btn {
  color:white;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
     color: var(--primary-color);
     font-family: "Old Standard TT", serif;
}




/* === Zone Formulaire de Contact (Dark Mode) === */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: #1c1c1c;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.contact-form label {
  color: #ccc;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #2b2b2b;
  border: 1px solid #444;
  border-radius: 8px;
  color: #eee;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  align-self: start;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: var(--primary-color);
}



/*Accueil*/

.home-hero {
  background-color: #111;
  color: #f1f1f1;
  padding: 60px 20px;
}

.home-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.home-image {
  flex: 1 1 400px;
  max-width: 500px;
}

.home-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.home-description {
  flex: 1 1 400px;
  max-width: 600px;
}

.home-description h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.home-description p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #ccc;
}


/* Responsive */
@media (max-width: 768px) {
  .home-container {
    flex-direction: column;
    text-align: center;
  }

  .home-description h1 {
    font-size: 2rem;
  }

  .home-description p {
    font-size: 1.1rem;
  }
}
