/* assets/css/style.css */
:root {
  --primary: #2C2318;
  --primary-light: #4A3B2C;
  --accent-color: #7A8C50;
  --accent-hover: #64754A;
  --secondary-color: #F5F2EC;
  --bg-light: #FDFBF7;
  --text-dark: #2E2820;
  --text-muted: #6E6358;
  --white: #FFFFFF;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
  --transition: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-heading);
  color: var(--primary);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

p {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.05rem;
}

strong {
  font-weight: 500;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

em {
  font-style: italic;
}

.text-accent {
  color: var(--accent-color);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  position: relative;
  z-index: 10;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--accent-color);
  margin: 0.9rem auto 0;
}

/* Label Chips */
.label-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-color);
  background: rgba(122, 140, 80, 0.1);
  border: 1px solid rgba(122, 140, 80, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.label-chip--light {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.centered-chip {
  display: table;
  margin: 0 auto 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.5px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(44, 35, 24, 0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-accent {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(122, 140, 80, 0.4);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-color);
  border-bottom: 1px solid rgba(122, 140, 80, 0.4);
  padding-bottom: 2px;
  transition: all var(--transition);
}

.btn-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  gap: 0.8rem;
}

/* ================================================
   NAVBAR
================================================ */
.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--primary);
}

.logo-dot {
  color: var(--accent-color);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  background: white;
  min-width: 220px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0.8rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown li a {
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dark);
  width: 100%;
}

.dropdown li a:hover {
  background: var(--secondary-color);
  color: var(--accent-color);
}

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

.nav-cta {
  background: var(--accent-color) !important;
  color: white !important;
  padding: 0.55rem 1.2rem;
  border-radius: 3px;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: white !important;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--primary);
}

main {
  flex: 1;
  padding-top: var(--total-header-height, 70px);
}

/* ================================================
   HERO
================================================ */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding: 0 6%;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 15;
  max-width: 640px;
  color: white;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  color: white;
}

.hero-content em {
  color: var(--accent-color);
}

.hero-content>p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

/* ================================================
   INTRO BANNER (MARQUEE)
================================================ */
.intro-banner {
  background: var(--primary);
  padding: 1.5rem 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.intro-banner-marquee {
  display: inline-flex;
  white-space: nowrap;
}

.intro-banner-inner[aria-hidden="true"] {
  display: none;
}

@media (max-width: 768px) {
  .intro-banner {
    justify-content: flex-start;
  }

  .intro-banner-marquee {
    animation: bannerMarquee 30s linear infinite;
  }

  .intro-banner-marquee:hover {
    animation-play-state: paused;
  }

  .intro-banner-inner[aria-hidden="true"] {
    display: inline-flex;
  }
}

@keyframes bannerMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.intro-banner-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 2rem;
}

.intro-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 2.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.intro-stat i {
  font-size: 1.3rem;
  color: var(--accent-color);
}

.intro-stat strong {
  color: white;
}

.intro-sep {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
}

