:root {
    /* Color System */
    /* Brand Colors */
    --brand-red: #D85344;
    --plantissima-green: #65695b;
    
    /* Earth Tones */
    --earthy-olive: #7D8B4C;
    --earthy-olive-light: #A1B17A;
    --earthy-olive-lightest: #E8EBE0;
    --earthy-olive-dark: #5C6E2F;
    --brown-light: #D7C6BD;
    --medium-brown: #C8ADA0;
    --dark-brown: #8B7460;
    
    /* Accent Colors */
    --golden-yellow: #F2B21A;
    --golden-yellow-lightest: #F5D792;
    --accent-blue: #4384D9;
    --navy-blue: #154B8A;
    --accent-color-3: #AE73C0;
    
    /* Neutral Colors */
    --main-bg-color: #FFFFFF;
    --off-white: #FCFCFC;
    --light-gray: #F0F0F0;
    --medium-gray: #6E6E6E;
    --dark-gray: #404040;
    
    /* Typography */
    --font-primary: "Gentium Book Plus", serif;
    --font-secondary: "Merriweather", serif;
    --font-tertiary: "Roboto", serif;
    
    /* Layout */
    --max-width: 1680px;
    --border-radius: 0.15rem;
    
    /* Spacing System */
    --spacing-xs: clamp(0.2rem, 1vw, 0.25rem);    /* Category tag padding */
    --spacing-sm: clamp(0.6rem, 1.2vw, 0.8rem);   /* Small text padding */
    --spacing-md: clamp(1rem, 2vw, 1.5rem);       /* Card padding */
    --spacing-lg: clamp(1.5rem, 4vw, 3rem);       /* Title padding */
    --spacing-xl: 4rem;                           /* Extra large spacing for hero headers */
    --content-padding: clamp(1rem, 3vw, 2rem);    /* Content wrapper */
    --section-spacing: clamp(1rem, 3.5vw, 4rem);  /* Major section breaks - reduced by half */
    --nav-height: 4.45rem;
}
/* Global Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Base HTML Styles */
html {
    font-size: 18px;
    font-weight: 400; /* Changed to 400 for consistency */
    color: var(--dark-gray);
    line-height: 1.35;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    font-family: var(--font-primary);
}

body {
    margin: 0; /* Changed from 0 auto */
    padding: 0;
    padding-top: var(--nav-height); /* This creates space for fixed nav */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--main-bg-color);
}
/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img, .blog-card {
    border-radius: var(--border-radius);
}

/* Heading Styles */
h1 {
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    letter-spacing: 0.02rem;
}

h2 {
    font-family: var(--font-secondary);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    line-height: 1.2;
    color: var(--brand-red);
    letter-spacing: 0.02rem;
}

a {
   color: var(--plantissima-green);
   text-decoration: none;
   border-bottom: 3px solid var(--golden-yellow);
   padding: 1px 1px;
   transition: all 0.2s ease;
   padding-bottom: 0; /* Ajustez cette valeur */
   transition: all 0.2s ease;
}

a:hover {
   color: var(--off-white);
   background: var(--brand-red);
   text-decoration: none;
   border-bottom: 0;
}

.golden-yellow {
   color: var(--golden-yellow);
}

/* Navigation Update - "Agenda" item with NEW badge */
.nav-new {
  position: relative;
}

