/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #2d6a4f;
  --green-d:     #1b4332;
  --green-l:     #52b788;
  --green-pale:  #d8f3dc;
  --cream:       #f8f4ee;
  --sand:        #ede8df;
  --text:        #1c1c1c;
  --muted:       #6b7280;
  --border:      #e2ddd6;
  --white:       #ffffff;
  --radius:      12px;
  --shadow:      0 4px 20px rgba(0,0,0,.08);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--green-d);
}
.logo-leaf { font-size: 1.4rem; }
.logo-text strong { color: var(--green); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.site-nav a:hover { color: var(--green); }

/* Téléphone dans le header */
.header-tel {
  color: var(--green) !important;
  font-weight: 600 !important;
  font-size: .88rem !important;
  white-space: nowrap;
}
.header-tel:hover { color: var(--green-d) !important; }

.btn-nav {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 500 !important;
  transition: background .2s !important;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--green-d) !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 28px 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ============================================================
   HERO (Cadre à droite + Remonté)
   ============================================================ */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  min-height: calc(100vh - 68px);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero > .container {
  width: 100%;
  padding-top: 30px;    /* Reduit le padding pour remonter les élements */
  padding-bottom: 30px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
}
.s1 {
  width: 500px; height: 500px;
  background: var(--green-pale);
  top: -100px; right: -80px;
}
.s2 {
  width: 300px; height: 300px;
  background: #b7e4c7;
  bottom: -60px; left: 10%;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: -20px;    /* Décale l'ensemble vers le haut */
}

/* Le cadre blanc semi-transparent */
.hero-content {
  grid-column: 2;       /* Place à droite */
  background: rgba(255, 255, 255, 0.94);
  padding: 28px 28px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-size: .8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: .02em;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--green-d);
  margin-bottom: 12px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--green);
}

.hero-desc {
  font-size: .95rem;
  color: #374151;
  max-width: 480px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--green-d); transform: translateY(-2px); }
.btn-primary:disabled { background: #9ca3af; cursor: not-allowed; transform: none; }

.btn-text {
  font-size: .9rem;
  color: var(--green);
  font-weight: 600;
  transition: opacity .2s;
}
.btn-text:hover { opacity: .75; }

.hero-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-badges span {
  font-size: .78rem;
  color: #4b5563;
}

/* Cache les anciennes cartes flottantes pour dégager le bas de l'image */
.hero-deco {
  display: none !important;
}

.big-leaf {
  position: absolute;
  font-size: 8rem;
  opacity: .12;
  bottom: -20px;
  right: -20px;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   SECTION HEADER COMMUN
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-tag.light {
  background: rgba(255,255,255,.2);
  color: var(--white);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--green-d);
  margin-bottom: 14px;
}
.section-header p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: .95rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 96px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .25s, transform .25s;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-card--accent {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.service-card--accent h3 { color: var(--white); }
.service-card--accent p  { color: rgba(255,255,255,.8); }

.si { font-size: 2rem; margin-bottom: 14px; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-d);
  margin-bottom: 8px;
}
.service-card p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   HORAIRES
   ============================================================ */
.horaires {
  background: var(--green-d);
  padding: 96px 0;
  color: var(--white);
}

.horaires-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.horaires-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin: 12px 0 16px;
}
.horaires-content p {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  line-height: 1.7;
}

/* Bloc contact dans horaires */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
}
.contact-tel {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white) !important;
  letter-spacing: .02em;
  transition: opacity .2s;
}
.contact-tel:hover { opacity: .8; }
.contact-hint {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

.horaires-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.h-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  transition: background .2s;
}
.h-row:hover { background: rgba(255,255,255,.1); }
.h-closed { opacity: .45; }

.jour {
  width: 90px;
  font-weight: 500;
  font-size: .9rem;
  color: var(--white);
  flex-shrink: 0;
}
.heure {
  flex: 1;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}
.muted { color: rgba(255,255,255,.3); }

.badge-open {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(82,183,136,.25);
  color: #74c69d;
  letter-spacing: .03em;
}
.badge-closed {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.4);
}

/* ============================================================
   SECTION RDV
   ============================================================ */
.rdv-section {
  padding: 96px 0;
  background: var(--sand);
}

.rdv-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px;
  box-shadow: var(--shadow);
}

.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 16px;
  margin-top: 28px;
  color: var(--text);
}
.step-label:first-child { margin-top: 0; }

.step-num {
  width: 28px;
  height: 28px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.rdv-date-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  cursor: pointer;
}
.rdv-date-input:focus { outline: none; border-color: var(--green); }

#slots-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  min-height: 44px;
}

.slot-btn {
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .2s;
}
.slot-btn:hover { border-color: var(--green); color: var(--green); }
.slot-btn.selected { background: var(--green); border-color: var(--green); color: var(--white); font-weight: 600; }

.slots-empty, .slots-loading {
  font-size: .875rem;
  color: var(--muted);
  padding: 10px 0;
}

.rdv-recap {
  background: var(--green-pale);
  border: 1px solid #95d5b2;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .875rem;
  color: var(--green-d);
  margin-bottom: 20px;
  font-weight: 500;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
}
.form-group input {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--green); }
.form-group input.invalid { border-color: #dc2626; }

.field-error { font-size: .78rem; color: #dc2626; min-height: 16px; }

.btn-submit { width: 100%; padding: 15px; font-size: .95rem; margin-top: 8px; }

.btn-ghost-sm {
  display: inline-block;
  background: none;
  border: none;
  color: var(--muted);
  font-size: .85rem;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 10px 0;
  transition: color .2s;
}
.btn-ghost-sm:hover { color: var(--text); }

.rdv-feedback {
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.6;
}
.rdv-feedback.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.rdv-feedback.error   { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.feedback-icon  { font-size: 2.2rem; margin-bottom: 10px; }
.feedback-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.feedback-msg   { font-size: .9rem; opacity: .85; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-d);
  color: rgba(255,255,255,.6);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 12px; color: var(--white); }
.footer-brand p { font-size: .85rem; line-height: 1.8; margin-bottom: 12px; }

.footer-tel {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white) !important;
  transition: opacity .2s;
}
.footer-tel:hover { opacity: .75; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 16px 28px;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .header-tel { display: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; margin-top: 0; }
  .hero-content { grid-column: 1; padding: 22px 18px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .horaires-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { align-items: flex-start; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .rdv-wrapper { padding: 28px 20px; }
  .hero { padding: 72px 0 60px; }
  .services, .horaires, .rdv-section { padding: 64px 0; }
}

/* ============================================================
   PRESTATIONS DROPDOWN
   ============================================================ */
.prestations-dropdown {
  position: relative;
}

.prestations-toggle {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color .2s;
  text-align: left;
}
.prestations-toggle:focus { outline: none; border-color: var(--green); }
.prestations-toggle.has-value { color: var(--text); }
.prestations-toggle.open { border-color: var(--green); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.prestations-arrow {
  font-size: .8rem;
  transition: transform .2s;
  flex-shrink: 0;
}
.prestations-toggle.open .prestations-arrow { transform: rotate(180deg); }

.prestations-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--green);
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  z-index: 10;
  box-shadow: var(--shadow);
  max-height: 280px;
  overflow-y: auto;
}
.prestations-list.open {
  display: block; 
}

.prestation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid var(--border);
}
.prestation-item:last-child {
  border-bottom: none;
}

.prestation-item:hover {
  background: var(--green-pale);
}

.prestation-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}