/* ==== Styles globaux ==== */

.tyth_pages {
    padding: 25px;
    background: #f5f7fa;
    color: #2c3e50;
    font-family: Arial, sans-serif;
}

.tyth_title {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* ==== Barre de recherche seule ==== */
.tyth_search-bar {
    display: flex;
    justify-content: flex-end; /* barre à droite */
    align-items: center;
    margin-bottom: 25px;
    gap: 10px;
}

.tyth_search-bar input {
    width: 300px; /* largeur fixe */
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tyth_search-bar button {
    padding: 10px 15px;
    border: none;
    background: #3498db;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.tyth_search-bar button:hover {
    background: #2980b9;
}

/* ==== Grille et cartes ==== */
.tyth_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tyth_card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.tyth_card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
    z-index: 0;
}

.tyth_card-content {
    position: relative;
    z-index: 1;
}

.tyth_card-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.tyth_card-content p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.tyth_card-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.tyth_card-btn:hover {
    background: #2980b9;
}

/* ==== Pagination ==== */
.tyth_pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.tyth_pagination button {
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.tyth_pagination button.active,
.tyth_pagination button:hover {
    background: #3498db;
    color: #fff;
}

/* ==== Responsive ==== */
@media(max-width: 900px) {
    .tyth_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .tyth_grid {
        grid-template-columns: 1fr;
    }
    .tyth_search-bar {
        justify-content: center;
        width: 100%;
    }
    .tyth_search-bar input {
        width: 100%; /* pleine largeur sur mobile */
    }
}





/* --- Reset et base --- sous-type et sous-theme*/
.prod_wrapper {
  padding: 20px;
  background: #f5f7fa;
  color: #2c3e50;
  font-family: Arial, sans-serif;
}
.prod_title {
  text-align: center;
  margin-bottom: 20px;
}


/* --- Barre recherche et filtres --- */
.prod_search-bar {
  display: flex;
  justify-content: space-between; /* filtres à gauche, recherche à droite */
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
  gap: 15px;
}

.prod_search-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.prod_search-right {
  display: flex;
  gap: 10px;
}

/* Style identique pour input et select */
.prod_search-bar input,
.prod_search-bar select {
  width: 300px;              /* largeur fixe demandée */
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.prod_search-bar button {
  padding: 10px 15px;
  border: none;
  background: #3498db;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
  font-size: 0.95rem;
}
.prod_search-bar button:hover {
  background: #2980b9;
}

/* --- Responsive --- */
@media (max-width: 800px) {
  .prod_search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .prod_search-left, .prod_search-right {
    width: 100%;
    justify-content: center;
  }
  .prod_search-bar input,
  .prod_search-bar select {
    width: 100%;  /* en mobile → pleine largeur */
  }
}



/* --- Grille et cartes --- */
.prod_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.prod_card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.prod_image-container {
  width: 100%;
  height: 230px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}
.prod_card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.prod_card:hover img {
  transform: scale(1.05);
}
.prod_card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.prod_card-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}
.prod_card-desc {
  flex-grow: 1;
  font-size: .9rem;
  color: #555;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.prod_card-date {
  margin-top: 10px;
  font-size: .85rem;
  color: #3498db;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- Pagination --- */
.prod_pagination {
  display: flex;
  justify-content: center;
  margin: 25px 0;
  gap: 5px;
  flex-wrap: wrap;
}
.prod_pagination button {
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  cursor: pointer;
  transition: all .2s;
}
.prod_pagination button.active,
.prod_pagination button:hover {
  background: #3498db;
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .prod_grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .prod_grid { grid-template-columns: 1fr; }
  .prod_search-bar { justify-content: center; width: 100%; }
  .prod_search-bar input { width: 100%; }
}
