html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #fffaf0;
  overflow-x: hidden;
  max-width: 100%;
}

/* Scroll-reveal: fades/slides an element in the first time it enters view */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.preview-container .reveal:nth-child(2) { transition-delay: 0.08s; }

.service-container .reveal:nth-child(2) { transition-delay: 0.06s; }
.service-container .reveal:nth-child(3) { transition-delay: 0.12s; }
.service-container .reveal:nth-child(4) { transition-delay: 0.18s; }
.service-container .reveal:nth-child(5) { transition-delay: 0.24s; }
.service-container .reveal:nth-child(6) { transition-delay: 0.3s; }

.contact-info .map-container.reveal,
.contact-info .photo-frame.reveal {
  transition-delay: 0.1s;
}

/* Fade only (no translateY) so the reveal doesn't fight this element's
   position: sticky behavior. */
.today-card.reveal {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Closure / announcement banner */
.info-banner {
  max-width: 900px;
  margin: 32px auto;
  padding: 20px 28px;
  background: #e3f5f2;
  border-left: 4px solid #0f766e;
  border-radius: 10px;
}

.info-banner-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: #0f766e;
}

.info-banner-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #221f1a;
}

/* Rounded panel that overlaps the bottom of a .page-hero band, so the
   dark photo band and the light content below it read as one continuous
   scroll instead of a hard page-to-page seam. */
.section-panel {
  position: relative;
  z-index: 1;
  background: #fffaf0;
  margin-top: -28px;
  border-radius: 28px 28px 0 0;
}

.services.section-panel {
  border-radius: 0;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: 8px;
  margin: 0;
  padding: 10px 16px;
  background: #1c1a17;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
}

.nav-left {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.nav-left img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Logo */
.logo {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* Navigation menu */
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-right: 23px;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-menu ul li {
  margin: 0;
}

.nav-menu ul li a {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 6px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-menu ul li a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-menu ul li a.active {
  color: #ffffff;
}

.nav-menu ul li a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: #5fc9c0;
}

@media (max-width: 600px) {
  .nav-menu ul li a {
    font-size: 11px;
    padding: 6px 8px;
  }
}

/* Phone button */
.btn-call {
  display: inline-block;
  background: #5fc9c0;
  color: #221f1a;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-call:hover {
  background: #7ad9d1;
  transform: translateY(-2px);
}

/* Compact page hero (Services, Horaires, Contact) */
.page-hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  scroll-margin-top: 84px;
  background: #1c1a17;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 26, 23, 0.08) 0%, rgba(28, 26, 23, 0.72) 100%);
}

.page-hero-content {
  position: relative;
  padding: 32px 40px 56px;
  padding-left: clamp(40px, 8vw, 160px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5fc9c0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.page-hero-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.page-hero-title {
  margin: 0;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 700;
}

@media (max-width: 900px) {
  .page-hero {
    min-height: 200px;
  }
}

/* ===== Accueil ===== */
.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1c1a17;
  margin-bottom: 1rem;
  scroll-margin-top: 84px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 26, 23, 0.08) 0%, rgba(28, 26, 23, 0.72) 100%);
}

.hero-content {
  position: relative;
  padding: 56px 40px;
  padding-left: clamp(40px, 8vw, 160px);
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title {
  margin: 0;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 700;
}

.hero-text {
  margin: 0;
  max-width: 48ch;
  color: #e9e5dc;
  font-size: 17px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.hero-buttons .btn-call {
  padding: 13px 26px;
  font-size: 15px;
  text-transform: none;
}

.btn-outline-light {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding: 40px 24px;
  }
}

.lead-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  max-width: 1100px;
  margin: 50px auto;
  padding: 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.lead-split-media {
  flex: 1.3 1 300px;
}

.lead-split-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lead-split-content {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-split-content .kicker {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f766e;
}

.lead-split-content .kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.lead-split-content h2 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  color: #221f1a;
  margin: 0;
}

.lead-split-content p {
  font-size: 16px;
  line-height: 1.65;
  color: #5b5648;
  margin: 0;
}

@media (max-width: 640px) {
  .lead-split {
    margin: 32px auto;
    padding: 18px;
    border-radius: 16px;
  }

  .lead-split-media img {
    height: 220px;
  }
}

/* Home page preview cards */
.home-preview {
  padding: 1rem 1rem 3rem;
}

.preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.preview-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.preview-card h3 {
  color: #221f1a;
  font-size: 1.4rem;
  margin: 0 0 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.preview-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: #5fc9c0;
}

.preview-card p {
  color: #5b5648;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.preview-link {
  margin-top: auto;
  color: #0f766e;
  font-weight: 500;
  text-decoration: none;
}

.preview-link:hover {
  text-decoration: underline;
}

/* ===== Services ===== */
.services {
  padding: 2.5rem 0;
  background-color: #fffaf0;
}

.services-intro {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: left;
  font-size: 19px;
  line-height: 1.6;
  color: #5b5648;
}

.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.service-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-content {
  padding: 2rem;
  flex: 1;
}

.card-title {
  color: #221f1a;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 125px;
  height: 2px;
  background-color: #5fc9c0;
}

.highlight {
  color: #0f766e;
  font-weight: 500;
  line-height: 1.6;
  margin: 1rem 0;
}

.card-text {
  color: #5b5648;
  line-height: 1.6;
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  .service-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .service-card {
    width: 100%;
  }
}

/* ===== Horaires ===== */
.page-intro-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 8px;
}

