/* =========================================================
   Soleil Bleu Carnon — Feuille de style
   Palette : bleu Méditerranée, sable, soleil
   ========================================================= */

:root {
  --sea:        #0a7ea4;
  --sea-deep:   #075a76;
  --sky:        #4fb3d1;
  --sand:       #f4ead7;
  --sand-soft:  #faf4ea;
  --majorelle:  #2d23ab;  /* bleu Majorelle profond */
  --sun:        #f2a93b;   /* touches de jaune soleil chaud */
  --ink:        #1f2d34;
  --ink-soft:   #506069;
  --white:      #ffffff;
  --shadow:     0 18px 40px -18px rgba(10, 60, 80, .35);
  --radius:     18px;
  --maxw:       1120px;
  --ease:       cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 .6rem; }
h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
a { color: var(--sea); text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: italic; color: var(--sea-deep); }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--ink-soft); font-size: .92rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--sun);
  margin: 0 0 .5rem;
}
.eyebrow.center { display: block; }
.section-lead { color: var(--ink-soft); margin-bottom: 2.5rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sea); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--sea-deep); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
.section .btn-ghost { color: var(--sea); border-color: var(--sea); background: transparent; }
.section .btn-ghost:hover { background: var(--sea); color:#fff; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(10,60,80,.08);
  transition: background .3s;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  width: min(var(--maxw), 92%); margin-inline: auto;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5a4de0, var(--majorelle));
  color: #fff; font-size: 1.2rem;
  box-shadow: 0 6px 14px -4px rgba(45,35,171,.6);
}
.brand-text { font-family: "Fraunces", serif; font-size: 1.15rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-family: "Inter"; font-weight: 500; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--sun); transition: width .25s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--sun); color: #fff !important; padding: .5rem 1.1rem; border-radius: 999px; }
.nav-cta:hover { background: #e07b1a; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: grid; align-items: center; overflow: hidden; color: #fff; }
.hero-img {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--sea) 0%, var(--sky) 55%, var(--sun) 130%);
  background-size: cover; background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,40,55,.25), rgba(7,40,55,.55)); }
.hero-content { position: relative; width: min(var(--maxw), 92%); margin-inline: auto; padding: 3rem 0; }
.hero-kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 600; opacity: .95; }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); margin: .2rem 0; text-shadow: 0 4px 30px rgba(0,0,0,.3); }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.4rem); max-width: 36ch; opacity: .96; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.4rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.8rem; list-style: none; padding: 0; margin: 0; }
.hero-facts li { font-size: .9rem; opacity: .95; }
.hero-facts strong { display: block; font-family: "Fraunces", serif; font-size: 1.7rem; }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 1.6rem; animation: bob 2s infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--sand-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* Emplacements photo */
.ph, .hero-img[data-loaded], .g-item {
  background-size: cover; background-position: center;
}
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4;            /* portrait, pour afficher vos photos en entier */
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--sky), var(--sea-deep));
}
.ph::after, .g-item:not([data-loaded])::after {
  content: "📷 Photo à venir"; position: absolute; inset: 0;
  display: grid; place-items: center; color: rgba(255,255,255,.85);
  font-size: .85rem; letter-spacing: .05em;
}
.ph[data-loaded]::after, .g-item[data-loaded]::after { content: none; }

/* Image affichée en entier (aucun recadrage) */
.ph-img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.cta-photo .ph-img { max-width: 360px; margin-inline: auto; }

/* ---------- Points forts ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: 0 10px 30px -20px rgba(10,60,80,.4); border: 1px solid rgba(10,60,80,.06); }
.feature-ico { font-size: 2rem; display: block; margin-bottom: .6rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-item {
  border: 0; padding: 0; cursor: pointer; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--sky), var(--sun));
  background-size: cover; background-position: center;
  aspect-ratio: 3 / 4;            /* cases portrait, adaptées à vos photos */
  position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.g-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* ---------- Équipements ---------- */
