:root {
  --dp-green: #1b5e20;
  --dp-green-dark: #103e15;
  --dp-green-light: #2e7d32;
  --dp-yellow: #f9b800;
  --dp-yellow-dark: #e0a300;
  --dp-cream: #fffdf5;
  --dp-text: #24301f;
  --dp-radius: 14px;
  --dp-shadow: 0 10px 30px rgba(16, 62, 21, 0.12);
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--dp-text);
  background: var(--dp-cream);
}

a { text-decoration: none; }

.btn-brand {
  background: var(--dp-yellow);
  color: var(--dp-green-dark);
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 0.7rem 1.8rem;
  transition: 0.2s ease;
}
.btn-brand:hover { background: var(--dp-yellow-dark); color: var(--dp-green-dark); }

.btn-outline-brand {
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50px;
  padding: 0.65rem 1.7rem;
  font-weight: 600;
  transition: 0.2s ease;
}
.btn-outline-brand:hover { background: #fff; color: var(--dp-green); }

/* Navbar */
.navbar-dp {
  background: var(--dp-green);
  padding: 0.6rem 0;
}
.navbar-dp .navbar-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 800; }
.navbar-dp .navbar-brand img { height: 46px; width: 46px; object-fit: cover; border-radius: 50%; background: #fff; }
.navbar-dp .nav-link { color: #eef7ec !important; font-weight: 600; margin: 0 0.35rem; }
.navbar-dp .nav-link.active, .navbar-dp .nav-link:hover { color: var(--dp-yellow) !important; }
.navbar-dp .btn-brand { margin-left: 0.5rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 62vh;
  background: linear-gradient(135deg, var(--dp-green) 0%, var(--dp-green-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.hero .carousel, .hero .carousel-item, .hero .carousel-inner { width: 100%; height: 100%; min-height: 62vh; }
.hero .carousel-item img { display: block; width: 100%; height: 62vh; object-fit: cover; filter: brightness(0.55); }
.hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}
.hero-caption h1 { font-weight: 800; font-size: 2.6rem; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero-caption p { font-size: 1.2rem; max-width: 640px; margin: 0.8rem auto 1.6rem; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.hero-plain { padding: 5rem 0; text-align: center; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .eyebrow { color: var(--dp-yellow-dark); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem; }
.section-title h2 { font-weight: 800; color: var(--dp-green-dark); }
.section-title .bar { width: 70px; height: 4px; background: var(--dp-yellow); margin: 0.9rem auto 0; border-radius: 2px; }
.section-alt { background: #f2f8ef; }

/* Cards */
.card-dp {
  background: #fff;
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow);
  padding: 2rem 1.6rem;
  height: 100%;
  transition: transform 0.2s ease;
  border-top: 4px solid var(--dp-yellow);
}
.card-dp:hover { transform: translateY(-6px); }
.card-dp .icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--dp-green); color: var(--dp-yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.2rem;
}
.card-dp img.icon-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 1.2rem; }

/* Founder */
.founder-photo {
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow);
  width: 100%;
  object-fit: cover;
  border: 6px solid #fff;
  outline: 3px solid var(--dp-yellow);
}
.founder-photo-placeholder {
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow);
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--dp-green);
  color: var(--dp-yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

/* Tables */
.table-tarifs thead { background: var(--dp-green); color: #fff; }
.table-tarifs td, .table-tarifs th { vertical-align: middle; }

/* News cards */
.news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--dp-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16, 62, 21, 0.18); }
.news-card-media { position: relative; overflow: hidden; }
.news-card-media img { display: block; width: 100%; height: 200px; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-card-media img { transform: scale(1.08); }
.news-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--dp-yellow); color: var(--dp-green-dark);
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.02em;
  padding: 0.35rem 0.9rem; border-radius: 999px;
}
.news-card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #7c8a76; margin-bottom: 0.6rem; }
.news-meta-light { color: #dcead8; }
.news-card-title {
  font-size: 1.05rem; font-weight: 700; color: var(--dp-green-dark); margin-bottom: 0.6rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-excerpt {
  font-size: 0.9rem; color: #5b6a55; margin-bottom: 1rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-link { color: var(--dp-green); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.news-card-link i { transition: transform 0.2s ease; }
.news-card:hover .news-card-link i { transform: translateX(4px); }

/* News — featured "à la une" card and detail-page hero */
.news-featured { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--dp-shadow); margin-bottom: 3rem; }
.news-featured img { width: 100%; height: 420px; object-fit: cover; display: block; }
.news-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16, 62, 21, 0.9) 0%, rgba(16, 62, 21, 0.35) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem;
}
.news-badge-featured { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem; }
.news-featured-overlay h2 { color: #fff; font-weight: 800; font-size: 1.8rem; margin: 0.8rem 0 0.6rem; max-width: 800px; }
.news-featured-overlay p { color: #e7f0e3; max-width: 700px; margin-bottom: 0.6rem; }

.news-detail-hero { position: relative; }
.news-detail-hero img { width: 100%; height: 420px; object-fit: cover; display: block; }
.news-detail-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16, 62, 21, 0.88) 0%, rgba(16, 62, 21, 0.2) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem;
}
.news-detail-overlay h1 { color: #fff; font-weight: 800; margin: 0.8rem 0 0.6rem; }
.news-back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--dp-green); font-weight: 700; margin: 1.5rem 0 0; }
.news-back-link:hover { color: var(--dp-green-dark); }

.news-article-body { font-size: 1.08rem; line-height: 1.8; color: #33402d; }
.news-article-body img { max-width: 100%; height: auto; border-radius: var(--dp-radius); }

@media (max-width: 767px) {
  .news-featured img, .news-detail-hero img { height: 260px; }
  .news-featured-overlay, .news-detail-overlay { padding: 1.5rem; }
  .news-featured-overlay h2, .news-detail-overlay h1 { font-size: 1.35rem; }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 991px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-card {
  position: relative;
  border-radius: var(--dp-radius);
  overflow: hidden;
  box-shadow: var(--dp-shadow);
  cursor: pointer;
}
.gallery-card img {
  display: block;
  width: 100%;
  height: 256px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 62, 21, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  text-align: center;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { color: #fff; font-weight: 700; font-size: 1.05rem; margin: 0; }

.gallery-featured {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--dp-shadow);
  margin-bottom: 3rem;
}
.gallery-featured img { display: block; width: 100%; height: 450px; object-fit: cover; transition: transform 0.6s ease; }
.gallery-featured:hover img { transform: scale(1.05); }
.gallery-featured .gallery-overlay { background: rgba(16, 62, 21, 0.5); }
.gallery-featured:hover .gallery-overlay { opacity: 1; }
.gallery-featured .gallery-overlay h3 { font-size: 1.6rem; }
@media (max-width: 767px) { .gallery-featured img { height: 260px; } }

.gallery-video-card {
  border-radius: var(--dp-radius);
  overflow: hidden;
  box-shadow: var(--dp-shadow);
  background: #000;
}
.gallery-video-card video { display: block; width: 100%; max-height: 420px; background: #000; }
.gallery-video-caption { padding: 0.8rem 1.1rem; background: #fff; font-weight: 600; color: var(--dp-green-dark); }

/* Lightbox */
.js-lightbox-trigger { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  flex-direction: column;
}
.lightbox.open { display: flex; }

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: #fff;
  flex-shrink: 0;
}
.lightbox-counter { font-size: 0.95rem; opacity: 0.85; }
.lightbox-actions { display: flex; align-items: center; gap: 1.2rem; }
.lightbox-actions a, .lightbox-actions button {
  background: none; border: none; color: #fff; font-size: 1.15rem;
  opacity: 0.85; cursor: pointer; line-height: 1;
}
.lightbox-actions a:hover, .lightbox-actions button:hover { opacity: 1; color: var(--dp-yellow); }

.lightbox-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 5rem 2rem;
  min-height: 0;
}
.lightbox-body img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox-caption { color: #eee; text-align: center; margin-top: 1rem; max-width: 700px; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

@media (max-width: 767px) {
  .lightbox-body { padding: 0 1rem 1.5rem; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
}

/* Pagination (galerie, actualités) */
.pagination .page-link { color: var(--dp-green-dark); border-radius: 8px !important; margin: 0 3px; border: 1px solid #d7e3d2; }
.pagination .page-item.active .page-link { background: var(--dp-green); border-color: var(--dp-green); color: #fff; }
.pagination .page-link:hover { background: #eef7ec; color: var(--dp-green-dark); }

/* Footer */
.footer-dp { background: var(--dp-green-dark); color: #dfe9db; padding: 3.5rem 0 1.5rem; }
.footer-dp h5 { color: var(--dp-yellow); font-weight: 700; }
.footer-dp a { color: #dfe9db; }
.footer-dp a:hover { color: var(--dp-yellow); }
.footer-dp .socials a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); align-items: center; justify-content: center; margin-right: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.2rem; font-size: 0.9rem; text-align: center; color: #a9bda3; }

/* Forms */
.form-dp { background: #fff; border-radius: var(--dp-radius); box-shadow: var(--dp-shadow); padding: 2.5rem; }
.form-dp label { font-weight: 600; color: var(--dp-green-dark); }
.form-dp .form-control, .form-dp .form-select { border-radius: 10px; border: 1px solid #d7e3d2; padding: 0.65rem 0.9rem; }
.form-dp .form-control:focus, .form-dp .form-select:focus { border-color: var(--dp-green); box-shadow: 0 0 0 0.2rem rgba(27,94,32,0.15); }
.form-msg { display:none; border-radius: 10px; padding: 0.9rem 1.1rem; margin-bottom: 1.2rem; font-weight: 600; }
.form-msg.success { display:block; background:#e4f6e6; color:#1b5e20; border:1px solid #b8e2bd; }
.form-msg.error { display:block; background:#fdeaea; color:#a52424; border:1px solid #f3c1c1; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* CTA */
.cta-band { background: var(--dp-yellow); padding: 3rem 0; text-align: center; }
.cta-band h3 { color: var(--dp-green-dark); font-weight: 800; }
.cta-band .btn-brand { background: var(--dp-green); color: #fff; }
.cta-band .btn-brand:hover { background: var(--dp-green-dark); }

@media (min-width: 1200px) {
  .col-xl-2dot4 { flex: 0 0 20%; max-width: 20%; }
}

@media (max-width: 767px) {
  .hero-caption h1 { font-size: 1.8rem; }
  .section { padding: 3rem 0; }
}
