/* =========================================================
   ONLY ART PHOTOGRAPHIE — HOME
   Palette inspirée de la maquette : brun, crème, doré, blanc
   ========================================================= */

:root {
  --brown-950: #17120f;
  --brown-900: #241913;
  --brown-800: #3a271d;
  --brown-700: #674334;
  --brown-600: #80533f;
  --gold: #d5ad63;
  --cream: #eee7dc;
  --cream-2: #f7f3ed;
  --white: #fff;
  --text: #2d241f;
  --muted: #756b64;
  --shadow: 0 24px 70px rgba(37, 25, 18, .12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --script: "Great Vibes", cursive;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream-2);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

button { font: inherit; }

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--brown-950);
  display: grid;
  place-items: center;
  transition: opacity .6s ease, visibility .6s ease;
}

.page-loader span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.page-loader.loaded { opacity: 0; visibility: hidden; }

@keyframes spin { to { transform: rotate(360deg); } }

/* HEADER */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px clamp(24px, 8vw, 9%);
  color: var(--white);
  transition: background .3s ease, padding .3s ease, backdrop-filter .3s ease;
}

.site-header.scrolled {
  position: fixed;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(23, 18, 15, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 35px rgba(0,0,0,.12);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: .85;
  letter-spacing: .08em;
  flex: 0 0 auto;
}

.brand-main {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.brand-sub {
  font-size: 8px;
  letter-spacing: .28em;
  margin-left: 3px;
  margin-top: 6px;
  opacity: .9;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  opacity: .9;
  transition: opacity .25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transition: right .3s ease;
}

.main-nav a:hover,
.main-nav a.active { opacity: 1; }

.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* GENERIC */
.section {
  padding: clamp(80px, 9vw, 140px) clamp(20px, 7vw, 8%);
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 55px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brown-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: .02em;
  color: #e9be6b;
  font-size: clamp(26px, 3vw, 43px);
}

h1, h2, h3, p { margin-top: 0; }

h2 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.025em;
}

h2 em, h1 em {
  font-style: normal;
  color: var(--brown-700);
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 16px;
}

.btn,
.small-btn,
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}

.btn {
  min-height: 46px;
  padding: 0 25px;
  color: white;
  background: var(--brown-700);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(74, 46, 34, .16);
}

.btn:hover {
  transform: translateY(-3px);
  background: var(--brown-800);
  box-shadow: 0 16px 32px rgba(74, 46, 34, .22);
}

.btn-light {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: none;
}

.btn-light:hover {
  background: white;
  color: var(--brown-800);
}

.center-cta { text-align: center; margin-top: 48px; }

.image-box {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(213,173,99,.18), transparent 34%),
    linear-gradient(135deg, #443126, #211812);
}

.image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-box > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.8);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .05em;
  pointer-events: none;
}

.image-box img:not([src]),
.image-box img { min-height: 100%; }

/* HERO */
.hero {
  position: relative;
  min-height: min(850px, 100vh);
  height: 100vh;
  overflow: hidden;
  background: #2b1c13;
  color: white;
}

.hero-slides,
.hero-slide,
.hero-placeholder {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1s ease, transform 7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 55% 42%, rgba(229,179,86,.48), transparent 18%),
    radial-gradient(circle at 72% 70%, rgba(132,77,38,.42), transparent 35%),
    linear-gradient(110deg, #1d130e 0%, #5a321e 45%, #bd7b31 68%, #2a1a11 100%);
}

.hero-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.14) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.1) 0 2px, transparent 3px);
  background-size: 130px 130px, 180px 180px;
  opacity: .45;
}

.hero-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-placeholder span {
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: .12em;
  color: rgba(255,255,255,.35);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(10,7,5,.76) 0%, rgba(16,10,7,.22) 58%, rgba(10,7,5,.45) 100%),
    linear-gradient(0deg, rgba(0,0,0,.48), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 120px clamp(28px, 8vw, 8.5%) 130px;
}

.hero-content h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(62px, 8.2vw, 140px);
  font-weight: 500;
  line-height: .74;
  letter-spacing: -.035em;
  text-shadow: 0 6px 30px rgba(0,0,0,.25);
}

.hero-content h1 em { color: white; }

.hero-location {
  position: absolute;
  right: clamp(28px, 8vw, 8.5%);
  bottom: 170px;
  text-align: right;
  line-height: 1.6;
  font-size: 14px;
  letter-spacing: .04em;
}

.hero-bottom {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 12%, 12%);
  right: clamp(28px, 12%, 12%);
  bottom: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.65);
  padding-top: 24px;
}

.slider-arrow {
  border: 0;
  background: transparent;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  transition: transform .2s ease, color .2s ease;
}

.slider-arrow:hover {
  transform: translateX(5px);
  color: var(--gold);
}

#prevSlide:hover { transform: translateX(-5px); }

.slider-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .2em;
}

.slider-progress i {
  display: block;
  width: clamp(80px, 10vw, 140px);
  height: 1px;
  background: rgba(255,255,255,.5);
}

/* ANIMALIER */
.animalier-section { background: var(--cream-2); }

.animal-grid {
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.animal-card {
  background: white;
  box-shadow: var(--shadow);
  transition: transform .4s ease, box-shadow .4s ease;
}

.animal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(37,25,18,.18);
}

.animal-card .image-box { height: 390px; }

.card-body {
  padding: 23px 24px 27px;
}

.card-body > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
}

.card-body h3 {
  margin: 8px 0 7px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

/* STORY */
.story-section {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  align-items: center;
  gap: 0;
  background: var(--brown-950);
  color: white;
  overflow: hidden;
}

.story-image {
  height: 620px;
  margin-left: -2%;
  box-shadow: 30px 35px 80px rgba(0,0,0,.28);
}

.story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(23,18,15,.65));
}

