/* ==========================================================================
   DESIGN TOKENS & RESET (base.css style)
   ========================================================================== */
:root {
  /* Brand palette */
  --color-terracotta-light: #BD8C69;
  --color-terracotta-dark:  #733803;
  --color-text:              #3C454A;
  --color-bg-cream-1:        #E2DEC7;
  --color-bg-cream-2:        #EDE1D3;
  --color-bg-white:          #FAF8F4;
  --color-secondary:         #363d36;
  --color-background-hero:   #60564e;
  --color-nav:               #6B5347; /* warm skin-toned mocha for the menu bars */
  --color-rdv-blue:          #1A73C2;
  --color-overlay:           rgba(28, 20, 14, 0.45);
  --color-error:             #C0392B;
  --color-success:           #2D7A3E;

  /* Neutral helpers (centralised to avoid repeated literals) */
  --color-white:             #fff;
  --color-prestations-bg:    #d6c5b1;
  --color-ba-before:         #a17e65;
  --color-grey-border:       #ccc;
  --color-grey-light:        #eee;
  --color-grey-muted:        #888;
  --color-grey-text:         #666;

  /* Elevation */
  --shadow-xs: 0 1px 6px rgba(0,0,0,0.09);
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.08);

  /* Radii */
  --radius:      12px;
  --radius-sm:   8px;
  --radius-pill: 50%;

  --navbar-height:           64px;
  --navbar-height-mobile:    64px;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', system-ui, -apple-system, sans-serif;

  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Accessibility - Skip link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-terracotta-dark);
  color: var(--color-white);
  padding: 10px 20px;
  z-index: 1000;
  transition: top 0.2s;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}
.skip-to-content:focus {
  top: 10px;
}

/* Focus styling */
:focus-visible {
  outline: 2px solid var(--color-terracotta-dark);
  outline-offset: 2px;
}

/* Standard responsive margins */
section[id] {
  scroll-margin-top: var(--navbar-height);
}
@media (max-width: 1023px) {
  section[id] {
    scroll-margin-top: var(--navbar-height-mobile);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

input, textarea, select {
  font-size: 16px; /* Prevents iOS zoom */
  font-family: var(--font-body);
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  min-height: 44px;
  font-size: 15px;
}

.btn-primary {
  background-color: var(--color-terracotta-dark);
  color: var(--color-white);
}
.btn-primary:hover, .btn-primary:active {
  background-color: var(--color-terracotta-light);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline-white:hover, .btn-outline-white:active {
  background-color: var(--color-terracotta-light);
  border-color: var(--color-terracotta-light);
}

.btn-blue {
  background-color: var(--color-rdv-blue);
  color: var(--color-white) !important;
}
.btn-blue:hover {
  opacity: 0.95;
}

/* Button with embedded brand-logo chip (logo centred above the text) */
.btn-with-logo {
  flex-direction: column;
  gap: 0.45rem;
}
.btn-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background-color: var(--color-white);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.btn-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.4); /* zoom past the logo's whitespace margins */
}

/* Hero CTA — same button, scaled up 25% (text, logo & padding all enlarge) */
.btn-hero-cta {
  padding: 0.9375rem 1.875rem; /* 0.75 / 1.5 × 1.25 */
  min-height: 55px;            /* 44 × 1.25 */
  font-size: 22.5px;           /* 18.75 × 1.2 — hero text +20% */
  margin-bottom: 2rem;         /* space below the CTA, above the quote */
}
.btn-hero-cta .btn-logo {
  width: 55px;                 /* 44 × 1.25 */
  height: 55px;
}

/* Headings styling */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-terracotta-dark);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   DISCLAIMER & STICKY NAVBAR
   ========================================================================== */
.disclaimer-bar {
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: clamp(11px, 1.5vw, 13px);
  text-align: center;
  position: relative;
  z-index: 110;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px 0 20px;
  transition: margin-top 0.3s;
}
.disclaimer-bar.hidden {
  display: none;
}
.disclaimer-close {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navbar Setup */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-nav);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-normal);
}
.header-wrapper.scrolled {
  box-shadow: 0 5px 18px rgba(0,0,0,0.16);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Desktop Navigation (2-rows) */
.nav-desktop-upper {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  background-color: var(--color-nav);
  padding: 0 0.5rem;
}
.logo-link svg {
  height: 48px;
  width: auto;
  display: block;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.btn-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  /* Instagram brand gradient, matching the footer social icon */
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--color-white);
  transition: var(--transition-normal);
}
.btn-instagram svg {
  width: 24px;
  height: 24px;
}
.btn-instagram:hover {
  opacity: 0.9;
}
.lang-switcher {
  display: flex;
  gap: 0.5rem;
}
.btn-lang {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--color-grey-border);
  background: var(--color-bg-white);
  cursor: pointer;
  font-size: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}
