/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: #fffcf9; color: #3d2e22; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* === CONTAINER === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,252,249,0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800;
  color: #8b5cf6;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 0.88rem; font-weight: 600; color: #7a6960; transition: color 0.2s;
}
.nav__links a:hover { color: #8b5cf6; }
.nav__cta {
  font-size: 0.82rem; font-weight: 700; color: #fff; background: #8b5cf6;
  padding: 8px 20px; border-radius: 50px; transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(139,92,246,0.2);
}
.nav__cta:hover { background: #7c3aed; transform: translateY(-1px); }

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
  background: url('/assets/vrac-2024/IMG-20241020-WA0024.jpg') center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,31,20,0.55) 0%, rgba(45,31,20,0.75) 100%);
}
.hero__content { position: relative; z-index: 1; padding: 6rem 24px 4rem; max-width: 700px; }
.hero__badge {
  display: inline-block; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; padding: 8px 20px; font-size: 0.82rem; font-weight: 600;
  color: #fff; margin-bottom: 24px; letter-spacing: 0.02em;
}
.hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 900;
  color: #fff; letter-spacing: -0.03em; line-height: 0.95; margin-bottom: 8px;
}
.hero__tagline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 600;
  color: rgba(255,255,255,0.8); margin-bottom: 20px;
}
.hero__sub {
  font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.75);
  max-width: 500px; margin: 0 auto 32px;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.95rem;
  padding: 14px 30px; border-radius: 50px; border: none; cursor: pointer;
  transition: all 0.25s; text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, #8b5cf6, #e879a8); color: #fff;
  box-shadow: 0 6px 24px rgba(139,92,246,0.3);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(139,92,246,0.4); }
.btn--outline {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* === SECTIONS === */
.section { padding: 80px 0; }
.section--warm { background: #f7f0e8; }
.section__title {
  font-family: 'Outfit', sans-serif; font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; color: #2d1f14; text-align: center; margin-bottom: 12px;
}
.section__title span { color: #8b5cf6; }
.section__sub {
  text-align: center; color: #7a6960; font-size: 1rem;
  margin-bottom: 40px; line-height: 1.6;
}

/* === CATS GRID === */
.cats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.cat-card {
  background: #fff; border-radius: 24px; overflow: hidden;
  border: 1px solid #ece3d9; transition: transform 0.25s, box-shadow 0.25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(139,92,246,0.08); }
.cat-card__img {
  height: 300px; background-size: cover; background-position: center;
}
.cat-card__body { padding: 24px; }
.cat-card__body h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800; color: #2d1f14;
  margin-bottom: 4px;
}
.cat-card__role {
  display: inline-block; font-size: 0.78rem; font-weight: 700; color: #8b5cf6;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.cat-card__body p { font-size: 0.92rem; line-height: 1.6; color: #7a6960; }

/* === GALLERY === */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.gallery__item {
  aspect-ratio: 1; background-size: cover; background-position: center;
  border-radius: 14px; cursor: pointer; transition: transform 0.2s;
}
.gallery__item:hover { transform: scale(1.03); }

/* === ACTU === */
.actu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem;
}
.actu-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid #ece3d9; transition: transform 0.2s;
}
.actu-card:hover { transform: translateY(-3px); }
.actu-card__img {
  height: 200px; background-size: cover; background-position: center;
}
.actu-card__body { padding: 20px; }
.actu-card__date {
  display: block; font-size: 0.78rem; font-weight: 600; color: #a0918a;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.actu-card__text {
  font-size: 0.92rem; line-height: 1.6; color: #5a4a40;
}
.actu-loading { text-align: center; color: #a0918a; padding: 2rem; }

/* === ABOUT === */
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.about-card {
  background: #fff; border: 1px solid #ece3d9; border-radius: 20px;
  padding: 28px; text-align: center; transition: transform 0.2s;
}
.about-card:hover { transform: translateY(-3px); }
.about-card__icon { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.about-card h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: #2d1f14; margin-bottom: 8px;
}
.about-card p { font-size: 0.88rem; line-height: 1.6; color: #7a6960; }

/* === CONTACT === */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.contact-card {
  background: #f7f0e8; border-radius: 20px; padding: 28px; text-align: center;
}
.contact-card__icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.contact-card h3 {
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 700;
  color: #2d1f14; margin-bottom: 8px;
}
.contact-card p { font-size: 0.88rem; line-height: 1.5; color: #7a6960; }
.contact-card a { color: #8b5cf6; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* === FOOTER === */
.footer {
  padding: 32px 0; border-top: 1px solid #ece3d9; background: #fff;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer__brand {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; color: #8b5cf6;
}
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 0.82rem; color: #7a6960; }
.footer__links a:hover { color: #8b5cf6; }
.footer__copy { font-size: 0.75rem; color: #a0918a; }

/* === TRACKER WIDGET === */
.tracker-widget {
  max-width: 700px; margin: 0 auto;
  box-shadow: 0 8px 40px rgba(139,92,246,0.08); border-radius: 20px; overflow: hidden;
}

/* === BONNES PRATIQUES === */
.pratiques-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.pratique-card {
  background: #fff; border: 1px solid #ece3d9; border-radius: 20px;
  padding: 28px; transition: transform 0.2s;
}
.pratique-card:hover { transform: translateY(-3px); }
.pratique-card__icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.pratique-card h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: #2d1f14; margin-bottom: 12px;
}
.pratique-card ul {
  list-style: none; padding: 0; margin: 0;
}
.pratique-card li {
  font-size: 0.88rem; line-height: 1.6; color: #7a6960;
  padding: 4px 0 4px 20px; position: relative;
}
.pratique-card li::before {
  content: '✓'; position: absolute; left: 0;
  color: #8b5cf6; font-weight: 700;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .hero__title { font-size: 2.8rem; }
  .hero__cta { flex-direction: column; align-items: center; }
  .footer__inner { flex-direction: column; text-align: center; }
  .cats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}


/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.3); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
