/* ================================================================
   G-RENOV PROJETS — Styles frontend
   Couleurs thème : Primary #199f9f | Dark #323334 | Body #888
   Font : Poppins
================================================================ */

/* ---------------------------------------------------------------
   SECTION HOMEPAGE : NOS DERNIÈRES RÉALISATIONS
--------------------------------------------------------------- */
.grenov-projets-section {
  padding: 80px 0;
  background: #fff;
}

.grenov-projets-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 30px;
}

.grenov-projets-header {
  text-align: center;
  margin-bottom: 50px;
}

.grenov-projets-label {
  display: none;
}

.grenov-projets-title {
  font-family: "Poppins", sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #323334;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* ---------------------------------------------------------------
   GRILLE DE PROJETS
--------------------------------------------------------------- */
.grenov-projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

@media (max-width: 1024px) {
  .grenov-projets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grenov-projets-grid {
    grid-template-columns: 1fr;
  }
  .grenov-projets-inner {
    padding: 0 20px;
  }
  .grenov-projets-title {
    font-size: 24px;
  }
}

/* ---------------------------------------------------------------
   CARTE PROJET
--------------------------------------------------------------- */
.grenov-projet-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  background: #fff;
}

.grenov-projet-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(25, 159, 159, 0.18);
}

.grenov-projet-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

/* Image */
.grenov-projet-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
}

.grenov-projet-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.grenov-projet-card:hover .grenov-projet-card-img img {
  transform: scale(1.07);
}

.grenov-projet-card-no-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #199f9f 0%, #22b8b8 100%);
}

/* Corps de la carte */
.grenov-projet-card-body {
  padding: 22px 20px 24px;
}

.grenov-projet-card-title {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #323334;
  margin: 0 0 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.grenov-projet-card-excerpt {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #888;
  line-height: 1.75;
  margin: 0 0 18px;
}

.grenov-projet-card-btn {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #199f9f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 2px;
}

.grenov-projet-card-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #199f9f;
  transition: width 0.3s ease;
}

.grenov-projet-card:hover .grenov-projet-card-btn::after {
  width: 100%;
}

/* Bouton EN VOIR PLUS */
.grenov-projets-footer {
  text-align: center;
}

.grenov-btn-voir-plus {
  display: inline-block;
  padding: 14px 48px;
  background: #199f9f;
  color: #fff !important;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none !important;
  border-radius: 4px;
  transition:
    background 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(25, 159, 159, 0.3);
}

.grenov-btn-voir-plus:hover {
  background: #147f7f;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(25, 159, 159, 0.4);
}

/* Message vide */
.grenov-no-projet {
  text-align: center;
  color: #888;
  font-family: "Poppins", sans-serif;
  padding: 40px 0;
}

/* ---------------------------------------------------------------
   PAGE ARCHIVE : TOUTES LES RÉALISATIONS
--------------------------------------------------------------- */
.grenov-archive-projets {
  padding: 80px 0;
  background: #fff;
}

.grenov-archive-projets .grenov-projets-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 30px;
}

.grenov-archive-projets .grenov-projets-grid {
  margin-bottom: 40px;
}

.grenov-archive-projets .grenov-projets-grid .grenov-projet-card-title {
  font-size: 18px;
}

/* Pagination */
.grenov-pagination {
  text-align: center;
  margin-top: 20px;
}

.grenov-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border: 2px solid #e1e1e1;
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #323334;
  text-decoration: none;
  transition: all 0.25s ease;
}

.grenov-pagination .page-numbers.current,
.grenov-pagination .page-numbers:hover {
  background: #199f9f;
  border-color: #199f9f;
  color: #fff;
}

/* ---------------------------------------------------------------
   PAGE SINGLE PROJET
--------------------------------------------------------------- */
.grenov-single-projet {
  padding: 70px 0 80px;
  background: #fff;
}

.grenov-single-projet .container,
.grenov-single-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 30px;
}

.grenov-single-titre {
  font-family: "Poppins", sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #323334;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.grenov-single-titre-bar {
  width: 56px;
  height: 4px;
  background: #199f9f;
  border-radius: 2px;
  margin-bottom: 32px;
}

.grenov-single-content {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #666;
  line-height: 1.9;
  margin-bottom: 60px;
}

.grenov-single-content h2,
.grenov-single-content h3 {
  color: #323334;
  font-weight: 600;
}

/* ---------------------------------------------------------------
   CARROUSEL D'IMAGES
--------------------------------------------------------------- */
.grenov-carousel-section {
  margin-bottom: 60px;
}

.grenov-carousel-section-title {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #199f9f;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}

.grenov-carousel-section-title::before,
.grenov-carousel-section-title::after {
  content: "—";
  margin: 0 8px;
  opacity: 0.5;
}

.grenov-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f4f4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  user-select: none;
}

.grenov-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.grenov-carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
}

.grenov-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flèches navigation */
.grenov-carousel-prev,
.grenov-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(25, 159, 159, 0.88);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    transform 0.2s;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  line-height: 1;
  padding: 0;
}

.grenov-carousel-prev {
  left: 14px;
}
.grenov-carousel-next {
  right: 14px;
}

.grenov-carousel-prev:hover,
.grenov-carousel-next:hover {
  background: #147f7f;
  transform: translateY(-50%) scale(1.08);
}

/* Points de navigation */
.grenov-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.grenov-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
  border: none;
  padding: 0;
}

.grenov-dot.active {
  background: #199f9f;
  transform: scale(1.35);
}

/* Compteur slides */
.grenov-carousel-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
}

/* Fil d'Ariane */
.grenov-breadcrumb {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 28px;
}

.grenov-breadcrumb a {
  color: #199f9f;
  text-decoration: none;
}

.grenov-breadcrumb a:hover {
  text-decoration: underline;
}

/* Image mise en avant (si pas de galerie) */
.grenov-single-featured-img {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.grenov-single-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bouton retour */
.grenov-back-section {
  margin-top: 10px;
}

.grenov-btn-retour {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #199f9f;
  color: #199f9f !important;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.grenov-btn-retour:hover {
  background: #199f9f;
  color: #fff !important;
}
