/* =========================================================
   Dar Nekhla — La maison des palmiers
   ========================================================= */

/* ---------- Police (auto-hébergée, pas d'appel à Google) ---------- */
@font-face { font-family: "Raleway"; font-weight: 300; font-display: swap; src: url("../fonts/raleway-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 400; font-display: swap; src: url("../fonts/raleway-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 500; font-display: swap; src: url("../fonts/raleway-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 600; font-display: swap; src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
  --teal: #3bb4a7;          /* turquoise d'origine, usage décoratif */
  --teal-dark: #1f7f74;     /* boutons et liens : contraste AA avec le blanc */
  --teal-darker: #186a61;
  --text: #333;
  --text-soft: #555;
  --line: #e2e2e2;
  --panel: rgba(248, 248, 248, .94);
  --header-bg: rgba(52, 52, 52, .62);
  --footer-bg: #5d5c5e;
  --beige: rgba(246, 239, 214, .75);
  --wrap: 1220px;
  --pad: clamp(18px, 3vw, 36px);
  --header-h: 136px;
  --hero-h: max(380px, min(78vh, 760px));
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #8f9a9c;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal-darker); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0 0 .9em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.panel:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 4px;
}
.skip:focus { top: 12px; }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-s { width: 16px; height: 16px; stroke-width: 2; }
.ico-l { width: 28px; height: 28px; stroke-width: 1.2; }

/* ---------- Fond fixe (effet parallax) ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
}

/* ---------- En-tête : posé sur le haut de page, disparaît au scroll ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  background: var(--header-bg);
  color: #fff;
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto;
  min-height: var(--header-h);
  padding: 22px var(--pad);
  display: flex; align-items: center; gap: 24px;
}
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-name { font-weight: 300; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: .01em; }
.brand-sub { font-size: clamp(15px, 1.4vw, 19px); font-weight: 400; margin-top: 2px; }

.nav-zone { display: flex; align-items: center; gap: 28px; }
.main-nav ul {
  list-style: none; display: flex;
  border-top: 1px solid rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(255,255,255,.75);
}
.main-nav a {
  display: block; padding: 8px 22px;
  color: #fff; text-decoration: none; text-transform: uppercase;
  font-size: 15px; letter-spacing: .03em;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; font-size: 14px; font-style: italic; border-radius: 4px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: rgba(255,255,255,.14); }
.lang[open] .ico { transform: rotate(180deg); }
.lang ul {
  list-style: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border-radius: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.18);
  min-width: 160px; padding: 6px 0;
}
.lang ul a { display: block; padding: 8px 16px; color: var(--text); text-decoration: none; font-size: 15px; }
.lang ul a:hover { background: #f1f1f1; }
.lang ul a[aria-current] { font-weight: 600; color: var(--teal-dark); }

.lang-mobile { display: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.6); color: #fff;
  border-radius: 4px; padding: 8px; cursor: pointer;
}

/* ---------- Espace au-dessus du contenu (laisse voir le fond) ---------- */
.spacer { height: calc(var(--header-h) + 70px); }
.spacer.spacer-hero { height: var(--hero-h); }
/* Accueil : la photo d'ouverture est cadrée sur la zone visible, calée en bas (piscine) */
.page-accueil .bg::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--hero-h);
  background-image: inherit; background-size: cover; background-position: center bottom;
}

