:root {
  --primary-color: #244060;
  --secondary-color: #2F638D;
  --tertiary-color: #8496A0;
  --light-color: #F5F5F5;
  --dark-color: #1A2A3A;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

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

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  color: white;
}

.subtitle {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.8;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-link {
  color: white;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
  transition: var(--transition);
}

/* Main Content */
main {
  min-height: calc(100vh - 150px);
  padding: 2rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.artist-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.artist-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.artist-image img:hover {
  transform: scale(1.02);
}

.artist-presentation {
  flex: 1;
}

.presentation-text {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
  white-space: pre-line;
}

/* Categories Section */
.categories-section {
  padding: 3rem 0;
  background-color: #f9f9f9;
}

.categories-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.category-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Styles pour les catégories non cliquables (expositions) */
.category-link.non-clickable {
  cursor: default;
  pointer-events: none;
}

.category-card:has(.non-clickable):hover {
  transform: none;
  box-shadow: var(--shadow);
}

.category-image {
  height: 250px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-info {
  padding: 1.5rem;
  text-align: center;
}

.category-info h3 {
  margin-bottom: 0;
  color: var(--primary-color);
}

/* Artworks Grid */
.artworks-grid {
  padding: 2rem 0;
}

.category-header {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--tertiary-color);
}

.category-title {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.artworks-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.artwork-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.artwork-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.non-clickable {
  cursor: not-allowed;
  opacity: 0.7;
}

.artwork-card:has(.non-clickable):hover {
  transform: none;
  box-shadow: var(--shadow);
}

.artwork-image {
  height: 200px;
  overflow: hidden;
}

.artwork-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.artwork-card:hover .artwork-image img {
  transform: scale(1.05);
}

.artwork-info {
  padding: 1rem;
  text-align: center;
}

.artwork-info h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  color: #aaa;
}

.no-image i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Artwork Detail Page */
.artwork-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.artwork-header {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.artwork-title {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.artwork-gallery {
  flex: 1;
  min-width: 300px;
}

.main-image {
  width: 100%;
  height: 400px;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f9f9f9;
}

.image-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 1;
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--secondary-color);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-info {
  flex: 1;
  min-width: 300px;
}

.artwork-description {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.artwork-description pre {
  font-family: 'Montserrat', sans-serif;
  white-space: pre-line;
  line-height: 1.8;
}

/* Other Artworks Section */
.other-artworks {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
}

.other-artworks h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.thumbnails-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.thumbnail-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.thumbnail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.thumbnail-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.thumbnail-info {
  padding: 0.5rem;
  text-align: center;
}

.thumbnail-info h3 {
  font-size: 0.9rem;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer Styles */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-info h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--tertiary-color);
  transform: translateY(-3px);
}

.footer-copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
  }
  
  .artist-image, .artist-presentation {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--primary-color);
    text-align: center;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-link {
    display: block;
    padding: 1rem;
    margin: 0;
    border-radius: 0;
  }
  
  .categories-container, .artworks-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding: 0 1rem;
  }
  
  .artwork-detail {
    flex-direction: column;
    gap: 2rem;
  }
  
  .main-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .categories-container, .artworks-container {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .category-title, .artwork-title {
    font-size: 2rem;
  }
  
  .thumbnails-container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* Liste des expositions */
.exhibitions-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.exhibitions-container {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exhibition-item {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  padding: 1.5rem;
}

.exhibition-item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.exhibition-content h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  line-height: 1.4;
}

.no-exhibitions {
  text-align: center;
  padding: 3rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.no-exhibitions p {
  color: var(--tertiary-color);
  font-size: 1.1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .exhibitions-list {
    padding: 1rem;
  }
  
  .exhibition-item {
    padding: 1rem;
  }
  
  .exhibition-content h3 {
    font-size: 1.1rem;
  }
}

/* Pagination */
.pagination-nav {
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem; /* Bootstrap-like border radius */
}

.page-item {
    margin: 0 2px;
}

.page-item .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    line-height: 1.25;
    color: var(--primary-color);
    background-color: #fff;
    border: 1px solid #dee2e6; /* Bootstrap-like border */
    text-decoration: none;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #6c757d; /* Bootstrap-like disabled color */
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #dee2e6;
}

.page-link:hover {
    z-index: 2;
    color: var(--secondary-color);
    text-decoration: none;
    background-color: #e9ecef; /* Bootstrap-like hover background */
    border-color: #dee2e6;
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Adapt to your primary color */
}

/* Responsive pagination */
@media (max-width: 576px) {
    .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.875rem;
    }
    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        border-radius: 0.2rem;
    }
}