.btn-lang::before {
  content: '';
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.btn-lang[data-lang="fr"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%203%202'%3E%3Crect%20width='3'%20height='2'%20fill='%23fff'/%3E%3Crect%20width='1'%20height='2'%20fill='%23002654'/%3E%3Crect%20x='2'%20width='1'%20height='2'%20fill='%23ce1126'/%3E%3C/svg%3E");
}
.btn-lang[data-lang="en"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2060%2030'%3E%3Crect%20width='60'%20height='30'%20fill='%23012169'/%3E%3Cpath%20d='M0,0%20L60,30%20M60,0%20L0,30'%20stroke='%23fff'%20stroke-width='6'/%3E%3Cpath%20d='M0,0%20L60,30%20M60,0%20L0,30'%20stroke='%23C8102E'%20stroke-width='4'/%3E%3Crect%20x='25'%20width='10'%20height='30'%20fill='%23fff'/%3E%3Crect%20y='10'%20width='60'%20height='10'%20fill='%23fff'/%3E%3Crect%20x='27'%20width='6'%20height='30'%20fill='%23C8102E'/%3E%3Crect%20y='12'%20width='60'%20height='6'%20fill='%23C8102E'/%3E%3C/svg%3E");
}
.btn-lang[data-lang="es"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%203%202'%3E%3Crect%20width='3'%20height='2'%20fill='%23c60b1e'/%3E%3Crect%20y='0.5'%20width='3'%20height='1'%20fill='%23ffc400'/%3E%3C/svg%3E");
}
.btn-lang:hover {
  border-color: var(--color-terracotta-dark);
}
.btn-lang.active {
  border-color: #000;
  box-shadow: 0 0 0 2px #000;
}
.btn-lang:not(.active) {
  opacity: 0.65;
}
.btn-lang:hover {
  opacity: 1;
}

.nav-desktop-menu {
  display: flex;
  align-items: center;
}
.nav-menu-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-menu-links a {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition-normal);
  position: relative;
  padding: 10px 0;
}
.nav-menu-links a:hover,
.nav-menu-links a.active {
  color: var(--color-terracotta-dark);
}
.nav-menu-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-terracotta-dark);
  transition: var(--transition-normal);
}
.nav-menu-links a.active::after,
.nav-menu-links a:hover::after {
  width: 100%;
}

/* Mobile Header Layout */
.nav-mobile-header {
  display: none;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background-color: var(--color-nav);
  padding: 0 0.75rem;
}
/* Logo may shrink to fit; the RDV + burger group must never be clipped */
.logo-mobile {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}
.nav-mobile-header > div {
  flex-shrink: 0;
}
.hamburger-btn {
  flex-shrink: 0;
}
.logo-mobile svg {
  height: 36px;
  width: auto;
  max-width: 100%;
  display: block;
}
.hamburger-btn {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: var(--transition-normal);
}
/* Hamburger Active Animation */
.hamburger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Dropdown Menu */
.mobile-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-in-out;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  z-index: 99;
}
.mobile-dropdown.open {
  max-height: 100vh;
}
.mobile-dropdown-links {
  display: flex;
  flex-direction: column;
  list-style: none;
}
.mobile-dropdown-links a {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-dropdown-links a.active {
  color: var(--color-terracotta-dark);
  background-color: var(--color-bg-cream-2);
}
.mobile-dropdown-extra {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.mobile-dropdown-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
  display: none;
}
.mobile-dropdown-backdrop.show {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .nav-desktop-upper {
    display: none;
  }
  .nav-mobile-header {
    display: flex;
  }
}

/* ==========================================================================
   SECTION 1 — ACCUEIL (#accueil)
   ========================================================================== */
.hero-section {
  min-height: 100svh;
  position: relative;
  background: url('../assets/hero_background_original.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 12svh;
}

/* Slight overlay to darken the face / upper area of the hero photo */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Placeholder gradient simulating photo-accueil before lazy loading image */
.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-image-bg.loaded {
  opacity: 1;
}

.hero-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-white);
  padding: 0 1.5rem;
  z-index: 2;
}

