/* ===== Roy'anim'O — style principal ===== */
:root {
  --cream: #faf6ef;
  --white: #ffffff;
  --sand: #f0e8d8;
  --brown: #5b4636;
  --brown-dark: #3e2f24;
  --terracotta: #c26b3f;
  --terracotta-dark: #a1542d;
  --green: #6b7d5c;
  --text: #3a3128;
  --text-soft: #6a5f52;
  --shadow: 0 6px 24px rgba(62, 47, 36, 0.12);
  --radius: 14px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
}

h1, h2, h3, .brand, .btn, .main-nav, .slide-counter, .site-footer p:last-child a {
  font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-dark);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { border-radius: 50%; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--sand); color: var(--brown-dark); }
.btn-contact {
  background: var(--terracotta);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.4rem 1rem !important;
}
.btn-contact:hover { background: var(--terracotta-dark) !important; }

/* ===== Hero ===== */
.hero {
  min-height: 72vh;
  background: url('../img/hero-pension-canine-tende.jpg') center 30%/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40,30,20,0.45) 0%, rgba(40,30,20,0.6) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 2rem 1.25rem;
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-sub {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.br-mobile { display: none; }

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--brown-dark); }
.btn-light:hover { background: var(--sand); }
.btn-ghost { border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-dark { background: var(--terracotta); color: #fff; }
.btn-dark:hover { background: var(--terracotta-dark); }
.btn-outline { border: 2px solid var(--brown); color: var(--brown-dark); }
.btn-outline:hover { background: var(--sand); }

/* ===== Sections ===== */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--brown-dark); color: #f3ece1; }
.section h2 {
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--brown-dark);
  margin: 0 0 1.5rem;
}
.section-dark h2 { color: #f3ece1; }
.section h3 {
  font-size: 1.3rem;
  color: var(--brown);
  margin: 2rem 0 1rem;
  text-align: center;
}

.prose { max-width: 46rem; margin: 0 auto; }
.prose p, .lead { margin: 0 0 1rem; }
.lead { text-align: center; font-size: 1.15rem; color: var(--text-soft); }
.prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }

.section-figure {
  margin: 1.5rem auto 0;
  max-width: 640px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.section-figure img { width: 100%; }

/* ===== Grille animaux ===== */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.animal-grid figure, .diplome-grid figure {
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}
.animal-grid figcaption {
  padding: 0.6rem;
  font-weight: 700;
  color: var(--brown-dark);
  background: var(--sand);
}
.animal-grid img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }

/* ===== Tarifs ===== */
.table-note { text-align: center; max-width: 42rem; margin: 0 auto 1.5rem; }
.tarif-img {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.tarif-img img { width: 100%; }

/* ===== Diplômes ===== */
.diplome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.diplome-grid img { width: 100%; background: #fff; }
.diplome-grid figcaption {
  padding: 0.7rem;
  font-weight: 600;
  color: var(--brown-dark);
  background: var(--sand);
}

/* ===== Slideshow ===== */
.slideshow {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 1/1;
}
.slides { position: relative; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(62, 47, 36, 0.55);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.slide-arrow:hover { background: rgba(62, 47, 36, 0.85); }
.slide-arrow.prev { left: 12px; }
.slide-arrow.next { right: 12px; }
.slide-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(62, 47, 36, 0.7);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}
.slide-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 50px;
}
.slide-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}
.slide-dots button.active { background: #fff; }

/* ===== Contact ===== */
.contact-grid { max-width: var(--maxw); margin: 0 auto; }
#contact .prose { text-align: center; }
#contact .contact-list { list-style: none; padding: 0; display: inline-block; text-align: left; }
#contact .contact-list li { margin-bottom: 0.6rem; font-size: 1.1rem; }
.contact-list a { color: var(--terracotta-dark); font-weight: 600; }
.doc-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; justify-content: center; }
#donate-button-container { margin-top: 0.5rem; display: flex; justify-content: center; }

/* ===== Footer ===== */
.site-footer {
  background: var(--brown-dark);
  color: #e9dfcf;
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; }
.footer-inner p { margin: 0.25rem 0; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    border-bottom: 1px solid var(--sand);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0.5rem; }
  .btn-contact { text-align: center; margin-top: 0.5rem; }
  .br-mobile { display: block; }
  .hero { min-height: 55vh; }
  .section { padding: 2.5rem 0; }
  .slide-arrow { width: 40px; height: 40px; }
  .doc-buttons .btn { width: 100%; text-align: center; }
}