.nav-new::after {
  content: 'NOUVEAU';
  position: absolute;
  top: -0.5rem;
  right: -0.8rem;
  background: var(--golden-yellow);
  color: white;
  font-size: 0.6rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

/* Logo Styles */
.logo {
    width: 225px;
}

/* Remove underline from logo on hover */
.nav-content a:has(.logo),
.nav-content a:has(.logo):hover {
    border-bottom: none !important;
    background: none !important;
}

.nav-content a:has(.logo)::after,
.nav-content a:has(.logo):hover::after {
    display: none !important;
    width: 0 !important;
}

/* More specific logo link targeting */
.main-nav .logo,
.main-nav a .logo {
    border-bottom: none !important;
}

.main-nav a:hover .logo {
    border-bottom: none !important;
    background: none !important;
}

/* Navigation Bar Styles */
.wrapper.brand-red {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: var(--nav-height);
    z-index: 5000;
    background-color: var(--brand-red);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center items */
    width: 100%;
    height: 100%; /* Fill the full height of wrapper.brand-red */
    padding: 0 var(--spacing-md); /* Remove vertical padding, keep horizontal */
    position: relative;
}

.nav-content {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: flex-start;
    flex: 1;
    height: 100%;
}

.main-nav .logo {
    width: 225px; /* Adjust as needed */
    height: auto;
    height: calc(var(--nav-height) - 1.5rem);
    margin-right: 2rem; /* Space between logo and nav links */
    transition: transform 0.3s ease;
}

.main-nav .logo {
   object-fit: contain;
   aspect-ratio: auto;
}

.main-nav .logo:hover {
    transform: scale(1.03);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin-left: auto;
    margin-right: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--off-white);
    font-family: var(--font-tertiary);
    padding: var(--spacing-xs) 0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: 0;
}

/* Nav Links Underline Animation */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--golden-yellow);
    transition: width 0.4s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hamburger Menu Styles */
.menu-toggle {
    display: none; /* Hidden by default */
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.hamburger-icon {
    width: 34px;
    height: 21px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--off-white);
    transition: all 0.3s ease;
}

/* Active State for Hamburger */
.main-nav.active .hamburger-icon span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.main-nav.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.main-nav.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.page-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin:0;
    /* margin-top: calc(var(--nav-height) * -1); This counteracts the body padding-top */
    padding-top: var(--nav-height);
    z-index: 0;
}