.hero-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.38rem, 3vw, 2.16rem); /* +20% hero text */
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* ==========================================================================
   SECTION 2 — PRESTATIONS (#prestations)
   ========================================================================== */
.prestations-section {
  background-color: var(--color-prestations-bg);
  /* --title-gap = the (equal) space above and below "Nos Prestations".
     It's half of what it used to be: full top spacing was
     section padding-top + container padding-top. */
  --title-gap: calc((clamp(3rem, 8vw, 6rem) + clamp(1rem, 4vw, 2rem)) / 2);
  padding: clamp(3rem, 8vw, 6rem) 0;
  /* Space above title = this padding-top + container padding-top = --title-gap */
  padding-top: calc(var(--title-gap) - clamp(1rem, 4vw, 2rem));
}
.prestations-section .section-title {
  margin-bottom: var(--title-gap);
}
.prestations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .prestations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .prestations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.prestation-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border-top: 3px solid transparent;
  transition: var(--transition-normal);
}

/* Hover Desktop Only */
@media (hover: hover) {
  .prestation-card:hover {
    transform: translateY(-4px);
    border-top-color: var(--color-terracotta-light);
    box-shadow: var(--shadow-lg);
  }
}
.prestation-card:active {
  background-color: var(--color-bg-cream-2);
}

.card-image-wrapper {
  height: 200px;
  position: relative;
  overflow: hidden;
  background-color: var(--color-grey-light);
}
.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.card-icon-badge {
  display: none;
  position: absolute;
  bottom: -24px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: var(--color-terracotta-dark);
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  color: var(--color-white);
}
.card-icon-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.card-content {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.card-badge {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-terracotta-light);
  margin-bottom: 1rem;
  display: block;
  font-weight: 700;
}

.card-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-weight: 700;
  color: var(--color-terracotta-dark);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 700;
  color: var(--color-terracotta-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  transition: var(--transition-normal);
}
.card-link:hover {
  color: var(--color-terracotta-light);
}
.card-link--soon {
  color: var(--color-grey-text);
  font-style: italic;
  cursor: default;
}

/* SKELETON SHIMMER */
@keyframes shimmer {
  from { background-position: -400px 0; }
  to { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--color-grey-light) 25%, #f5f5f5 50%, var(--color-grey-light) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* ==========================================================================
   SECTION 3 — AVANT / APRÈS (#avant-apres)
   ========================================================================== */
.before-after-section {
  background-color: var(--color-bg-white);
  padding: clamp(3rem, 8vw, 6rem) 0;
}

/* Slider styling inside Carousel */
.carousel-container {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
}

.carousel-track-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  padding: 0 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 50%;
  }
}
@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 33.333%;
  }
}

/* The Slider Unit */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Top image clip-pathed */
.ba-image-top {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

/* Labels */
.ba-label {
  position: absolute;
  bottom: 12px;
  background: rgba(0,0,0,0.6);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 3;
}
.ba-label-before {
  left: 12px;
}
.ba-label-after {
  right: 12px;
}

.treatment-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-terracotta-dark);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  z-index: 3;
}

/* Custom range styled handler */
.ba-range {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  margin: 0;
  top: 0;
  left: 0;
  z-index: 5;
  cursor: col-resize;
}
/* Webkit */
.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 3px solid var(--color-terracotta-dark);
  cursor: col-resize;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
/* Firefox */
.ba-range::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 3px solid var(--color-terracotta-dark);
  cursor: col-resize;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Visual Divider line inside slider */
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--color-white);
  z-index: 4;
  pointer-events: none;
  transform: translateX(-50%);
}

.slide-feedback {
  margin-top: 1rem;
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  max-width: 90%;
}

/* Carousel Nav Arrows */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-terracotta-light);
  background-color: var(--color-bg-white);
  color: var(--color-terracotta-dark);
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}
.carousel-btn:hover {
  background-color: var(--color-terracotta-light);
  color: var(--color-white);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background-color: var(--color-grey-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-normal);
}
.carousel-dot.active {
  background-color: var(--color-terracotta-dark);
  transform: scale(1.2);
}