.amenities {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .8rem 1.4rem; list-style: none; padding: 0; margin: 0 0 1.5rem;
  max-width: 820px; margin-inline: auto;
}
.amenities li { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; background: #fff; border-radius: 12px; border: 1px solid rgba(10,60,80,.08); font-weight: 500; }
.amenities span { font-size: 1.25rem; }

/* ---------- Lieu ---------- */
.place-list { list-style: none; padding: 0; margin: 0; }
.place-list li { padding: .55rem 0; border-bottom: 1px dashed rgba(10,60,80,.15); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- Avis ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review { background: #fff; border-radius: var(--radius); padding: 1.6rem; margin: 0; box-shadow: 0 10px 30px -20px rgba(10,60,80,.4); }
.stars { color: var(--sun); letter-spacing: 2px; margin-bottom: .6rem; }
.review blockquote { margin: 0 0 .8rem; font-size: 1rem; }
.review figcaption { color: var(--ink-soft); font-size: .88rem; font-weight: 500; }

/* ---------- Votre hôte ---------- */
.host-card {
  display: flex; align-items: center; gap: 1.2rem; margin: 0;
  background: #fff; border-radius: var(--radius); padding: 1.8rem;
  box-shadow: 0 10px 30px -20px rgba(10,60,80,.4); border: 1px solid rgba(10,60,80,.06);
}
.host-avatar {
  flex: none; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-family: "Fraunces", serif; font-size: 2.2rem;
  background: radial-gradient(circle at 30% 30%, var(--sky), var(--sea-deep));
  box-shadow: 0 8px 18px -6px rgba(10,126,164,.6);
}
.host-card figcaption strong { font-size: 1.2rem; font-family: "Fraunces", serif; }
.host-card figcaption p { margin: .15rem 0 0; font-size: .88rem; }
.host-badge {
  display: inline-block; margin-left: .5rem; padding: .15rem .6rem;
  background: var(--sun); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 600;
  vertical-align: middle;
}
.host-quote {
  font-family: "Fraunces", serif; font-size: 1.15rem; line-height: 1.5;
  border-left: 3px solid var(--sun); padding-left: 1.1rem; margin: 0 0 1rem; color: var(--ink);
}
.house-rules {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.5rem;
}
.rule {
  display: flex; align-items: center; gap: .8rem;
  background: #fff; border-radius: 14px; padding: 1rem 1.2rem;
  border: 1px solid rgba(10,60,80,.08); font-size: .92rem;
}
.rule span { font-size: 1.6rem; }

/* ---------- CTA ---------- */
.cta-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem,5vw,3.5rem); align-items: center;
  background: linear-gradient(135deg, var(--sea), var(--sea-deep)); color: #fff;
  border-radius: 26px; padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow);
}
.cta-card .eyebrow { color: #ffd79a; }
.cta-card h2 { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0; }
.cta-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,.18); }
.contact-line { margin: .5rem 0 0; opacity: .95; }
.contact-line a { color: #ffe1b3; }
.cta-photo .ph { max-width: 360px; margin-inline: auto; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #cdd8dd; padding: 3rem 0; text-align: center; }
.footer-inner { display: grid; gap: .6rem; place-items: center; }
.brand-footer { color: #fff; }
.brand-footer .brand-text small { color: #9fb2ba; }
.footer-meta { font-size: .82rem; color: #8499a1; margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(8,22,30,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-stage { width: min(90vw, 1100px); height: 80vh; }
.lb-img { width: 100%; height: 100%; background-size: contain; background-position: center; background-repeat: no-repeat; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Animations au défilement ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 1.2rem; gap: 1rem; box-shadow: var(--shadow);
    clip-path: inset(0 0 100% 0); transition: clip-path .3s var(--ease);
  }
  .nav-links.open { clip-path: inset(0 0 0 0); }
  .grid-2, .cta-card { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .house-rules { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .house-rules { grid-template-columns: 1fr; }
  .host-card { flex-direction: column; text-align: center; }
  .hero-facts { gap: 1.2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