.page-hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    z-index: 1;
    display: block;
    margin-top: calc(var(--nav-height) * -1); /* Pull the image up */
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-text {
    position: absolute;
    top: calc(50% + clamp(2rem, 5vw, 4rem));
    transform: translateY(-50%);
    text-align: left;
    z-index: 2;
    left: 5rem;
    color: var(--off-white);
    padding-right: var(--spacing-md);
    font-family: var(--font-secondary);
    font-size: clamp(1.25rem, 4vw, 2.15rem);
    max-width: min(500px, 70%);
    font-weight: 300;
    font-style: italic;
    line-height: 1.3;
    letter-spacing: 0.02rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.site-header {
   position: relative;
   z-index: 1;
   background-color: var(--off-white);
   color: var(--plantissima-green);
   padding: var(--section-spacing) 0;
}

.site-title {
   font-size: clamp(1.8rem, 4vw, 3.2rem);
   line-height: 1.2;
   margin: 0;
   font-style: normal;
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
}

.site-header h2 {
   margin: 3rem 0 0.85rem;
   font-size: clamp(1.5rem, 3vw, 2.25rem);
   line-height: clamp(1.2, 3vw, 1.4);
}

.site-header p {
   font-size: clamp(1rem, 2vw, 1.5rem);
   margin: 0;
   padding-bottom: 2rem;
   line-height: 1.4;
   display: flex;
   flex-wrap: wrap;
   gap: 2rem;
}

.content-wrapper {
   width: 100%;
   margin: 0 auto;
   padding: 0 var(--content-padding);
}

.main-content {
    display:grid;
    grid-template-columns: 2fr 4fr 2fr;
}

.hero-location,
.hero-telephone,
.hero-email {
   font-size: clamp(1.05rem, 2vw, 1.1rem);
   display: inline-block;
   margin: 0;
}

.hero-location {
   position: relative;
   padding-left: 1.3rem;
}

.hero-location::before {
   content: '';
   position: absolute;
   left: 0.2rem;
   top: 50%;
   width: 0.7rem;
   height: 0.7rem;
   background: var(--plantissima-green);
   border-radius: 50% 50% 50% 0;
   transform: translateY(-50%) rotate(-45deg);
}

.hero-location::after {
   content: '';
   position: absolute;
   left: 0.4rem;
   top: 50%;
   width: 0.3rem;
   height: 0.3rem;
   background: white;
   border-radius: 50%;
   transform: translateY(-50%) rotate(45deg);
}

.button-container {
   display: flex;
   gap: 2.5rem;
   flex-wrap: wrap;
}

.preparer-visite,
.prendre-rdv,
.nous-contacter {
   display: inline-block;
   margin-top: 1.5rem;
}

button {
   border: 0;
   padding: var(--spacing-sm) var(--spacing-md);
   font-family: var(--font-tertiary);
   border: 1px solid var(--plantissima-green);
   background: transparent;
   border-radius: var(--border-radius);
   font-size: clamp(0.75rem, 1.5vw, 0.85rem);
   letter-spacing: 0.125rem;
   font-weight: 400;
   text-transform: uppercase;
   white-space: nowrap;
   transition: background-color 0.2s ease;
   cursor: pointer;
}

button:hover {
   border: 1px solid var(--brand-red);
   background: var(--brand-red);
   color: var(--off-white);
}

.page-title {
  position: relative;
  z-index: 1;
  background-color: var(--off-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.page-title h2,
h2.page-title,
.treatments .page-title h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.4;
  color: var(--brand-red) !important;
}

.treatments {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  margin: 0 auto;
  gap: var(--content-padding);
  padding: var(--content-padding) 0;
  max-width: var(--max-width);
}

.overlap-module {
    display:grid;
    grid-template-columns: 1fr 1fr 4fr 1fr 1fr;
}


.home-featured-grid p {
  font-size: 1.2rem;
  line-height: 1.5;
}

.home-featured-grid article {
  background: white;
  overflow: hidden;
}

.home-card {
    padding: var(--spacing-md);
    border: 1px solid var(--medium-brown);
    border-radius: var(--border-radius);
    background: var(--main-bg-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-card h2 {
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: 0.085rem;
  line-height: 1.3;
  padding: 0;
  margin: 0;
  margin-top: var(--spacing-md);
}

.home-card p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 1rem 0;
}

.text-block {
  font-size: 1.5rem;
  line-height: 1.25;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: var(--spacing-md);
}

.text-block h2 {
  margin-top: 0.75rem;
}

.text-block .category {
   display: block;
   top: -0.25rem;
   left: 0;
   position: absolute;
   padding: var(--spacing-xs) var(--spacing-sm);
   font-family: var(--font-tertiary);
   color: var(--plantissima-green);
   background: var(--brown-light);
   font-size: 0.65rem;
   font-weight: 400;
   letter-spacing: 0.125rem;
   text-transform: uppercase;
   border: 1px solid var(--medium-brown);
   border-radius: var(--border-radius);
}

.text-block button {
   margin-top: auto;
   align-self: flex-start;
   margin-bottom: 0;
}

.text-block p {
   font-size: clamp(1rem, 2vw, 1.2rem);
}

.content-block {
    border: 0px solid var(--plantissima-green);
}

.content-block p,
.content-block ul li {
   font-size: clamp(1rem, 2vw, 1.2rem);
}

.content-block h2 {
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.085rem;
  line-height: 1.3;
  padding: 0;
  margin: 0;
  margin-top: var(--spacing-lg);
}

/* Responsive typography for quotations and titles */
@media (max-width: 768px) {
  .content-block h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.06rem;
  }
  
  .pull-quote p,
  blockquote {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
  }
  
  .pull-quote p {
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  }
}

.content-block h3 {
  font-weight: 300;
  color: var(--dark-gray);
  font-family: var(--font-primary);
  font-style: normal;
  line-height: 2.75rem !important;
  letter-spacing: 0.1rem;
}

.content-block .category {
   display: block;
   position: absolute;
   padding: var(--spacing-xs) var(--spacing-xs);
   font-family: var(--font-tertiary);
   color: var(--plantissima-green);
   background: var(--brown-light);
   font-size: 0.65rem;
   font-weight: 400;
   letter-spacing: 0.125rem;
   text-transform: uppercase;
   border: 1px solid var(--medium-brown);
   border-radius: var(--border-radius);
}

.title-link a {
   font-size: clamp(1.6rem, 3vw, 2.2rem);
   position: relative;
   padding-left: clamp(1.25rem, 2vw, 2.15rem);
   line-height: 1.2;
   color: var(--plantissima-green);
   text-decoration: none;
   border-bottom: 0;
}

.title-link a::before {
   content: '';
   position: absolute;
   left: 0;
   top: 1.25rem;
   width: 0.40em;
   height: 0.40em;
   transform: rotate(-45deg);
   border-right: 4px solid var(--brand-red);
   border-bottom: 4px solid var(--brand-red);
   transition: transform 0.2s ease;
}

.title-link a:hover {
   text-decoration: none;
   color: var(--off-white);
   background: var(--brand-red);
}

.site-footer {
  background-color: var(--brand-red);
  color: white;
  text-align: center;
  padding: var(--spacing-lg) var(--content-padding);  /* Increased vertical padding */
  margin-top: var(--section-spacing);
  min-height: 8rem;  /* Added minimum height */
  display: flex;      /* Added to center content vertically */
  align-items: center;
  justify-content: center;
}

.site-footer p {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin: 0;
}

@media (max-width: 1024px) {
    .overlap-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    .main-content {
        padding-left: 0;
    }

    .left-sidebar {
        grid-column: 1;
    }

}

@media (max-width: 768px) {
  
  :root {
    --content-padding: 0.75rem;  /* Reduced from previous values */
  }

  .hero-text {
    max-width: 85%;
    left: var(--content-padding);
  }

  .home-featured-grid {
      grid-template-columns: 1fr;
  }

  .content-wrapper,
  .site-header,
  .page-title,
  .home-featured-grid {
    padding: var(--spacing-lg) var(--content-padding);
  }

  .site-title span {
    display: block;
    margin-bottom: 0.5rem;
  }

  .site-title {
    line-height: 1.4;
  }

  .site-header p {
    flex-direction: column;
    gap: 0.5rem;
  }
 
  .button-container {
    flex-direction: column;
    gap: 1rem;
  }

  .home-card {
    padding: var(--spacing-sm);
  }

  .text-block {
    padding-top: clamp(1rem, 2vw, 1.25rem);
  }

  .text-block .category {
    font-size: clamp(0.6rem, 1.2vw, 0.65rem);
    padding: clamp(0.2rem, 1vw, 0.25rem) clamp(0.3rem, 1.5vw, 0.5rem);
  }

  .content-wrapper {
    padding: 0 var(--content-padding);
  }

  .treatments {
    margin-top: var(--spacing-md);
  }

}


/* Media Queries */
@media (max-width: 1160px) {

    /* Show the hamburger menu */
    .menu-toggle {
        display: block; /* Visible on small screens */
    }

    /* Hide navigation links by default on small screens */
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--brand-red);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 2;
    }

    /* Show navigation links when menu is active */
    .main-nav.active ul {
        display: flex;
        margin-top: 0;
    }

    /* Adjust individual navigation links */
    .main-nav li {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav li a {
        padding: var(--spacing-md) 0;
    }


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

    .main-nav a {
        display: block;
        padding: 0 0;
        text-align: center;
    }

    .main-nav a:hover {
        background-color: white;
        color: var(--brand-red);
        transition: background-color 0.35s ease; /* Smooth hover effect */
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover::after {
        width: 0;
    }

    /* Optional: Adjust logo size for smaller screens */
    .main-nav .logo {
        width: 170px; /* Reduced width */
    }

}

.text-block {
  font-size: clamp(1.15rem, 2vw, 1.25rem);
  line-height: 1.35;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: var(--space-md);
}

.text-block p {
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  line-height: 1.45;
  margin: var(--space-sm) 0;
}

.text-block h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-top: var(--space-md);
}

.content-block {
  grid-column: 2/4;
  background: var(--main-bg-color);
  margin: 0 var(--spacing-md);

}

.content-block p {
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  line-height: 1.45;
  margin: var(--space-sm) 0;
}

.content-block h2,
.content-block h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.content-block h2 {
  line-height: 1.2;    
}


@media (max-width: 768px) {
  .text-block p,
  .content-block p {
    font-size: clamp(1.15rem, 3vw, 1.25rem);
    line-height: 1.45;
  }

  .text-block h2,
  .content-block h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.1rem);
  }
  
  .content-block h3 {
    font-size: clamp(1.5rem, 3vw, 1.7rem);
  }
    .content-block h2 {
      margin-top: 2.5rem;
    }

}

@view-transition {
  navigation: auto;
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 3s; /* Adjust this value to control the speed */
  }
}