.rgpd-consent-notice {
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-grey-text);
  margin-top: 2rem;
}

/* ==========================================================================
   SECTION 4 — CONTACT (#contact)
   ========================================================================== */
.contact-section {
  background-color: var(--color-bg-cream-2);
  background-image: url('../assets/photo-cab.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0;
}


.contact-section > .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Left - Map */
.map-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.map-frame-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-bg-cream-1);
  position: relative;
  box-shadow: var(--shadow-sm);
  min-height: 300px;
}
@media (min-width: 1024px) {
  .map-frame-wrapper {
    min-height: 400px;
  }
}

.map-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 2;
  background-color: var(--color-bg-cream-1);
}
.map-placeholder p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.map-iframe.active {
  opacity: 1;
  z-index: 3;
}

.contact-infos-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 1.05rem;
  background-color: var(--color-bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.contact-infos-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.contact-infos-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
}
.contact-infos-list a:hover {
  color: var(--color-terracotta-dark);
  text-decoration: underline;
}

.contact-section .section-title {
  background-color: var(--color-bg-white);
  display: table;
  margin-left: auto;
  margin-right: auto;
  padding: 0.6rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Right - Form */
.contact-form {
  background-color: var(--color-bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-grey-border);
  outline: none;
  transition: var(--transition-normal);
}
.form-input:focus {
  border-color: var(--color-terracotta-dark);
}
.form-input.invalid {
  border-color: var(--color-error);
}

/* Custom Checkbox Row */
.checkbox-legend {
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
  font-size: 0.95rem;
}
.services-checkboxes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 600px) {
  .services-checkboxes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px; /* Accessible tap target */
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* RGPD Box styling */
.rgpd-checkbox-group {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.field-error-msg {
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}
.field-error-msg.visible {
  display: block;
}

.message-char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: var(--color-grey-muted);
  margin-top: 0.25rem;
}

.form-submit-row {
  margin-top: 1.5rem;
}
.btn-submit {
  width: 100%;
  font-size: 1.1rem;
}

/* Success Card Template styling */
.success-feedback-card {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.success-feedback-card .check-icon {
  font-size: 4rem;
  color: var(--color-success);
  margin-bottom: 1.5rem;
}
.success-feedback-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Error Alert Banner */
.form-error-banner {
  display: none;
  background-color: #FCE4D6;
  border: 1px solid var(--color-error);
  color: var(--color-error);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   SECTION 5 — ÉQUIPE (#equipe)
   ========================================================================== */
.team-section {
  background-color: var(--color-bg-white);
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-photo-container {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-grey-light);
}
.team-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info h3 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.team-subtitle {
  font-style: italic;
  color: var(--color-terracotta-light);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.team-bio {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.team-quote {
  border-left: 3px solid var(--color-terracotta-light);
  padding-left: 1rem;
  font-style: italic;
  color: var(--color-terracotta-dark);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: #000;
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-row-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-row-1 {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo img {
  height: 48px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background-color: rgba(255,255,255,0.1);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition-normal);
  text-decoration: none;
}
.social-btn svg {
  width: 24px;
  height: 24px;
}
/* Instagram brand gradient shown at all times (not just on hover) */
.social-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
/* Doctolib brand blue circle shown at all times */
.social-doctolib {
  background-color: #0596DE;
}
.social-instagram:hover,
.social-doctolib:hover {
  opacity: 0.9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  color: var(--color-bg-cream-2);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-normal);
}
.footer-links a:hover {
  color: var(--color-white);
  padding-left: 5px;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255,255,255,0.15);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   GLOBAL FEATURES (COOKIE BANNER, BACK TO TOP, MOBILE CTA)
   ========================================================================== */
/* Mobile sticky bottom bar */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background-color: var(--color-bg-white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
}
.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  gap: 8px;
}
.mobile-cta-btn.call-btn {
  color: var(--color-text);
  border-right: 1px solid var(--color-grey-light);
}
.mobile-cta-btn.rdv-btn {
  background-color: var(--color-rdv-blue);
  color: var(--color-white);
}

@media (max-width: 767px) {
  .mobile-sticky-cta {
    display: grid;
  }
  body {
    padding-bottom: 56px;
  }
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 5rem; /* Above mobile sticky CTA */
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background-color: var(--color-terracotta-dark);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}
@media (min-width: 768px) {
  .scroll-to-top {
    bottom: 2rem;
  }
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 200;
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .cookie-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cookie-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  gap: 1rem;
}
@media (max-width: 767px) {
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-actions .btn {
    width: 100%;
  }
}

/* Interactive Subpage Modal fallback (kept for any legacy data-subpage triggers) */
.subpage-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.subpage-modal-content {
  background-color: var(--color-bg-white);
  width: 100%;
  max-width: 800px;
  max-height: 90svh;
  border-radius: var(--radius);
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}
.subpage-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--color-terracotta-dark);
  cursor: pointer;
  border: none;
  background: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   PRESTATION & LEGAL SUBPAGES (pages/*.html)
   ========================================================================== */
.subpage-hero {
  position: relative;
  background: linear-gradient(var(--color-overlay), var(--color-overlay)), var(--color-background-hero);
  color: var(--color-white);
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
  text-align: center;
}
.subpage-hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.subpage-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.subpage-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}
.subpage-banner-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-bg-cream-2);
}
.machine-badge {
  display: inline-block;
  background-color: var(--color-terracotta-dark);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 999px;
}
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.5rem;
}
.breadcrumb a {
  color: var(--color-bg-cream-2);
  text-decoration: none;
  font-weight: 700;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.subpage-main {
  background-color: var(--color-bg-white);
}
.subpage-section {
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.subpage-section:last-of-type {
  border-bottom: none;
}
.subpage-section .container {
  max-width: 820px;
}
.subpage-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 1.25rem;
}
.subpage-section p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Figures / photos within subpage sections */
.subpage-figure {
  margin: 1.75rem 0 0.5rem;
}
.subpage-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.subpage-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-text-muted, #6b6b6b);
  text-align: center;
}
.subpage-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0 0.5rem;
}
.subpage-figure-grid figure {
  margin: 0;
}
@media (max-width: 640px) {
  .subpage-figure-grid {
    grid-template-columns: 1fr;
  }
}

