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

body {
  font-family: "Poppins", sans-serif;
  background: #f8f8f8;
  color: #111;
}

/* NAVBAR */
.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 24px 70px;
  background: #f8f8f8;
}

.logo img {
  height: 150px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 20px;
  border: 2px solid;
  transition: 0.3s;
  background: #fff;
}

.nav-links a:nth-child(1) {
  border-color: #2bf1a5;
  color: #2bf1a5;
}

.nav-links a:nth-child(2) {
  border-color: #3498db;
  color: #3498db;
}

.nav-links a:nth-child(3) {
  border-color: #9b59b6;
  color: #9b59b6;
}

.nav-links a:nth-child(4) {
  border-color: #f39c12;
  color: #f39c12;
}

.nav-links a:nth-child(5) {
  border-color: #e74c3c;
  color: #e74c3c;
}

.nav-links a:nth-child(6) {
  border-color: #1abc9c;
  color: #1abc9c;
}

.nav-links a:nth-child(1):hover {
  background: #2bf1a5;
  color: white;
}

.nav-links a:nth-child(2):hover {
  background: #3498db;
  color: white;
}

.nav-links a:nth-child(3):hover {
  background: #9b59b6;
  color: white;
}

.nav-links a:nth-child(4):hover {
  background: #f39c12;
  color: white;
}

.nav-links a:nth-child(5):hover {
  background: #e74c3c;
  color: white;
}

.nav-links a:nth-child(6):hover {
  background: #1abc9c;
  color: white;
}

.active-link {
  background: #9b59b6 !important;
  color: #fff !important;
}

/* Bouton S’engager */
.nav-btn {
  text-decoration: none;
  background: #3498db;
  color: white;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  box-shadow: 0 6px 18px rgba(52, 152, 219, 0.25);
}

.nav-btn:hover {
  background: #2c80b4;
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 160px; /* ← très important */
}

.nav-actions a {
  border: none !important;
}
/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 250px;
  background: white;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s ease;
}

.dropdown-menu a {
  text-decoration: none;
  color: #16363d;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 12px;
  transition: 0.2s;
}

.dropdown-menu a:hover {
  background: #f2f9ff;
  color: #3498db;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* HERO */
.catalog-hero {
  margin: 10px 70px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1abc9c, #72dbc7);
  padding: 50px 55px;
  color: white;
}

.catalog-kicker {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.catalog-hero h1 {
  font-size: 56px;
  line-height: 1.05;
  margin-bottom: 18px;
}

.catalog-hero p:last-child {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.8;
}

/* PAGE */
.atelier-page {
  padding: 10px 70px 80px;
}

.atelier-category {
  margin-bottom: 55px;
}

.category-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.category-header h2 {
  font-size: 34px;
  color: #16363d;
  margin-bottom: 8px;
}

.category-header p {
  color: #666;
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
}

.category-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.scroll-btn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: white;
  color: #16363d;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: 0.25s;
}

.scroll-btn:hover {
  transform: translateY(-2px);
  background: #1abc9c;
  color: white;
}

.atelier-row {
  display: flex;
  gap: 22px;
  position: relative;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;

  padding-bottom: 8px;

  /* 🔥 important */
  padding-right: 80px; /* laisse de la place pour voir qu'il y a du contenu */
}

.atelier-row::-webkit-scrollbar {
  display: none;
}

.atelier-row::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 80px;
  pointer-events: none;

  background: linear-gradient(to right, transparent, #f4f4f4);
}

.atelier-card {
  min-width: 260px;
  max-width: 260px;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid #eaeaea;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.atelier-row .atelier-card:nth-child(1) {
  border-color: #2bf1a5;
}

.atelier-row .atelier-card:nth-child(2) {
  border-color: #3498db;
}

.atelier-row .atelier-card:nth-child(3) {
  border-color: #9b59b6;
}

.atelier-row .atelier-card:nth-child(4) {
  border-color: #f39c12;
}

.atelier-row .atelier-card:nth-child(5) {
  border-color: #e74c3c;
}

.atelier-row .atelier-card:nth-child(6) {
  border-color: #2bf1a5;
}

.atelier-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.atelier-card-content {
  padding: 18px 18px 20px;
}

.atelier-card-content h3 {
  font-size: 21px;
  margin-bottom: 10px;
  color: #16363d;
}

.atelier-card-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

.atelier-category {
  overflow: hidden; /* empêche que ça déborde moche */
}

/* FOOTER */
.footer {
  padding: 40px 20px;
  background: #ffffff;
  text-align: center;
  border-top: 2px solid #eee;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 20px;
  border: 2px solid;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}

.instagram {
  border-color: #e1306c;
  color: #e1306c;
}

.facebook {
  border-color: #1877f2;
  color: #1877f2;
}

.tiktok {
  border-color: #000;
  color: #000;
}

.social:hover {
  color: white;
}

.instagram:hover {
  background: #e1306c;
}

.facebook:hover {
  background: #1877f2;
}

.tiktok:hover {
  background: #000;
}

.footer-contact {
  font-size: 14px;
  color: #777;
}

.footer-contact a {
  color: #2bf1a5;
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1050px) {
  .navbar {
    flex-direction: column;
    gap: 18px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .catalog-hero,
  .atelier-page,
  .navbar {
    padding-left: 24px;
    padding-right: 24px;
  }

  .catalog-hero {
    margin-left: 24px;
    margin-right: 24px;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 95px;
  }

  .catalog-hero h1 {
    font-size: 38px;
  }

  .catalog-hero p:last-child {
    font-size: 15px;
  }

  .category-header h2 {
    font-size: 28px;
  }

  .category-header p,
  .atelier-card-content p {
    font-size: 14px;
  }

  .atelier-card {
    min-width: 240px;
    max-width: 240px;
  }

  .atelier-card img {
    height: 210px;
  }
}