:root {
  --bg-body: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-tinted: #F3F7F2;
  --text-dark: #222624;
  --text-muted: #58605B;
  
  --apple-green: #68A738;
  --apple-green-hover: #568F2C;
  --apple-green-light: #EAF4E3;
  --apple-green-subtle: #F1F8EC;
  
  --border-color: #E2E8E0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --radius: 12px;
  --transition: all 0.25s ease;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* En-tête fixe */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-coccinelle {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.brand-logo strong {
  color: var(--apple-green);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--apple-green);
}

/* Hero Section */
.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background: radial-gradient(circle at center, var(--apple-green-light) 0%, var(--bg-body) 70%);
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: var(--apple-green-subtle);
  border: 1px solid var(--apple-green);
  color: var(--apple-green-hover);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--apple-green);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--apple-green-hover);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--apple-green);
  color: var(--apple-green);
}

.btn-nav {
  background-color: var(--apple-green-light);
  color: var(--apple-green-hover) !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

/* Sections */
.section-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-video-bg {
  background-color: var(--bg-tinted);
  border-radius: var(--radius);
}

.section-contact-bg {
  background-color: #FAFAFA;
}

.section-title {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
}

/* Cartes (3 haut, 2 bas centrées) */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.card {
  flex: 0 1 calc(33.333% - 1.5rem);
  min-width: 290px;
  max-width: 360px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--apple-green);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Conteneur Vidéo */
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: #000;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-tinted);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-info .lead {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.info-block {
  margin-bottom: 1.5rem;
}

.info-block strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.info-block p, .info-block a {
  color: var(--text-muted);
  text-decoration: none;
}

.info-block a:hover {
  color: var(--apple-green);
}

.whatsapp-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--apple-green-subtle);
  border: 1px dashed var(--apple-green);
  border-radius: var(--radius);
}

.whatsapp-box p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
}

/* Formulaire Contact */
.contact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #fff;
  box-sizing: border-box;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--apple-green);
  box-shadow: 0 0 0 3px var(--apple-green-light);
}

.btn-block {
  width: 100%;
}

/* Footer & Signature ChaumontPlage */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem 2rem;
  background-color: #fff;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-identity {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.95rem;
}

.footer-credits {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-credits a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
}

.footer-credits a:hover {
  color: var(--apple-green);
}

.footer-privacy-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.footer-privacy-btn:hover {
  color: var(--apple-green);
}

/* Modale nLPD & Lightbox */
.modal-overlay, 
.lightbox-overlay {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.85) !important;
  z-index: 99999 !important;
  padding: 1.5rem;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active, 
.lightbox-overlay.active {
  display: flex !important;
}

.modal-content {
  background-color: #fff;
  border-radius: var(--radius);
  max-width: 580px;
  width: 100%;
  padding: 2.25rem;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.25rem;
}

.modal-close-btn:hover {
  color: var(--text-dark);
}

.modal-body h4 {
  font-size: 1rem;
  margin: 1.25rem 0 0.4rem;
  color: var(--apple-green-hover);
}

.modal-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Lightbox & Navigation carrousel */
.lightbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 85vw;
  max-height: 85vh;
  user-select: none;
}

#lightboxImg {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 100001;
}

.lightbox-close:hover {
  background: var(--apple-green);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 100001;
}

.lightbox-nav:hover {
  background: var(--apple-green);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
}