/* Generic bullet / numbered lists */
.bullet-list,
.contraindications-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bullet-list li,
.contraindications-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1.05rem;
}
.bullet-list li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}
.contraindications-list li::before {
  content: '⚠';
  color: var(--color-error);
  flex-shrink: 0;
}

.steps-list {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.05rem;
}
.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.steps-list li::before {
  /* Increment on the pseudo-element, not the <li>: at >=768px the <li> uses
     display:contents, which makes browsers ignore counter-increment on it,
     leaving every number stuck at 0. */
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background-color: var(--color-terracotta-dark);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}
/* Align the em-dashes/descriptions into a shared column on larger screens.
   Each <li> becomes display:contents so the number, the <strong> title and the
   .step-desc flow directly into the parent grid — the "auto" title column
   sizes to the widest title across all rows, so every dash lines up. */
@media (min-width: 768px) {
  .steps-list {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: start;
    column-gap: 1rem;
    row-gap: 1rem;
  }
  .steps-list li {
    display: contents;
  }
  .steps-list li strong {
    white-space: nowrap;
  }
  .steps-list li .step-desc {
    min-width: 0;
  }
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.pricing-table thead th {
  background-color: var(--color-terracotta-dark);
  color: var(--color-white);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.pricing-table tbody tr:nth-child(even) {
  background-color: var(--color-bg-cream-2);
}
.pricing-table td:last-child {
  font-weight: 700;
  color: var(--color-terracotta-dark);
  white-space: nowrap;
}
.subpage-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--color-terracotta-dark);
  margin: 2.25rem 0 1rem;
}
.subpage-subtitle:first-of-type {
  margin-top: 0.5rem;
}
.pricing-group-title {
  font-size: 1.15rem;
  color: var(--color-terracotta-dark);
  margin: 2rem 0 0.85rem;
}
.pricing-group-title:first-of-type {
  margin-top: 0.5rem;
}

/* CTA block */
.cta-block {
  background-color: var(--color-bg-cream-2);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.cta-block h2 {
  margin-bottom: 1.5rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.subpage-disclaimer-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-grey-text);
  margin-top: 1.5rem;
}