/* ---------- Panneau de contenu ---------- */
.panel {
  max-width: var(--wrap); margin: 0 auto;
  background: var(--panel);
  padding: 36px var(--pad) 56px;
  position: relative;
}
.page-title { font-weight: 300; font-size: clamp(28px, 2.8vw, 38px); color: #555; }
.page-title-xl { font-size: clamp(32px, 4vw, 54px); margin: 4px 0 24px; color: #4a4a4a; }
.lead { font-weight: 300; font-size: clamp(20px, 2vw, 27px); line-height: 1.4; text-align: center; color: #555; max-width: 900px; margin: 0 auto 28px; }
.lead-left { text-align: left; margin: 10px 0 32px; max-width: none; }

.btn {
  display: inline-block; background: var(--teal-dark); color: #fff;
  text-decoration: none; text-transform: uppercase; letter-spacing: .04em;
  font-size: 15px; padding: 12px 34px; border-radius: 2px; text-align: center;
  transition: background .15s;
}
.btn:hover { background: var(--teal-darker); color: #fff; }
.btn-block { display: block; width: 100%; text-transform: none; font-size: 16px; letter-spacing: 0; }

/* ---------- Galerie (maçonnerie) ---------- */
.gallery { list-style: none; columns: 3; column-gap: 10px; margin: 0 0 36px; }
.gallery li { break-inside: avoid; margin-bottom: 10px; }
.gallery a { display: block; position: relative; overflow: hidden; }
.gallery img { width: 100%; transition: transform .4s ease, filter .3s; }
.gallery a:hover img { transform: scale(1.03); filter: brightness(1.05); }

/* ---------- Accueil ---------- */
.panel-home { padding-top: 44px; }
.home-title { font-weight: 400; font-size: clamp(20px, 2vw, 27px); text-align: center; margin: 0 0 28px; color: #444; }
.home-intro { background: rgba(255,255,255,.7); padding: 28px clamp(18px, 4vw, 48px) 20px; margin: 0 auto 40px; max-width: 1000px; }
.cta { text-align: center; margin-bottom: 30px; }
.prose p { margin-bottom: .7em; }
.promo {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  max-width: 900px; min-height: 260px; margin: 0 auto;
  background-size: cover; background-position: center 60%;
  color: #fff; text-decoration: none; padding: 16px 24px 18px;
  overflow: hidden;
}
.promo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 55%, rgba(0,0,0,.5) 100%);
  transition: background .3s;
}
.promo:hover { color: #fff; }
.promo:hover::before { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.1) 55%, rgba(0,0,0,.6) 100%); }
.promo span { position: relative; }
.promo-kicker { font-size: 20px; }
.promo-title { align-self: flex-end; font-weight: 600; font-size: clamp(26px, 3.4vw, 42px); }

/* ---------- Liste des chambres ---------- */
.page-chambres .page-title { margin-bottom: 26px; }
.room-list { list-style: none; display: grid; gap: 20px; }
.room-card {
  display: grid; grid-template-columns: 1.4fr 1fr;
  background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.05);
}
.room-card-img { display: block; overflow: hidden; }
.room-card-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform .4s; }
.room-card:hover .room-card-img img { transform: scale(1.03); }
.room-card-body { padding: 30px 32px; display: flex; flex-direction: column; }
.room-card-title { font-weight: 400; font-size: 27px; color: #555; margin-bottom: 14px; }
.room-card-title a { color: inherit; text-decoration: none; }
.room-card-title a::after { content: ""; position: absolute; inset: 0; } /* carte cliquable */
.room-card { position: relative; }
.room-card-title a:hover { color: var(--teal-dark); }
.room-card-title a:focus-visible { outline: none; }
.room-card:has(.room-card-title a:focus-visible) { outline: 3px solid #f2b705; outline-offset: 2px; }
.room-card-text { font-size: 15px; color: var(--text-soft); }
.room-card .amen { margin: 6px 0 auto; padding-bottom: 20px; }
.price { margin: 0 0 12px; padding-left: 14px; }
.price-from { display: block; font-size: 13px; color: var(--text-soft); }
.price-val { font-size: 34px; font-weight: 300; line-height: 1; color: #444; }

.amen { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; color: #555; }
.amen-full { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.amen-full li { display: flex; align-items: center; gap: 10px; }

/* ---------- Détail chambre ---------- */
.detail-head { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.back { display: inline-flex; padding: 8px; margin-left: -8px; color: var(--teal-dark); border-right: 1px solid var(--line); padding-right: 22px; }
.back .ico { width: 30px; height: 30px; stroke-width: 1.8; }
.back-text { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-size: 16px; }
.back-text:hover { text-decoration: underline; }

.price-box {
  background: #fff; padding: 16px 24px; margin-top: 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.price-box p { margin: 0; }
.price-line { display: flex; align-items: baseline; gap: 10px; }
.price-big { font-size: 38px; font-weight: 300; line-height: 1.1; color: #333; }
.price-line .price-from { display: inline; font-size: 15px; }
.price-unit, .price-tax { color: var(--text-soft); }
.price-tax { font-size: 14px; }

.viewer.has-thumbs { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 12px; }
.viewer-stage { position: relative; background: #e8e8e8; }
.viewer-main { display: block; cursor: zoom-in; }
.viewer-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.viewer-zoom {
  position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.45); color: #fff;
  border-radius: 50%; padding: 8px; display: flex; opacity: .85;
}
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.25); border: 0; color: #fff; cursor: pointer;
  width: 48px; height: 64px; display: grid; place-items: center;
}
.viewer-nav:hover { background: rgba(0,0,0,.45); }
.viewer-nav .ico { width: 34px; height: 34px; stroke-width: 1.5; }
.viewer-nav.prev { left: 0; }
.viewer-nav.next { right: 0; }
.thumbs {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start; gap: 8px;
  height: 0; min-height: 100%; overflow-y: auto; padding: 2px;
}
.thumb { display: block; aspect-ratio: 4 / 3; opacity: .75; transition: opacity .15s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb[aria-current] { opacity: 1; }
.thumb[aria-current] { box-shadow: 0 0 0 2px var(--teal-dark); }

.specs { margin: 34px 0 0; }
.spec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 30px 0; border-top: 1px solid var(--line); }
.spec:first-child { border-top: 0; }
.spec dt { font-weight: 600; }
.spec dd { margin: 0; color: var(--text-soft); }
.spec-cols { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.infos { list-style: none; margin-top: 10px; }
.infos li { position: relative; padding-left: 18px; margin-bottom: 4px; }
.infos li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ---------- Excursion ---------- */
.exc-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; margin-bottom: 36px; align-items: start; }
.day { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.day:not(:first-child) { margin-top: 18px; }
.steps { list-style: none; }
.steps li { margin-bottom: 4px; }
.tarif { background: var(--beige); padding: 26px 28px; font-size: 15px; color: var(--text-soft); }
.tarif-prix { font-size: 22px; font-weight: 600; color: #444; line-height: 1.35; margin-bottom: 18px; }
.tarif-prix span { font-weight: 500; font-size: 19px; }
.tarif h2 { font-size: 15px; font-weight: 600; color: #444; margin: 14px 0 4px; }
.tarif ul { padding-left: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-bottom: 36px; color: var(--text-soft); }
.contact-name { font-weight: 400; font-size: 30px; color: #555; margin-bottom: 6px; }
.contact-sub { font-weight: 600; font-size: 17px; color: var(--text); margin-bottom: 6px; }
.phones { list-style: none; font-size: 20px; }
.phones a { color: var(--text); text-decoration: none; }
.phones a:hover { color: var(--teal-dark); text-decoration: underline; }
.map { margin: 0; }
.map a { display: block; position: relative; }
.map img { width: 100%; border: 1px solid var(--line); }
.map-cta {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-dark); color: #fff; padding: 10px 20px; border-radius: 2px; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.map a:hover .map-cta { background: var(--teal-darker); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--footer-bg); color: #fff; }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 44px var(--pad) 50px;
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 36px; font-size: 19px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #d9f2ef; }
.f-col::before { content: ""; display: block; width: 36px; height: 3px; background: #fff; margin-bottom: 22px; }
.f-title { font-weight: 400; font-size: 22px; margin-bottom: 22px; }
.f-title a { text-transform: uppercase; }
.f-social { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 14px 8px 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; }
.f-social:hover { background: rgba(255,255,255,.1); }
.f-copy { font-size: 17px; }

/* ---------- Popin photos ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
  background: rgba(15, 15, 15, .94); color: #fff;
}
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lb-figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 64px 72px 56px; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 15px; opacity: .85; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn .ico { width: 30px; height: 30px; stroke-width: 1.6; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 14px; }
}

@media (max-width: 900px) {
  :root { --header-h: 92px; }
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-zone {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(45, 45, 45, .96); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 18px;
  }
  .nav-zone.is-open { display: flex; }
  .main-nav ul { flex-direction: column; border: 0; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 16px; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); padding-left: 12px; background: none; }
  .lang { display: none; }
  .lang-mobile { display: flex; list-style: none; gap: 10px; margin-top: 16px; }
  .lang-mobile a { display: block; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; padding: 8px 14px; font-size: 15px; }
  .lang-mobile a:hover { color: #fff; background: rgba(255,255,255,.12); }
  .lang-mobile a[aria-current] { background: var(--teal-dark); border-color: var(--teal-dark); }

  .spacer { height: calc(var(--header-h) + 30px); }
  :root { --hero-h: max(320px, 62vh); }

  .gallery { columns: 2; column-gap: 8px; }
  .gallery li { margin-bottom: 8px; }

  .room-card { grid-template-columns: 1fr; }
  .brand-name { font-size: 24px; }
  .map img { height: 280px; object-fit: cover; }
  .room-card-body { padding: 22px 20px; }

  .viewer.has-thumbs { grid-template-columns: 1fr; }
  .thumbs { display: flex; flex-wrap: wrap; height: auto; min-height: 0; overflow: visible; }
  .thumb { width: 86px; }
  .price-box { padding: 14px 18px; }
  .price-big { font-size: 32px; }
  .spec { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .specs { margin-top: 16px; }

  .exc-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; font-size: 17px; }
}

@media (max-width: 900px) {
  /* Le panneau prend toute la largeur : pas de bande vide sur les côtés */
  .panel { padding-top: 26px; padding-bottom: 40px; }
}

@media (max-width: 520px) {
  .lb-figure { padding: 56px 8px 52px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; width: 44px; height: 44px; }
  .lb-count { bottom: 20px; }
  .amen-full, .spec-cols { grid-template-columns: 1fr; }
  .thumb { width: 64px; }
  .viewer-nav { width: 40px; height: 52px; }
  .promo { min-height: 200px; padding: 12px 16px; }
  .promo-kicker { font-size: 16px; }
  .map-cta { font-size: 14px; padding: 8px 14px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- V2 : e-mail masqué + WhatsApp ---------- */
.f-contact { margin-top: 6px; }
.f-link { display: inline-flex; align-items: center; gap: 8px; }
.contact-sub-gap { margin-top: 26px; }
.contact-mail { font-size: 20px; }
.contact-mail a { color: var(--text); display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.contact-mail a:hover { color: var(--teal-dark); }
.contact-wa-txt { margin-bottom: 12px; }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- V2 : logos Tripadvisor / Booking.com ---------- */
.f-brands { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; }
.f-brand { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 16px; background: #fff; border-radius: 6px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.site-footer .f-brand { color: #333; }
.site-footer .f-brand:hover { color: #333; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.f-brand:focus-visible { outline: 3px solid #d9f2ef; outline-offset: 3px; }
.f-brand { min-width: 168px; min-height: 56px; }
.f-brand img { display: block; width: auto; }
.f-brand .logo-ta { height: 28px; }
.f-brand .logo-bk { height: 22px; }