.page-intro {
  font-size: 19px;
  line-height: 1.6;
  color: #5b5648;
  max-width: 60ch;
  margin: 0 0 8px;
}

.page-note {
  font-size: 17px;
  font-style: italic;
  color: #8a8179;
  margin: 0;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 64px;
  align-items: start;
}

.schedule-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  align-items: center;
  padding: 14px 22px;
}

.schedule-head {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8179;
  border-bottom: 1px solid #eee;
}

.schedule-row {
  border-bottom: 1px solid #f0f0f0;
  font-size: 19px;
  color: #221f1a;
}

.schedule-row:last-of-type {
  border-bottom: none;
}

.schedule-row.today {
  background: #f5faf9;
  box-shadow: inset 3px 0 0 #0f766e;
  font-weight: 700;
}

.status-pill {
  justify-self: start;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.status-open {
  background: #e3f5f2;
  color: #0f766e;
}

.status-closed {
  background: #f2efe8;
  color: #8a8179;
}

.schedule-cta {
  text-align: center;
  padding: 18px 22px;
  border-top: 1px solid #eee;
  font-size: 17px;
}

.schedule-cta a {
  color: #0f766e;
  text-decoration: none;
}

.schedule-cta a:hover {
  text-decoration: underline;
}

.today-card {
  position: sticky;
  top: 96px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #8a8179;
}

.today-card.is-open {
  border-top-color: #0f766e;
}

.today-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8179;
  margin-bottom: 10px;
}

.today-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #221f1a;
  margin-bottom: 22px;
}

.today-card.is-open .today-value {
  color: #0f766e;
}

.today-card .btn-call {
  padding: 12px 26px;
  font-size: 14px;
}

.today-card .btn-call[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .schedule-head,
  .schedule-row {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    padding: 12px 16px;
    font-size: 17px;
  }

  .today-card {
    position: static;
  }
}

/* ===== Contact ===== */
.contact-info {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.contact-info > p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 19px;
  color: #5b5648;
  line-height: 1.6;
  text-align: left;
  max-width: 60ch;
  margin-top: 0;
}

.contact-info .container {
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  text-align: left;
  padding-top: 40px;
  margin-top: 1.5rem;
}

.contact-info .container > * {
  flex: 1;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item + .info-item {
  padding-top: 1.25rem;
  border-top: 1px solid #ece4d6;
}

.info-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8179;
  margin-bottom: 6px;
}

.info-value {
  font-size: 17px;
  font-weight: 600;
  color: #221f1a;
}

.info-phone,
.info-email {
  font-weight: 700;
  color: #0f766e;
  text-decoration: none;
}

.info-phone {
  font-size: 22px;
}

.info-email {
  font-size: 16px;
  word-break: break-all;
}

.info-phone:hover,
.info-email:hover {
  text-decoration: underline;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.photo-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.photo-frame img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .contact-info .container {
    flex-direction: column;
  }
}

/* Footer band */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  background: #1c1a17;
  color: #e9e5dc;
  padding: 48px 32px 32px;
  margin-top: 48px;
  font-size: 14px;
}

.site-footer > div {
  flex: 1 1 220px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.footer-muted {
  color: #a39c8e;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5fc9c0;
  margin-bottom: 6px;
}

.footer-link,
.footer-social {
  color: #e9e5dc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-social:hover {
  color: #5fc9c0;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.footer-social .social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .site-footer {
    text-align: center;
  }

  .site-footer > div {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }
}
