/* ===================================================
   RHDOC — SHARED PREMIUM DESIGN SYSTEM
   Palette : vert uniquement, pas de jaune/orange
   =================================================== */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

/* ── VARIABLES ── */
:root {
  --primary:        #1a6b3b;
  --primary-light:  #22a05a;
  --secondary:      #2c8c5c;
  --shadow-green:   0 0 30px rgba(26,107,59,0.22);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
  overflow-x: hidden !important; 
  width: 100% !important; 
  position: relative;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #f4f7f5;
  color: #1a2332;
  line-height: 1.7;
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
  padding-top: 70px; /* Space for fixed-top navbar */
}

/* ── PREVENT HORIZONTAL SCROLL FROM AOS/FLOAT ── */
.main-wrapper {
  overflow-x: clip;   /* clip empêche le scroll horizontal SANS créer un 2e scrollbar */
  width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── NAVBAR ── */
.navbar {
  padding: 12px 0;
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 3px 20px rgba(26,107,59,0.1);
  transition: all 0.4s ease;
  z-index: 1030; /* Bootstrap fixed-top default but ensuring it's high */
}

.navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 24px rgba(26,107,59,0.15);
}

.navbar-brand img {
  height: 42px;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover { transform: scale(1.08); }

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #333 !important;
  margin: 0 4px;
  padding: 7px 16px !important;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26,107,59,0.08), transparent);
  transition: left 0.5s;
}

.nav-link:hover::before { left: 100%; }

.nav-link:hover,
.nav-link.active {
  background-color: var(--primary);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(26,107,59,0.3);
}

/* Toggler */
.navbar-toggler {
  border: none;
  padding: 6px 10px;
  background: transparent;
  font-size: 1.2rem;
  color: var(--primary);
}

.navbar-toggler:focus { box-shadow: none; }

/* Offcanvas */
.offcanvas {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
}

.offcanvas-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.offcanvas-body { padding: 20px; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.mobile-nav .nav-link {
  width: 100%;
  max-width: 250px;
  margin: 5px 0;
  border-radius: 10px;
  padding: 12px 20px !important;
  font-size: 1rem;
}

/* ── SECTION TITLES ── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  color: #0d1b12;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── TEXT UTILITIES ── */
.text-content {
  color: inherit;
  line-height: 1.7;
}

.text-premium-light {
  color: rgba(255, 255, 255, 0.9) !important;
}

.text-premium-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.text-premium-dark {
  color: #0d1b12 !important;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* ── HERO BADGE ── */
.hero-badge {
  display: inline-block;
  background: rgba(44,140,92,0.25);
  border: 1px solid rgba(44,140,92,0.5);
  color: #d0f0e0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

/* ── SCROLL HINT ── */
.hero-scroll-hint {
  margin-top: 40px;
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.6;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── BUTTONS ── */
/* ── FILL PRIMARY (FOR LIGHT BG) ── */
.btn-premium {
  background: var(--primary);
  color: #fff !important;
  border: none;
  padding: 13px 32px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border-radius: 50px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(26,107,59,0.3);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.8s;
}

.btn-premium:hover::before { left: 100%; }

.btn-premium:hover {
  background: var(--secondary);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,107,59,0.4);
  color: #fff !important;
}

/* ── OUTLINE PRIMARY (FOR LIGHT BG) ── */
.btn-premium-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px 32px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border-radius: 50px;
  transition: all 0.4s ease;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-premium-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(26,107,59,0.2);
  color: #fff !important;
}

/* ── FILL WHITE (FOR DARK BG) ── */
.btn-cta {
  background: #fff;
  color: var(--primary) !important;
  border: none;
  padding: 13px 32px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border-radius: 50px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.8s;
}

.btn-cta:hover::before { left: 100%; }

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  color: var(--primary) !important;
}

/* ── OUTLINE WHITE (FOR DARK BG) ── */
.btn-cta-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.65);
  padding: 11px 32px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border-radius: 50px;
  transition: all 0.4s ease;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-cta-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  color: #fff !important;
}

.btn-cta-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px 32px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border-radius: 50px;
  transition: all 0.4s ease;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-cta-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(26,107,59,0.2);
  color: #fff !important;
}

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, #0d2b18 0%, var(--primary) 50%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(44,140,92,0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(26,107,59,0.2)  0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
}

/* ── FOOTER ── */
.footer {
  background: rgba(26,107,59,0.93);
  padding: 50px 0 20px;
  position: relative;
  color: #fff;
  text-align: center;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.footer-links { width: 100%; }

.footer-links h5 {
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 100%;
}

.footer-links h5::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 2px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
}

.footer-links ul { list-style: none; padding: 0; margin: 0; width: 100%; }
.footer-links li { margin-bottom: 8px; width: 100%; }

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 0.88rem;
  padding: 4px 0;
}

/* ── CONTACT-SPECIFIC (CAN BE REUSED) ── */
.contact-item {
  display: flex; align-items: flex-start; margin-bottom: 30px;
}

.contact-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  margin-right: 18px; flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(26,107,59,0.25);
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon { transform: scale(1.1) rotate(5deg); }

.contact-details h5 { margin-bottom: 4px; font-weight: 700; font-size: 0.95rem; color: #0d1b12; }
.contact-details p  { margin: 0; color: #5a6a72; font-size: 0.88rem; }

.footer-links i {
  width: 20px;
  color: var(--primary-light);
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  transition: all 0.35s ease;
  font-size: 0.9rem;
}

.social-icons a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(26,107,59,0.4);
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 30px;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  width: 100%;
}

/* ── ZOOM OVERLAY ── */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
}

.zoom-overlay img {
  max-width: 90%; max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(26,107,59,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

.zoomable { cursor: zoom-in !important; pointer-events: auto !important; }

/* ── CARDS GÉNÉRIQUES PREMIUM ── */
.premium-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(26,107,59,0.06);
  transition: all 0.5s cubic-bezier(0.2, 1, 0.22, 1);
  height: 100%;
  position: relative;
  border: 1px solid rgba(26,107,59,0.08);
  display: flex;
  flex-direction: column;
  padding: 35px 25px;
  text-align: center;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.8;
  transition: height 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 70px rgba(26,107,59,0.18);
  border-color: rgba(26,107,59,0.2);
}

.premium-card:hover::before {
  height: 6px;
}

/* Glass Card Enhanced */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 35px;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.22, 1);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Icon Styles Expanded */
.icon-box {
  width: 72px; height: 72px;
  background: rgba(26, 107, 59, 0.08);
  color: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.22, 1);
  box-shadow: 0 8px 20px rgba(26, 107, 59, 0.05);
}

.premium-card:hover .icon-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 12px 30px rgba(26, 107, 59, 0.3);
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 25px; right: 25px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(26,107,59,0.4);
  font-size: 1rem;
}

.back-to-top.show { opacity: 1; visibility: visible; }

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(26,107,59,0.5);
  color: #fff;
}

/* ── FORM STYLING ── */
form input,
form textarea,
form select {
  border-radius: 10px;
  border: 1.5px solid rgba(26,107,59,0.2);
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: 'Inter', sans-serif;
  background: #fff;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,59,0.12);
  outline: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section-title { font-size: 1.6rem; }
  .navbar        { padding: 10px 0; }
  .nav-link      { border-radius: 10px; margin: 3px 0; }
  .footer-col    { margin-bottom: 28px; }
  .cta-section   { padding: 55px 0; }
}

@media (max-width: 576px) {
  .section-title { font-size: 1.4rem; }
}
