/* ===========================
   CHEZ PATRICIA & GEO — CSS
   =========================== */

/* --- Variables & Reset --- */
:root {
  --blue:    #2a6396;
  --teal:    #1a9280;
  --sand:    #e8d5b7;
  --cream:   #f8f4ef;
  --dark:    #1b2f3d;
  --text:    #2c2c2c;
  --white:   #ffffff;
  --shadow:  0 4px 24px rgba(27,47,61,.13);
  --radius:  10px;
  --font-h:  'Playfair Display', Georgia, serif;
  --font-b:  'Lato', 'Helvetica Neue', sans-serif;
  --nav-h:   72px;
}

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

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

body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); margin-bottom: .6rem; }
p  { margin-bottom: 1rem; }

.section-label {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: .5rem;
  display: block;
}

/* --- Utilities --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--white);
}

.section--dark {
  background: var(--dark);
  color: var(--cream);
}
.section--dark h2,
.section--dark h3 { color: var(--sand); }

.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-b);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  font-size: .95rem;
  letter-spacing: .05em;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--teal {
  background: var(--teal);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--dark); }

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s;
}

.nav.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  font-family: var(--font-h);
  font-size: 1.3rem;
  color: var(--white);
  line-height: 1.2;
  font-style: italic;
}
.nav__logo span { display: block; font-size: .7rem; font-style: normal; letter-spacing: .15em; color: var(--sand); text-transform: uppercase; }

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform .25s;
  transform-origin: left;
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--dark);
  padding: 1.5rem;
  gap: .5rem;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color .2s;
}
.nav__mobile a:hover { color: var(--sand); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(.55);
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero.loaded .hero__bg { transform: scale(1); }

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 2rem 1rem;
  max-width: 800px;
}

.hero__tag {
  font-size: .85rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero__title {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-style: italic;
}
.hero__title em { color: var(--sand); font-style: normal; }

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  font-family: var(--font-h);
  font-style: italic;
}

.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero small (inner pages) */
.hero--sm {
  min-height: 45vh;
}
.hero--sm .hero__title { font-size: clamp(2rem, 5vw, 3.5rem); }

/* --- CARDS --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col--rev { direction: rtl; }
.two-col--rev > * { direction: ltr; }

.two-col__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.two-col__img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform .5s;
}
.two-col__img:hover img { transform: scale(1.04); }

/* --- ROOM CARDS --- */
.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 4rem;
}

.room-card__banner {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.room-card__body {
  padding: 2rem;
}

.room-card__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
  margin-top: 1.5rem;
}

.room-card__gallery-img {
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.room-card__gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.room-card__gallery-img:hover img { transform: scale(1.07); }

.room-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.tag {
  background: var(--cream);
  border: 1px solid var(--sand);
  color: var(--blue);
  font-size: .78rem;
  padding: .3rem .8rem;
  border-radius: 50px;
  font-weight: 600;
}

/* --- FEATURES GRID --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.feature p  { font-size: .9rem; color: #555; margin: 0; }

/* --- BOOKING SECTION --- */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.booking-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.booking-card:hover { transform: translateY(-6px); }

.booking-card img {
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1.2rem;
}

.booking-card h3 { margin-bottom: .5rem; }
.booking-card p  { font-size: .9rem; color: #555; margin-bottom: 1.5rem; }

/* --- AVIS SECTION --- */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.avis-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}
.avis-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Map */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
  height: 380px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- MENTIONS LÉGALES --- */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.legal h2 { margin: 2.5rem 0 .75rem; color: var(--blue); font-size: 1.4rem; }
.legal h3 { margin: 1.5rem 0 .5rem; font-size: 1.1rem; }
.legal p, .legal li { font-size: .97rem; line-height: 1.8; }
.legal ul { padding-left: 1.5rem; list-style: disc; }
.legal a { color: var(--teal); text-decoration: underline; }

/* --- FOOTER --- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
  font-size: .9rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

footer h4 {
  color: var(--sand);
  font-family: var(--font-h);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

footer ul { display: flex; flex-direction: column; gap: .4rem; }
footer ul a { color: rgba(255,255,255,.65); transition: color .2s; }
footer ul a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer__bottom a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer__bottom a:hover { color: var(--white); }

/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.lightbox__close:hover { color: var(--sand); }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  font-size: 2rem;
  padding: .6rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background .2s;
}
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,.25); }

/* --- SCROLL ANIMATIONS --- */
/* Visible par défaut (fallback si JS ne charge pas) */
.reveal {
  opacity: 1;
  transform: none;
}
/* Animation activée seulement si JS a chargé */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- SCROLL-TO-TOP --- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--blue);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col--rev { direction: ltr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__actions { flex-direction: column; align-items: center; }
  .room-card__gallery { grid-template-columns: 1fr 1fr; }
}
