/* ========================================
   BASE STYLES - PROJETS
   ======================================== */

/* ======================================================
   FILTRES
====================================================== */

.filters {
  padding: 60px 0;
  background-color: #ffffff;
}

.filters .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Groupe de boutons */
.filter-tabs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

/* Boutons */
.filter-btn {
  background-color: #ffffff;
  border: 1.5px solid #bdbdbd;
  color: #2d2d2d;
  padding: 10px 26px;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: fit-content;
  text-align: center;
  line-height: 1;
}

.filter-btn:hover {
  border-color: #7a7a7a;
}

.filter-btn.active {
  border-color: #2d2d2d;
  font-weight: 500;
}

/* ======================================================
   SECTION PROJETS
====================================================== */

.projects-section {
  padding: 40px 0;
  background-color: #ffffff;
}

.projects-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ======================================================
   BARRE DE RECHERCHE
====================================================== */

.search-bar {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  font-size: 15px;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  background-color: #ffffff;
  color: #2d2d2d;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-input:focus {
  outline: none;
  border-color: #2d2d2d;
  box-shadow: 0 4px 16px rgba(45, 45, 45, 0.1);
  background-color: #ffffff;
}

.search-input:hover {
  border-color: #bdbdbd;
}

/* Statistiques */
.projects-stats {
  text-align: center;
  margin-bottom: 60px;
}

.stats-number {
  font-size: 48px;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 10px;
}

.projects-stats p {
  font-size: 16px;
  color: #6b7280;
}

/* Grille */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

/* ======================================================
   PROJECT CARD – AGENCE PREMIUM (COMBINÉ)
====================================================== */

.project-card {
  position: relative;
  background: rgba(20, 25, 35, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 24px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

/* Reflet verre */
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

/* Liseré doré subtil */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(247, 202, 90, 0.15);
  pointer-events: none;
}

/* Hover premium */
.project-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ======================================================
   CONTENU INTERNE
====================================================== */

.project-content {
  padding: 26px 28px 28px;
}

/* Titre */
.project-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #f7ca5a;
  letter-spacing: 0.2px;
}

/* Description */
.project-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ======================================================
   TAGS / TECHNO
====================================================== */

/* IMAGE PROJET */
.project-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tech-tag,
.project-card .project-tag {
  padding: 6px 16px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(247, 202, 90, 0.15);
  color: #f7ca5a;
  border: 1px solid rgba(247, 202, 90, 0.25);
  backdrop-filter: blur(10px);
}

/* ======================================================
   FOOTER CARD
====================================================== */

.project-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.project-link {
  font-size: 14px;
  color: #f7ca5a;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.project-link:hover {
  text-decoration: underline;
}

/* ======================================================
   NO RESULTS
====================================================== */

.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #2d2d2d;
}

.no-results p {
  color: #6b7280;
}

/* ======================================================
   LOAD MORE
====================================================== */

.load-more {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.load-more-btn {
  background-color: #ffffff;
  border: 1.5px solid #2d2d2d;
  color: #2d2d2d;
  padding: 12px 32px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.25s ease;
  font-family: inherit;
}

.load-more-btn:hover {
  background-color: #2d2d2d;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ======================================================
   CTA CONTACT
====================================================== */

.contact-btn-wrapper {
  display: flex;
  justify-content: center;
  margin: 60px 0;
}

.contact-btn1 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #ffffff;
  color: #202a37;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn1:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.contact-btn1:active {
  transform: scale(0.97);
}

/* ========================================
   MEDIA QUERIES - RESPONSIVE
   ======================================== */

/* Tablettes et écrans moyens (max 992px) */
@media screen and (max-width: 992px) {
  /* Filtres */
  .filters {
    padding: 50px 20px;
  }

  .filter-tabs {
    gap: 15px;
  }

  .filter-btn {
    padding: 9px 22px;
    font-size: 14px;
  }

  /* Barre de recherche */
  .search-bar {
    max-width: 450px;
  }

  .search-input {
    padding: 13px 18px 13px 48px;
    font-size: 14px;
  }

  .search-icon {
    left: 16px;
    font-size: 17px;
  }

  /* Projets */
  .projects-section {
    padding: 35px 0;
  }

  .projects-section .container {
    padding: 0 20px;
  }

  .projects-stats {
    margin-bottom: 50px;
  }

  .stats-number {
    font-size: 42px;
  }

  .projects-stats p {
    font-size: 15px;
  }

  /* Grille 2 colonnes */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 50px;
  }

  /* Cards */
  .project-card {
    border-radius: 20px;
  }

  .project-content {
    padding: 22px 24px 24px;
  }

  .project-card h3 {
    font-size: 18px;
  }

  .project-card p {
    font-size: 14px;
  }

  .project-img {
    height: 180px;
  }

  .tech-tag,
  .project-card .project-tag {
    padding: 5px 14px;
    font-size: 11px;
  }

  /* CTA */
  .contact-btn-wrapper {
    margin: 50px 0;
  }

  .contact-btn1 {
    padding: 14px 32px;
    font-size: 15px;
  }

  .load-more {
    margin-bottom: 35px;
  }

  .load-more-btn {
    padding: 11px 28px;
    font-size: 14px;
  }
}

