/* Mas Allègre — feuille de style commune */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --stone: #b8a99a;
  --stone-light: #e8e0d8;
  --cream: #f5f0ea;
  --paper: #fefcf9;
  --dark: #1c1a18;
  --text: #3a3530;
  --muted: #6b5f55;
  --accent: #8b7355;
  --accent-dark: #6f5a42;
  --wa: #25d366;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1320px;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-weight: 300; color: var(--text); background: var(--paper); line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin: 0 auto; }
.center { text-align: center; }

/* ---------- Typo ---------- */
.eyebrow { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 400; }
.h1, .h2, .h3 { font-family: var(--serif); font-weight: 300; color: var(--dark); line-height: 1.1; letter-spacing: .01em; }
.h2 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 18px; }
.h3 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 12px; }
.lead { font-size: 15px; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.price { font-size: 15px; color: var(--dark); font-weight: 400; margin: 18px 0 26px; }
.price strong { font-weight: 500; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--accent); color: var(--accent); background: transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s; min-height: 48px; }
.btn:hover { background: var(--accent); color: var(--paper); }
.btn-solid { background: var(--accent); color: var(--paper); }
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-light:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; color: #fff; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gutter); transition: background .35s, box-shadow .35s, padding .35s, color .35s; color: #fff; }
.nav.solid, .nav.always { background: #fefcf9; color: var(--dark); box-shadow: 0 1px 0 rgba(0,0,0,.06); padding-top: 12px; padding-bottom: 12px; }
.nav-logo { font-family: var(--serif); font-size: 24px; letter-spacing: .1em; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; opacity: .9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-links .lang { border: 1px solid currentColor; padding: 4px 9px; font-size: 10px; opacity: .7; }
.nav-links .nav-cta { border: 1px solid currentColor; padding: 10px 18px; opacity: 1; }
.nav.solid .nav-cta, .nav.always .nav-cta { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform .3s, opacity .3s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px; background: var(--paper); color: var(--dark); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; z-index: -1; }
  .nav-links a { font-size: 14px; }
  .nav.open { color: var(--dark); }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-links .nav-cta { background: var(--accent); border-color: var(--accent); color: var(--paper); padding: 14px 28px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--dark); }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,13,11,.35) 0%, rgba(15,13,11,0) 30%, rgba(15,13,11,.15) 55%, rgba(15,13,11,.72) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 9vh, 96px); }
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 9vw, 120px); line-height: .95; letter-spacing: .01em; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-sub { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px); font-weight: 300; line-height: 1.3; max-width: 640px; margin-bottom: 22px; }
.hero-prices { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 30px; }
.hero-prices strong { color: #fff; font-weight: 500; }
.hero-small { min-height: 62svh; }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec-cream { background: var(--cream); }
.sec-dark { background: var(--dark); color: var(--stone-light); }
.sec-dark .h2, .sec-dark .h3 { color: var(--paper); }
.sec-dark .eyebrow { color: var(--stone); }
.sec-dark .lead { color: rgba(232,224,216,.75); }
.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }

/* Intro — trois vues */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 48px; }
.trio figure { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--stone-light); }
.trio img { width: 100%; height: 100%; object-fit: cover; }
.trio figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; font-family: var(--serif); font-style: italic; font-size: 18px; background: linear-gradient(to top, rgba(15,13,11,.6), transparent); }

/* Deux offres */
.offers { display: grid; grid-template-columns: 1fr 1fr; }
.offer { position: relative; min-height: 520px; padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: #fff; }
.offer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.offer:hover img { transform: scale(1.03); }
.offer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,13,11,.88) 0%, rgba(15,13,11,.6) 50%, rgba(15,13,11,.25) 100%); }
.offer > div { position: relative; z-index: 1; max-width: 460px; }
.offer .eyebrow { color: rgba(255,255,255,.75); }
.offer .h3 { color: #fff; font-size: clamp(34px, 3.6vw, 50px); }
.offer p { color: rgba(255,255,255,.85); font-size: 14px; }
.offer .price { color: #fff; }

/* Chambres */
.room { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.room + .room { margin-top: clamp(72px, 10vw, 120px); }
.room.reverse { grid-template-columns: 7fr 5fr; }
.room.reverse .room-text { order: 2; }
.room-text { position: sticky; top: 110px; }
.room-text p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0 6px; padding: 20px 0; border-top: 1px solid var(--stone-light); border-bottom: 1px solid var(--stone-light); font-size: 13px; }
.facts li::before { content: '— '; color: var(--stone); }

/* Galeries */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--stone-light); grid-column: span 2; aspect-ratio: 3/4; cursor: zoom-in; }
.gallery a.full { grid-column: 1 / -1; aspect-ratio: 16/8; }
.gallery a.half { grid-column: span 3; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* Avis */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: rgba(255,255,255,.04); border: 1px solid rgba(232,224,216,.14); padding: 32px 28px; display: flex; flex-direction: column; }
.review blockquote { font-family: var(--serif); font-size: 20px; line-height: 1.45; color: var(--paper); font-style: italic; flex: 1; }
.review cite { display: block; margin-top: 22px; font-style: normal; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.stars { color: #c9b99a; letter-spacing: .2em; font-size: 12px; margin-bottom: 14px; }
.score { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--stone); }
.score b { font-family: var(--serif); font-size: 44px; font-weight: 300; color: var(--paper); }

/* Table / petit-déjeuner */
.menu { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.menu-card { background: var(--paper); padding: 34px 30px; border: 1px solid var(--stone-light); }
.menu-card h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--dark); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.menu-card h3 span { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.menu-card ul { list-style: none; font-size: 14px; color: var(--muted); }
.menu-card li { padding: 6px 0; border-bottom: 1px dotted var(--stone-light); }
.menu-card li:last-child { border: 0; }

/* Réservation */
.booking { background: var(--paper); border: 1px solid var(--stone-light); padding: clamp(12px, 3vw, 32px); max-width: 1000px; margin: 0 auto; }

/* Alentours */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.cols3 h3 { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 14px; }
.cols3 p { font-size: 14px; color: var(--muted); line-height: 1.9; }
.cols3 p b { color: var(--text); font-weight: 500; }
.map-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 4px; margin-top: 56px; background: var(--stone-light); }
#map { height: 460px; background: var(--stone-light); }
.times { background: var(--paper); padding: 32px 30px; display: grid; gap: 22px; align-content: center; }
.times b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.times p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Infos pratiques */
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); text-align: center; }
.info h3 { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 12px; }
.info p { font-size: 14px; color: var(--muted); line-height: 1.9; }