/* ================================================
   ABOUT
================================================ */
.about-section {
  background: var(--secondary-color);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  aspect-ratio: 4/5;
  border-radius: 6px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.about-content p {
  margin-bottom: 1.3rem;
}

/* ================================================
   PRESTATIONS — ALTERNATING ROWS (Gaïa style)
================================================ */
.prestations-section {
  background: var(--bg-light);
}

.prestations-section>.container {
  padding-bottom: 2rem;
}

.prestation-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.prestation-row--reverse {
  direction: rtl;
}

.prestation-row--reverse>* {
  direction: ltr;
}

.prestation-row--last {
  border-bottom: none;
}

.prestation-img {
  min-height: 460px;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.prestation-row {
  overflow: hidden;
}

/* Ensure the row clips the scaling child */
.prestation-row:hover .prestation-img {
  transform: scale(1.05);
}

.prestation-content {
  padding: 4rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.prestation-row--reverse .prestation-content {
  background: var(--secondary-color);
}

.prestation-num {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(122, 140, 80, 0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.prestation-content h3 {
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}

.prestation-content p {
  margin-bottom: 1rem;
}

.prestation-content .btn-link {
  margin-top: 1rem;
}

/* ================================================
   GALLERY with filters
================================================ */
.gallery-section {
  padding-bottom: 4rem;
}

.gallery-filters {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.4rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 50px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  /* Important for zoom fix */
  border-radius: 6px;
  aspect-ratio: 4/3;
  background: var(--secondary-color);
  display: block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item.hidden {
  display: none;
}

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

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

.gallery-caption {
  position: absolute;
  inset: 0;
  background: rgba(44, 35, 24, 0);
  /* Start transparent */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(10px);
}

.gallery-item:hover .gallery-caption {
  background: rgba(44, 35, 24, 0.85);
  /* Premium dark overlay */
  opacity: 1;
  transform: translateY(0);
}

.gallery-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-bottom: 0.4rem;
  transform: translateY(15px);
  transition: transform 0.4s 0.1s ease;
}

.gallery-item:hover .gallery-cat {
  transform: translateY(0);
}

.gallery-caption p {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  transform: translateY(15px);
  transition: transform 0.4s 0.2s ease;
}

.gallery-item:hover .gallery-caption p {
  transform: translateY(0);
}

.gallery-cta {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

/* ================================================
   CONTACT
================================================ */
.contact-section {
  background: var(--primary);
  padding: 6rem 2rem;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  color: white;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.contact-info>p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1rem;
}

.contact-details strong {
  display: block;
  color: white;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.contact-details span,
.contact-details a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.contact-details a:hover {
  color: var(--accent-color);
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
}

.social-badge:hover {
  background: #3b5998;
  border-color: #3b5998;
}

.social-badge--ig:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
}

.contact-form-box {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-row--address {
  display: grid;
  grid-template-columns: 2fr 100px 160px;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-size: 0.87rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: 1.5px solid #E0DDD7;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: all 0.3s ease;
  appearance: auto;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(122, 140, 80, 0.1), 0 10px 25px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
}

.form-success {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  color: #2e7d32;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  border-left: 4px solid #4caf50;
}

.form-error {
  background: #ffebee;
  color: #c62828;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ================================================
   FOOTER
================================================ */
.site-footer {
  background: #181108;
  color: rgba(255, 255, 255, 0.55);
  padding: 4rem 2rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-col h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.4rem;
}

.footer-col .logo {
  color: white;
  margin-bottom: 0.8rem;
  display: block;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.7rem;
}

.footer-col a:hover {
  color: white;
}

.footer-col ul li .fa-solid {
  color: var(--accent-color);
  margin-right: 0.5rem;
  width: 14px;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background var(--transition);
}

.social-links a:hover {
  background: var(--accent-color);
}

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 900px) {
  .container {
    padding: 4rem 1.25rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .prestation-row,
  .prestation-row--reverse {
    grid-template-columns: 1fr;
    min-height: auto;
    border: none;
    margin-bottom: 2rem;
  }

  .prestation-img {
    min-height: 250px;
    border-radius: 12px;
    transform: none !important;
  }

  .prestation-content {
    padding: 2rem 0.5rem;
    border: none;
  }

  .prestation-num {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    min-height: 350px;
    border-radius: 12px;
  }

  /* Project Slider on Mobile */
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 1.25rem;
    padding: 1rem 1.25rem 2.5rem 1.25rem;
    margin: 0 -1.25rem;
    /* Break out of container padding */
    scrollbar-width: none;
    grid-template-columns: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    aspect-ratio: auto;
    overflow: visible;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  .gallery-item img {
    border-radius: 8px;
    /* Softer, simpler frame */
    height: 250px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    /* Subtle shadow, no nested frame lines */
    transition: none !important;
    /* Disable transition on mobile */
  }

  .gallery-item:hover img {
    transform: none !important;
  }

  /* Prevent sticky hover scale on tap */

  /* Redesigned project info for touch screens (always visible, no hover overlay) */
  .gallery-caption {
    position: relative;
    /* Break out of absolute */
    background: transparent !important;
    padding: 1rem 0 0.5rem 0 !important;
    opacity: 1 !important;
    transform: none !important;
    color: var(--text-dark) !important;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .gallery-item:hover .gallery-caption,
  .gallery-item:active .gallery-caption {
    background: transparent !important;
    /* Force transparent even if tapped */
    transform: none !important;
  }

  .gallery-cat {
    display: inline-block !important;
    color: var(--accent-color) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0.3rem !important;
    order: 1;
    /* Category above title */
  }

  .gallery-caption p {
    color: var(--primary) !important;
    margin: 0 !important;
    font-size: 1.2rem !important;
    font-weight: 600;
    transform: none !important;
    order: 2;
    /* Title below category */
  }

  .gallery-cta {
    display: none !important;
  }

  /* Navigation Mobile */
  .nav-links {
    position: fixed;
    top: 100px;
    /* Lowered to not hide the logo */
    left: -100%;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 100px);
    /* Re-enabled to allow internal scroll */
    overflow-y: auto;
    /* Re-enabled to allow internal scroll */
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.5rem 2rem 1.5rem;
    /* Reduced top/bottom padding */
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 16px 16px;
    display: flex;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
    font-size: 1.25rem;
    padding: 0.5rem;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links li:last-child {
    border: none;
  }

  .nav-links a {
    padding: 0.75rem 0;
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #fcfcfc;
    padding: 0 1.2rem;
    display: none;
    width: 100%;
    border-radius: 0;
  }

  .dropdown li a {
    padding: 0.8rem 0;
    font-size: 1rem;
    border: none;
  }

  .has-dropdown.active .dropdown {
    display: block;
  }

  .hero {
    min-height: 85vh;
    padding-top: 2rem;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    justify-content: center;
    padding-bottom: 2rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-scroll-hint {
    bottom: 1.5rem;
  }

  .intro-banner-inner {
    display: inline-flex;
    padding: 0;
  }

  .intro-stat {
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    justify-content: center;
    background: transparent;
    border-radius: 0;
  }

  .intro-sep {
    display: inline-block;
  }

  .contact-section {
    padding: 4rem 0 0 0;
  }

  /* Remove side padding on mobile */
  .contact-inner {
    padding: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-info {
    padding: 0 1.5rem 3rem 1.5rem;
  }

  /* Keep padding for text */
  .contact-form-box {
    padding: 3rem 1.5rem;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: none;
    margin: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 1.1rem 1.3rem;
    /* Larger touch area for fingers */
    font-size: 1.1rem;
    /* Better readability on small screens */
  }

  /* Address row stacks on mobile */
  .form-row--address {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
  }

  .form-row--address .form-group {
    margin-bottom: 1.3rem;
  }

  /* If there is a map container inside contact, make it edge-to-edge */
  .contact-map-wrapper {
    margin: 0;
    border-radius: 0;
  }
}

/* ================================================
   SCROLL ANIMATIONS (Fade-in-up)
================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional delays for staggered items */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* Prevent background scrolling when mobile menu expands */
body.no-scroll {
  overflow: hidden;
}

/* Administrative Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked+.slider {
  background-color: var(--accent-color);
}

input:focus+.slider {
  box-shadow: 0 0 1px var(--accent-color);
}

input:checked+.slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ================================================
   DECORATIVE SCROLL-TRIGGERED LEAVES
   ================================================ */
.leaf-container {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  /* Above section backgrounds but below content */
  overflow: hidden;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.floating-leaf {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  filter: blur(4px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), filter 1.2s ease;
  will-change: transform, opacity;
  z-index: 2;
  /* Relative to container */
}

.floating-leaf.visible {
  opacity: 0.6;
  filter: blur(2px);
  transform: translate(0, 0) rotate(var(--base-rot)) !important;
}

/* Specific leaf variations */
.leaf-left {
  left: -50px;
  --base-rot: -15deg;
  transform: translate(-30px, 40px) rotate(calc(var(--base-rot) - 10deg));
}

.leaf-right {
  right: -50px;
  --base-rot: 165deg;
  transform: translate(30px, 40px) rotate(calc(var(--base-rot) + 10deg));
}

.leaf-small {
  width: 150px;
}

.leaf-medium {
  width: 280px;
}

.leaf-large {
  width: 420px;
}

/* Animation when visible (subtle floating) */
@keyframes leafFloatIdle {
  0% {
    transform: translate(0, 0) rotate(var(--base-rot));
  }

  100% {
    transform: translate(10px, 15px) rotate(calc(var(--base-rot) + 4deg));
  }
}

.floating-leaf.visible.idle-anim {
  animation: leafFloatIdle 6s ease-in-out infinite alternate;
}

@media (max-width: 768px) {
  .floating-leaf {
    display: none !important;
  }
}

/* Quill / Rich Text Rendering */
.quill-content {
  color: var(--text-dark);
  line-height: 1.8;
}

.quill-content p {
  margin-bottom: 1.2rem;
  color: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  font-size: inherit !important;
}

.quill-content h2,
.quill-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.quill-content ul,
.quill-content ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
  list-style: initial;
}

.quill-content li {
  margin-bottom: 0.5rem;
}

.quill-content strong {
  color: var(--primary);
  font-weight: 600;
}

.quill-content .ql-align-center {
  text-align: center;
}

.quill-content .ql-align-right {
  text-align: right;
}

.quill-content .ql-align-justify {
  text-align: justify;
}

/* Special override for Hero section (on dark overlay) */
.hero-content .quill-content,
.hero-content .quill-content p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 300;
}

.hero-content .quill-content strong {
  color: #fff !important;
}

.ql-size-small {
  font-size: 0.8rem;
}

.ql-size-large {
  font-size: 1.5rem;
}

.ql-size-huge {
  font-size: 2.5rem;
}

/* ================================================
   SITE PRELOADER
   ================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  color: white;
}

.draw-tree {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem auto;
  display: block;
}

.tree-draw-path {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: drawTree 1.5s ease-out forwards;
}

.tree-draw-path.trunk {
  animation-delay: 0s;
  stroke-width: 6;
}

.tree-draw-path.branch:nth-of-type(2) {
  animation-delay: 0.4s;
}

.tree-draw-path.branch:nth-of-type(3) {
  animation-delay: 0.6s;
}

.tree-draw-path.branch:nth-of-type(4) {
  animation-delay: 0.8s;
}

.tree-draw-path.branch:nth-of-type(5) {
  animation-delay: 1.0s;
}

.tree-draw-path.branch:nth-of-type(6) {
  animation-delay: 1.2s;
}

.tree-leaf {
  fill: var(--accent-color);
  opacity: 0;
  transform: scale(0);
  animation: popLeaf 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.tree-leaf:nth-of-type(7) {
  animation-delay: 0.9s;
  transform-origin: 20px 55px;
}

.tree-leaf:nth-of-type(8) {
  animation-delay: 1.1s;
  transform-origin: 80px 45px;
}

.tree-leaf:nth-of-type(9) {
  animation-delay: 1.3s;
  transform-origin: 30px 25px;
}

.tree-leaf:nth-of-type(10) {
  animation-delay: 1.5s;
  transform-origin: 70px 20px;
}

.tree-leaf:nth-of-type(11) {
  animation-delay: 1.7s;
  transform-origin: 50px 15px;
}

.led-text {
  color: rgba(255, 255, 255, 0.2);
  display: inline-block;
  font-weight: 500;
  animation: ledTurnOn 2s forwards 1.2s;
  /* Waits for the tree to draw a bit then turns on */
}

@keyframes ledTurnOn {
  0% {
    color: rgba(255, 255, 255, 0.2);
    text-shadow: none;
  }

  10%,
  15% {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
  }

  12%,
  18% {
    color: rgba(255, 255, 255, 0.3);
    text-shadow: none;
  }

  20%,
  100% {
    color: #fff;
    text-shadow:
      0 0 5px var(--accent-color),
      0 0 15px var(--accent-color),
      0 0 30px var(--accent-color),
      0 0 50px var(--accent-color);
  }
}

@keyframes drawTree {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes popLeaf {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* --- SITE ANNOUNCEMENTS --- */
.site-announcement-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  text-align: center;
  position: relative;
  /* Now part of the fixed navbar */
  width: 100%;
  z-index: 998;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
  font-weight: 500;
  animation: slideDownIn 0.5s ease-out;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  /* Separator from nav */
}

.site-announcement-banner .announcement-close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  position: absolute;
  right: 1.5rem;
  font-size: 1.1rem;
  transition: opacity 0.3s;
}

.announcement-btn {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.4rem 1.2rem;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.announcement-btn:hover {
  background: white;
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  color: var(--accent-color);
}

/* MOBILE BANNER ADAPTATION */
@media (max-width: 768px) {
  .site-announcement-banner {
    padding: 0.8rem 3.5rem 0.8rem 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    flex-wrap: nowrap;
    top: 0 !important;
    /* Explicitly reset to prevent any inheritance or weirdness */
  }

  .announcement-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    overflow: visible;
  }

  .announcement-content span,
  .announcement-content {
    white-space: normal !important;
    word-break: break-word;
  }

  .announcement-btn {
    margin: 0.2rem 0;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    display: inline-block;
  }

  .site-announcement-banner .announcement-close {
    top: 0.8rem;
    right: 0.8rem;
  }
}

/* PREMIUM POPUP */
.premium-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transition: opacity 0.4s ease;
}

.premium-popup.fade-out {
  opacity: 0;
}

.premium-popup .popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 25, 10, 0.6);
  backdrop-filter: blur(8px);
}

.premium-popup .popup-container {
  position: relative;
  background: white;
  width: 100%;
  max-width: 550px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  opacity: 0;
  animation: popupReveal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.premium-popup .popup-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 1.2rem;
  color: #555;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.premium-popup .popup-close-btn:hover {
  background: #eee;
  color: var(--primary);
  transform: rotate(90deg);
}

.premium-popup .popup-inner {
  padding: 3.5rem 3rem;
  text-align: center;
}

.premium-popup .popup-decoration {
  width: 80px;
  height: 80px;
  background: var(--bg-light);
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent-color);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.premium-popup .popup-decoration i {
  animation: leafFloat 3s infinite ease-in-out;
}

.premium-popup .popup-content-body {
  margin-bottom: 2.5rem;
}

.premium-popup .popup-content-body h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.premium-popup .popup-content-body p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

.premium-popup .popup-footer {
  margin-top: 1rem;
}

.popup-action-btn {
  padding: 1.1rem 3rem !important;
  font-size: 1.05rem !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 20px rgba(122, 140, 80, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.popup-action-btn:hover {
  transform: scale(1.05) translateY(-3px) !important;
  box-shadow: 0 15px 30px rgba(122, 140, 80, 0.4) !important;
}

/* Styles Contextuels Aura */
.premium-popup.style-info .popup-decoration {
  color: #3498db;
}

.premium-popup.style-success .popup-decoration {
  color: var(--accent-color);
}

.premium-popup.style-warning .popup-decoration {
  color: #f1c40f;
}

.premium-popup.style-alert .popup-decoration {
  color: #e74c3c;
}

/* Themes Banner */
.style-info {
  background: #3498db;
  color: white;
}

.style-success {
  background: var(--accent-color);
  color: white;
}

.style-warning {
  background: #f39c12;
  color: white;
}

.style-alert {
  background: #c0392b;
  color: white;
}

@keyframes popupReveal {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes leafFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-10px) rotate(15deg);
  }
}

@keyframes slideDownIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .site-announcement-banner {
    top: 70px;
    padding: 0.7rem 3rem 0.7rem 1rem;
    font-size: 0.85rem;
  }

  .premium-popup .popup-inner {
    padding: 3rem 1.5rem;
  }

  .premium-popup .popup-content-body h3 {
    font-size: 1.8rem;
  }
}

/* Breadcrumbs Section */
.breadcrumb-nav {
  background: var(--bg-light);
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.breadcrumb-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb-container a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.breadcrumb-container a:hover {
  color: var(--accent-color);
}

.breadcrumb-separator {
  opacity: 0.4;
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}