/* Tablettes moyennes (max 768px) */
@media screen and (max-width: 768px) {
  /* Filtres */
  .filters {
    padding: 40px 15px;
  }

  .filters .container {
    gap: 25px;
  }

  .filter-tabs {
    gap: 12px;
  }

  .filter-btn {
    padding: 8px 20px;
    font-size: 13px;
  }

  /* Barre de recherche */
  .search-bar {
    max-width: 100%;
  }

  .search-input {
    padding: 12px 16px 12px 45px;
    font-size: 14px;
  }

  .search-icon {
    left: 15px;
    font-size: 16px;
  }

  /* Projets */
  .projects-section {
    padding: 30px 0;
  }

  .projects-section .container {
    padding: 0 15px;
  }

  .projects-stats {
    margin-bottom: 40px;
  }

  .stats-number {
    font-size: 38px;
  }

  .projects-stats p {
    font-size: 14px;
  }

  /* Grille */
  .projects-grid {
    gap: 20px;
    margin-bottom: 40px;
  }

  /* Cards */
  .project-card {
    border-radius: 18px;
  }

  .project-content {
    padding: 20px 22px 22px;
  }

  .project-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .project-card p {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .project-img {
    height: 170px;
  }

  .project-tech {
    gap: 6px;
    margin-bottom: 16px;
  }

  .tech-tag,
  .project-card .project-tag {
    padding: 5px 12px;
    font-size: 11px;
  }

  .project-links {
    margin-top: 16px;
  }

  .project-link {
    font-size: 13px;
  }

  /* No results */
  .no-results {
    padding: 60px 15px;
  }

  .no-results-icon {
    font-size: 36px;
  }

  .no-results h3 {
    font-size: 20px;
  }

  .no-results p {
    font-size: 14px;
  }

  /* CTA */
  .contact-btn-wrapper {
    margin: 40px 0;
  }

  .contact-btn1 {
    padding: 13px 28px;
    font-size: 14px;
    gap: 10px;
  }

  .load-more {
    margin-bottom: 30px;
  }

  .load-more-btn {
    padding: 10px 26px;
    font-size: 14px;
  }
}

/* Smartphones (max 576px) */
@media screen and (max-width: 576px) {
  /* Filtres - Design scroll horizontal élégant */
  .filters {
    padding: 30px 0;
    overflow: hidden;
    position: relative;
  }

  /* Indicateur de scroll à droite */
  .filters::after {
    content: '';
    position: absolute;
    right: 0;
    top: 30px;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
    pointer-events: none;
    z-index: 1;
  }

  .filters .container {
    gap: 25px;
    width: 100%;
    padding: 0;
  }

  .filter-tabs {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    justify-content: flex-start;
    scroll-behavior: smooth;
  }

  /* Cache la scrollbar */
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 13px;
    flex-shrink: 0;
    border-width: 1.5px;
    min-width: fit-content;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
  }

  .filter-btn:active {
    transform: scale(0.95);
  }

  .filter-btn.active {
    background-color: #2d2d2d;
    color: #ffffff;
    border-color: #2d2d2d;
    box-shadow: 0 4px 12px rgba(45, 45, 45, 0.2);
  }

  /* Barre de recherche */
  .search-bar {
    max-width: 100%;
    padding: 0 15px;
  }

  .search-input {
    padding: 11px 14px 11px 42px;
    font-size: 13px;
    border-radius: 50px;
  }

  .search-icon {
    left: 29px;
    font-size: 15px;
  }

  /* Projets */
  .projects-section {
    padding: 25px 0;
  }

  .projects-section .container {
    padding: 0 15px;
  }

  .projects-stats {
    margin-bottom: 35px;
  }

  .stats-number {
    font-size: 34px;
  }

  .projects-stats p {
    font-size: 13px;
  }

  /* Grille 1 colonne */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 35px;
  }

  /* Cards */
  .project-card {
    border-radius: 16px;
  }

  .project-card:hover {
    transform: translateY(-5px);
  }

  .project-content {
    padding: 18px 20px 20px;
  }

  .project-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .project-card p {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 12px;
  }

  .project-img {
    height: 160px;
  }

  .project-tech {
    gap: 6px;
    margin-bottom: 14px;
  }

  .tech-tag,
  .project-card .project-tag {
    padding: 4px 11px;
    font-size: 10px;
  }

  .project-links {
    margin-top: 14px;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .project-link {
    font-size: 12px;
  }

  /* No results */
  .no-results {
    padding: 50px 12px;
  }

  .no-results-icon {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .no-results h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .no-results p {
    font-size: 13px;
  }

  /* CTA */
  .contact-btn-wrapper {
    margin: 35px 0;
  }

  .contact-btn1 {
    padding: 12px 24px;
    font-size: 13px;
    gap: 8px;
  }

  .load-more {
    margin-bottom: 25px;
  }

  .load-more-btn {
    padding: 10px 24px;
    font-size: 13px;
  }
}

/* Petits smartphones (max 400px) */
@media screen and (max-width: 400px) {
  /* Filtres */
  .filters {
    padding: 25px 0;
  }

  .filter-tabs {
    gap: 8px;
    padding: 0 12px;
  }

  .filter-btn {
    padding: 9px 16px;
    font-size: 12px;
    border-width: 1.5px;
  }

  /* Barre de recherche */
  .search-bar {
    padding: 0 12px;
  }

  .search-input {
    padding: 10px 12px 10px 40px;
    font-size: 12px;
  }

  .search-icon {
    left: 26px;
    font-size: 14px;
  }

  /* Projets */
  .projects-section .container {
    padding: 0 10px;
  }

  .projects-stats {
    margin-bottom: 30px;
  }

  .stats-number {
    font-size: 30px;
  }

  .projects-stats p {
    font-size: 12px;
  }

  /* Grille */
  .projects-grid {
    gap: 16px;
    margin-bottom: 30px;
  }

  /* Cards */
  .project-card {
    border-radius: 14px;
  }

  .project-content {
    padding: 16px 18px 18px;
  }

  .project-card h3 {
    font-size: 15px;
  }

  .project-card p {
    font-size: 12px;
    line-height: 1.5;
  }

  .project-img {
    height: 150px;
  }

  .tech-tag,
  .project-card .project-tag {
    padding: 4px 10px;
    font-size: 10px;
  }

  .project-link {
    font-size: 11px;
  }

  /* No results */
  .no-results {
    padding: 40px 10px;
  }

  .no-results-icon {
    font-size: 28px;
  }

  .no-results h3 {
    font-size: 16px;
  }

  .no-results p {
    font-size: 12px;
  }

  /* CTA */
  .contact-btn-wrapper {
    margin: 30px 0;
  }

  .contact-btn1 {
    padding: 11px 20px;
    font-size: 12px;
    gap: 7px;
  }

  .load-more-btn {
    padding: 9px 20px;
    font-size: 12px;
  }
}

/* iPhones standard et écrans similaires (390px - 414px) */
@media screen and (min-width: 390px) and (max-width: 414px) {
  .filter-btn {
    padding: 10px 18px;
    font-size: 12.5px;
  }

  .filter-tabs {
    gap: 10px;
  }
}

/* Très petits écrans (max 360px) */
@media screen and (max-width: 360px) {
  /* Filtres */
  .filters {
    padding: 20px 0;
  }

  .filter-tabs {
    gap: 8px;
    padding: 0 10px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 11px;
    border-width: 1.5px;
  }

  /* Barre de recherche */
  .search-bar {
    padding: 0 10px;
  }

  .search-input {
    padding: 9px 10px 9px 38px;
    font-size: 11px;
  }

  .search-icon {
    left: 24px;
    font-size: 13px;
  }

  /* Projets */
  .projects-section .container {
    padding: 0 8px;
  }

  .stats-number {
    font-size: 28px;
  }

  .projects-stats p {
    font-size: 11px;
  }

  /* Cards */
  .project-card {
    border-radius: 12px;
  }

  .project-content {
    padding: 14px 16px 16px;
  }

  .project-card h3 {
    font-size: 14px;
  }

  .project-card p {
    font-size: 11px;
  }

  .project-img {
    height: 140px;
  }

  .tech-tag,
  .project-card .project-tag {
    padding: 3px 9px;
    font-size: 9px;
  }

  /* CTA */
  .contact-btn1 {
    padding: 10px 18px;
    font-size: 11px;
  }

  .load-more-btn {
    padding: 8px 18px;
    font-size: 11px;
  }
}

/* Optimisation pour écrans ultra-larges */
@media screen and (min-width: 1400px) {
  .projects-section .container {
    max-width: 1400px;
  }

  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
  }

  .stats-number {
    font-size: 52px;
  }

  .projects-stats p {
    font-size: 17px;
  }

  .project-img {
    height: 220px;
  }

  .project-card h3 {
    font-size: 20px;
  }

  .project-card p {
    font-size: 16px;
  }

  .contact-btn1 {
    padding: 18px 40px;
    font-size: 17px;
  }
}

/* Ajustement pour orientation paysage sur petits écrans */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .filters {
    padding: 30px 15px;
  }

  .projects-stats {
    margin-bottom: 30px;
  }

  .stats-number {
    font-size: 32px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-img {
    height: 140px;
  }

  .contact-btn-wrapper {
    margin: 30px 0;
  }
}