/* Contact */
.contact { text-align: center; }
.contact .btn-row { justify-content: center; margin-top: 28px; }

/* Visite du mas */
.tour { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--stone-light); }
.tour:first-of-type { border-top: 0; }
.tour-text { position: sticky; top: 110px; }
.tour-text p { font-size: 14px; color: var(--muted); }

/* Footer */
.footer { background: var(--dark); color: var(--stone-light); padding: 72px var(--gutter) 110px; text-align: center; }
.footer-logo { font-family: var(--serif); font-size: 30px; letter-spacing: .1em; color: var(--paper); margin-bottom: 20px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; list-style: none; margin-bottom: 24px; }
.footer a { color: var(--stone-light); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-links a { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.footer p { font-size: 13px; margin-bottom: 6px; }
.footer small { display: block; margin-top: 24px; font-size: 11px; color: rgba(232,224,216,.45); }
.footer small a { color: rgba(232,224,216,.55); margin: 0 8px; }

/* Barre fixe (mobile) + bouton WhatsApp (ordinateur) */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(254,252,249,.97); box-shadow: 0 -1px 0 rgba(0,0,0,.08); transform: translateY(110%); transition: transform .35s ease; }
.sticky-bar.show { transform: none; }
.sticky-bar .btn { padding: 12px 10px; letter-spacing: .16em; }
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: #0f0d0b; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 84vh; object-fit: contain; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--stone-light); font-family: var(--serif); font-style: italic; font-size: 18px; padding: 0 70px; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; width: 56px; height: 56px; cursor: pointer; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Pages légales */
.legal { padding: 140px 0 80px; }
.legal h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 54px); color: var(--dark); margin-bottom: 10px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--dark); margin: 36px 0 10px; }
.legal p, .legal li { font-size: 15px; color: var(--muted); }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal a { color: var(--accent); }

/* Apparition douce */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Tablette ---------- */
@media (max-width: 960px) {
  .room, .room.reverse, .tour { grid-template-columns: 1fr; }
  .room.reverse .room-text { order: 0; }
  .room-text, .tour-text { position: static; }
  .menu { grid-template-columns: 1fr 1fr; }
  .menu > :first-child { grid-column: 1 / -1; }
  .map-wrap { grid-template-columns: 1fr; }
  .times { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 680px) {
  .trio { grid-template-columns: 1fr 1fr; }
  .trio figure:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
  .offers { grid-template-columns: 1fr; }
  .offer { min-height: 460px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a, .gallery a.half { grid-column: span 1; aspect-ratio: 3/4; }
  .gallery a.full { grid-column: 1 / -1; aspect-ratio: 4/3; }
  .reviews { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 84%; scroll-snap-align: center; }
  .menu, .cols3, .info { grid-template-columns: 1fr; }
  .info { text-align: left; }
  #map { height: 340px; }
  .times { grid-template-columns: 1fr 1fr; padding: 24px 20px; }
  .facts { grid-template-columns: 1fr; }
  .sticky-bar { display: grid; }
  .wa-float { display: none; }
  .hero-prices { font-size: 11px; letter-spacing: .1em; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* Demi-pension */
.hp { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--dark); color: var(--stone-light); padding: clamp(32px, 5vw, 64px); margin-bottom: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hp .eyebrow { color: var(--stone); }
.hp .h2 { color: var(--paper); }
.hp .lead { color: rgba(232,224,216,.8); }
.hp ul { list-style: none; margin-top: 20px; font-size: 14px; }
.hp li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid rgba(232,224,216,.12); }
.hp li::before { content: '✓'; position: absolute; left: 0; color: #c9b99a; }
.hp-price { text-align: center; border: 1px solid rgba(232,224,216,.25); padding: 36px 24px; }
.hp-price .amount { font-family: var(--serif); font-size: clamp(64px, 8vw, 96px); font-weight: 300; line-height: 1; color: var(--paper); }
.hp-price .unit { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); margin: 8px 0 6px; }
.hp-price .was { font-size: 13px; color: rgba(232,224,216,.6); margin-bottom: 24px; }
.hp-price .was s { opacity: .8; }
.hp-price .btn { width: 100%; }
.hp-price small { display: block; margin-top: 14px; font-size: 12px; color: rgba(232,224,216,.55); }
.hero-prices .hp-tag { color: #fff; border: 1px solid rgba(255,255,255,.5); padding: 2px 10px; }
@media (max-width: 800px) { .hp { grid-template-columns: 1fr; } }