.story-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
  margin-left: -9%;
  padding: 50px 50px 50px 0;
}

.story-content .eyebrow { color: var(--gold); }

.story-content h2 {
  margin-bottom: 26px;
  font-size: clamp(48px, 5vw, 76px);
}

.story-content h2 em { color: #f1d39b; }

.story-content p:not(.eyebrow) {
  color: rgba(255,255,255,.78);
  line-height: 1.9;
  font-size: 15px;
  margin-bottom: 30px;
}

/* SERVICES */
.services-section { background: #fff; }

.services-grid {
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  border: 1px solid #e7ded4;
  background: var(--cream-2);
  transition: transform .35s ease, box-shadow .35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card .image-box { height: 260px; }

.service-content {
  padding: 25px 25px 28px;
  text-align: center;
}

.service-content h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 24px;
}

.service-content p {
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.small-btn {
  min-height: 38px;
  padding: 0 18px;
  background: var(--brown-700);
  color: white;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.small-btn:hover {
  background: var(--brown-950);
  transform: translateY(-2px);
}

/* CONTACT */
.contact-banner {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
}

.contact-bg,
.contact-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-bg {
  background:
    radial-gradient(circle at 50% 35%, rgba(216,169,91,.48), transparent 20%),
    linear-gradient(125deg, #23170f, #8a592f 55%, #3b2416);
}

.contact-bg > span {
  color: rgba(255,255,255,.25);
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,10,7,.8), rgba(15,10,7,.3), rgba(15,10,7,.72));
}

.contact-content {
  position: relative;
  z-index: 2;
  width: min(850px, 90%);
  text-align: center;
}

.contact-content .eyebrow { color: #e8bd71; }

.contact-content h2 {
  font-size: clamp(55px, 7vw, 105px);
  margin-bottom: 20px;
}

.contact-content h2 em { color: white; }

.contact-content > p:not(.eyebrow) {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: 25px;
}

/* REVIEWS */
.reviews { background: var(--cream); }

.reviews-inner {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 38px;
}

.review-card {
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(128,83,63,.13);
  padding: 30px 28px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stars {
  color: #b68438;
  letter-spacing: .12em;
  margin-bottom: 16px;
}

.review-card p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.review-card span {
  color: var(--muted);
  font-size: 12px;
}

.google-btn {
  padding: 15px 24px;
  border: 1px solid #d6cdc4;
  background: white;
  color: var(--text);
  box-shadow: 0 12px 35px rgba(37,25,18,.08);
  font-size: 13px;
  font-weight: 600;
}

.google-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(37,25,18,.14);
}

.google-g {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4f1ed;
  font-weight: 700;
  color: #4285f4;
}

/* FOOTER */
.site-footer {
  padding: 65px clamp(24px, 8vw, 9%) 25px;
  background: var(--brown-950);
  color: rgba(255,255,255,.78);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1.2fr;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-brand { color: white; margin-bottom: 20px; }

.footer-top p {
  max-width: 320px;
  line-height: 1.7;
  font-size: 13px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.footer-links a,
.footer-contact a {
  transition: color .2s ease;
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--gold); }

.footer-contact strong {
  color: white;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.13);
  padding-top: 20px;
  font-size: 11px;
  color: rgba(255,255,255,.45);
}

.footer-bottom a:hover { color: white; }

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(23,18,15,.88);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .3s ease;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}

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

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .main-nav { gap: 18px; font-size: 12px; }
  .hero-content h1 { font-size: clamp(58px, 8vw, 100px); }
  .hero-location { bottom: 160px; }
}

@media (max-width: 850px) {
  .site-header { min-height: 75px; }
  .menu-toggle { display: block; position: relative; z-index: 31; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(23,18,15,.97);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 80px 30px 40px;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav a {
    font-family: var(--serif);
    font-size: 30px;
    letter-spacing: .01em;
  }

  .hero {
    min-height: 760px;
    height: 100svh;
  }

  .hero-content {
    padding: 130px 25px 150px;
    align-content: center;
  }

  .hero-content h1 { font-size: clamp(55px, 14vw, 92px); }
  .hero-location {
    position: static;
    margin-top: 35px;
    text-align: left;
    font-size: 12px;
  }

  .hero-bottom {
    left: 25px;
    right: 25px;
    bottom: 25px;
  }

  .animal-grid,
  .services-grid,
  .review-cards { grid-template-columns: 1fr; max-width: 520px; }

  .animal-card .image-box { height: 330px; }

  .story-section {
    grid-template-columns: 1fr;
    padding: 70px 20px;
  }

  .story-image {
    width: 100%;
    height: 390px;
    margin: 0;
  }

  .story-content {
    margin: 0;
    padding: 50px 5px 10px;
  }

  .story-image::after {
    background: linear-gradient(0deg, rgba(23,18,15,.65), transparent 60%);
  }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 2; }
}

@media (max-width: 560px) {
  .brand-main { font-size: 19px; }
  .brand-sub { font-size: 7px; }

  .hero-content h1 { font-size: 52px; }
  .script { font-size: 25px; }
  .hero-location { margin-top: 28px; }

  h2 { font-size: 47px; }

  .section { padding: 75px 18px; }
  .section-heading { margin-bottom: 40px; }

  .contact-banner { min-height: 540px; }
  .contact-content h2 { font-size: 52px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-contact { grid-column: auto; }

  .footer-bottom {
    flex-direction: column;
    gap: 9px;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
