/* =============================================
   CHÂTEAU DES ARPENTIS — STYLE
   Palette : or, ivoire, anthracite, vert mousse
   Fonts : Cormorant Garamond + Montserrat
   ============================================= */

:root {
  --gold: #b8935a;
  --gold-light: #d4aa72;
  --gold-pale: #f0e6d3;
  --ivory: #f8f4ef;
  --dark: #1a1a18;
  --charcoal: #2d2d2a;
  --stone: #6b6560;
  --moss: #4a5240;
  --white: #ffffff;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 2px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.15;
}
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 em { font-style: italic; color: var(--gold); }
p { font-size: 0.92rem; color: var(--stone); line-height: 1.8; letter-spacing: 0.01em; }

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.label--light { color: var(--gold-light); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.btn--primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline:hover { background: var(--gold); color: var(--white); }
.btn--large { padding: 1.2rem 2.8rem; font-size: 0.75rem; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.container--narrow { max-width: 900px; }
.container--stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.section { padding: 7rem 0; }
.section--dark { background: var(--dark); }
.section--tight { padding: 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.section__head h2 { margin-bottom: 1rem; }
.section__intro { font-size: 1rem; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 1.5rem 2.5rem;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(26,26,24,0.97);
  padding: 1rem 2.5rem;
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--white);
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 2.5rem;
  margin: 0 auto;
}
.nav__links a {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--gold-light); }
.nav__cta {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.55rem 1.4rem;
  transition: var(--transition);
}
.nav__cta:hover { background: var(--gold); color: var(--white); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 24px; height: 1px; background: var(--white); transition: 0.3s; }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease;
}
.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20,18,14,0.75) 0%,
    rgba(20,18,14,0.35) 60%,
    rgba(20,18,14,0.1) 100%
  );
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 2.5rem;
  max-width: 700px;
  animation: heroIn 1.2s cubic-bezier(0.25,0.46,0.45,0.94) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero__title span { display: block; }
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 50px;
  height: 1px;
  background: var(--gold);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 0.4; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(0.5); transform-origin: left; }
}
.hero__thumbs {
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}
.thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  border: 1px solid transparent;
  transition: opacity 0.3s, border-color 0.3s;
}
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--gold); }

/* ---- SEJOUR ---- */
.sejour__text h2 { margin-bottom: 1.5rem; }
.sejour__text p { margin-bottom: 1rem; max-width: 500px; }
.sejour__features {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.sejour__features li {
  font-size: 0.82rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.03em;
}
.sejour__features .icon { color: var(--gold); font-size: 0.6rem; flex-shrink: 0; }
.sejour__img-wrap {
  position: relative;
}
.sejour__img-wrap img {
  width: 100%;
  height: 580px;
  object-fit: cover;
}
.sejour__badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--gold);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  min-width: 130px;
}
.badge__num { display: block; font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: 0.05em; }
.badge__text { display: block; font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 0.3rem; opacity: 0.85; }

/* ---- STATS ---- */
.stats {
  background: var(--charcoal);
  padding: 3.5rem 2rem;
}
.stat { text-align: center; padding: 0 3rem; flex: 1; }
.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat__num sup { font-size: 0.5em; }
.stat__label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.stat__divider { width: 1px; height: 60px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

/* ---- CARDS (Chambres) ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid rgba(184,147,90,0.15);
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.card__body { padding: 1.5rem; }
.card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: var(--charcoal);
}
.card__desc { font-size: 0.82rem; margin-bottom: 1.2rem; }
.card__link {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity 0.3s;
}
.card__link:hover { opacity: 0.7; }

/* ---- ACTIVITES ---- */
.activites__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
}
.activite {
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}
.activite:hover { background: rgba(184,147,90,0.08); }
.activite__icon { font-size: 1.8rem; margin-bottom: 1rem; }
.activite__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  font-weight: 400;
}
.activite__desc { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.7; }

/* ---- GASTRONOMIE ---- */
.gastro__text h2 { margin-bottom: 1.5rem; }
.gastro__text p { margin-bottom: 1rem; max-width: 480px; }
.gastro__mosaic { position: relative; }
.mosaic-main {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.mosaic-sub {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 55%;
  height: 240px;
  object-fit: cover;
  border: 5px solid var(--ivory);
}
.gastro__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.tag {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(184,147,90,0.4);
  color: var(--gold);
  background: rgba(184,147,90,0.05);
}

/* ---- GALERIE ---- */
.galerie__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 320px;
}
.gal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s;
  filter: brightness(0.85);
}
.gal-img:hover { transform: scale(1.06); filter: brightness(1); z-index: 1; }

/* ---- CONTACT ---- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__item { display: flex; flex-direction: column; gap: 0.2rem; }
.contact__item-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.contact__item-value { font-family: var(--font-serif); font-size: 1.1rem; color: var(--charcoal); }
.contact__cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__cta p { margin-bottom: 0.5rem; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.1em;
}
.footer__tagline { font-size: 0.7rem; letter-spacing: 0.15em; margin-top: 0.2rem; }
.footer__nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer__nav a {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--gold-light); }
.footer__copy { font-size: 0.7rem; }
.footer__copy a { color: var(--gold-light); }

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal--right {
  transform: translateX(40px);
}
.reveal.visible {
  opacity: 1;
  transform: translate(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .container--split { grid-template-columns: 1fr; gap: 3rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .activites__grid { grid-template-columns: repeat(2, 1fr); }
  .container--stats { flex-wrap: wrap; }
  .stat__divider { display: none; }
  .galerie__grid { grid-template-columns: repeat(3, 1fr); height: auto; }
  .gal-img { height: 180px; }
  .mosaic-sub { display: none; }
  .gastro__visual { order: 1; }
  .gastro__text { order: 2; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: auto; }
  .nav.menu-open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--dark);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.5rem;
    z-index: 99;
  }
  .nav.menu-open .nav__links a { font-size: 0.85rem; }
  .cards { grid-template-columns: 1fr; }
  .activites__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .galerie__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__thumbs { display: none; }
  .container--stats { gap: 2rem; }
  .stat__divider { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .sejour__img-wrap img { height: 340px; }
  .sejour__badge { display: none; }
}

/* ---- CARD PHOTO (chambres réelles) ---- */
.card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--gold-pale);
}
.card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.card:hover .card__photo { transform: scale(1.05); }
.card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gold);
}
.card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(26,26,24,0.75);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.7rem;
  backdrop-filter: blur(6px);
}
.card__type {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

/* ---- CHAMBRES FOOTER ---- */
.chambres__footer {
  text-align: center;
  margin-top: 3rem;
}

/* ---- ACTIVITÉS AVEC PHOTOS ---- */
.activite--photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.activite__img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.activite__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.85);
}
.activite--photo:hover .activite__img {
  transform: scale(1.05);
  filter: brightness(1);
}
.activite__body {
  padding: 1.8rem 2rem;
}
.activite--photo .activite__name { margin-bottom: 0.5rem; }
/* Mode icône : conserver l'ancien layout */
.activite:not(.activite--photo) .activite__name { margin-top: 0; }
