:root {
  --blue: #0d63aa;
  --blue-dark: #094d84;
  --blue-soft: #f3f7fa;
  --text: #4e5964;
  --heading: #0d63aa;
  --white: #fff;
  --line: #d2e0ee;
  --shadow: 0 18px 50px rgba(13, 99, 170, .12);
  --radius: 8px;
  --max: 1240px;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Mulish", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.container-wide { width: min(1440px, calc(100% - 48px)); margin-inline: auto; }
.centered { text-align: center; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  color: var(--heading);
  font-family: "Dancing Script", cursive;
  line-height: 1.15;
}
h2 { font-size: clamp(2.3rem, 4.5vw, 3.35rem); font-weight: 600; }
h3 { font-size: 1.72rem; }
p { margin: 0 0 1.15em; }
.hero {
    position: relative;
    min-height: 100vh;
    color: #fff;
    background: #173345;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.48);

    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  color: #fff;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(13,99,170,.97); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.site-logo img 
{     
  width: 100%;
  height: auto;
  max-width: 350px; 
}

/* Logo plus petit après 30px de scroll */
#site-header.scrolled .site-logo img {
    max-width: 160px;
}

.menu-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 12px 0;
  color: #fff;
  background: transparent;
  font-weight: 700;
}
.menu-wave { font-size: 33px; line-height: .7; transform: rotate(90deg); display: inline-block; }
.header-book {
  justify-self: end;
  color: #fff;
  font-weight: 800;
  border-bottom: 2px solid rgba(255,255,255,.65);
  padding-bottom: 3px;
}

.menu-panel {
  position: fixed;
  z-index: 1200;
  inset: 0 auto 0 0;
  width: min(440px, 92vw);
  padding: 30px 34px 40px;
  background: #fff;
  transform: translateX(-102%);
  transition: transform .3s ease;
  box-shadow: 18px 0 60px rgba(0,0,0,.18);
  overflow-y: auto;
}
.menu-panel.open { transform: none; }
.menu-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.menu-panel-head img { width: 180px; }
.menu-close { border: 0; background: transparent; color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.menu-panel nav { display: grid; padding: 24px 0; }
.menu-panel nav a { padding: 10px 0; color: #25384a; font-size: 1.05rem; font-weight: 700; border-bottom: 1px solid #edf2f6; }
.menu-panel nav a:hover { color: var(--blue); padding-left: 6px; }
.menu-reserve { width: 100%; text-align: center; }
.menu-backdrop { position: fixed; z-index: 1100; inset: 0; background: rgba(2,17,29,.58); }

.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  background: url("../assets/uploads/photo_illustration_location_voiture.png") center/cover no-repeat;
  overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.48); }
.hero-content { position: relative; z-index: 1; min-height: 100vh; padding: 150px 5% 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.rating-pill { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 10px; padding: 8px 13px; border-radius: 99px; background: rgba(0,0,0,.25); backdrop-filter: blur(6px); font-size: .9rem; }
.hero h1 { color: #fff; font-size: clamp(3.2rem, 8vw, 5.5rem); font-weight: 700; margin-bottom: 15px; text-shadow: 0 3px 20px rgba(0,0,0,.3); }
.hero-subtitle { margin: -10px 0 28px; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; }

.booking-card {
     max-width: 800px;
    width: 100%;
  margin-top: 8px;
  overflow: hidden;
  color: #203243;
  background: rgba(255,255,255,.98);
  border-radius: 10px;
  box-shadow: 0 24px 75px rgba(0,0,0,.28);
  text-align: left;
}
.booking-card-heading { padding: 16px 24px; background: var(--blue); }
.booking-card-heading h2 { margin: 0; color: #fff; font-family: "Mulish", Arial, sans-serif; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 800; text-align: center; }
.booking-form { padding: 22px 24px 24px; }
.booking-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-bottom: 15px; }
.booking-grid-four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.field { display: grid; gap: 7px; }
.field span { color: #243848; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; color: #203243; background: #fff; border: 1px solid #ccd9e3; border-radius: 5px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,99,170,.12); }
.transmission { display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 11px 0 3px; border: 0; }
.transmission legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.transmission label { font-size: .92rem; font-weight: 600; }
.transmission input { accent-color: var(--blue); }
.booking-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; }
.booking-footer p { margin: 0; font-size: .82rem; color: #6b7782; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 1px solid transparent; border-radius: 4px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-light { color: var(--blue); background: #fff; }
.button-outline { color: var(--blue); background: #fff; border-color: var(--blue); }
.text-button { display: inline-flex; gap: 10px; align-items: center; padding: 10px 0 5px; border-bottom: 2px solid var(--blue); color: var(--blue); font-weight: 800; }

.section { position: relative; padding: 86px 0; }
.section-title { margin-bottom: 30px; }
.section-title.light { color: #fff; }
.section-intro { max-width: 760px; margin: 0 auto 45px; text-align: center; }
.motif::before { content: ""; position: absolute; width: 260px; height: 260px; background: url("../assets/uploads/Motif-2.svg") center/contain no-repeat; opacity: .75; pointer-events: none; }
.motif-right::before { right: -70px; bottom: -40px; }
.motif-left::before { left: 3%; bottom: 6%; background-image: url("../assets/uploads/Motif-1.svg"); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 90px); }
.split-image-left > :first-child { order: 0; }
.copy-block { position: relative; z-index: 2; }
.copy-block p { font-size: 1.02rem; }
.image-card img, .image-stack img { width: 100%; border-radius: 4px; object-fit: cover; box-shadow: var(--shadow); }
.image-card-offset { width: 78%; justify-self: start; }

.photo-break { min-height: 450px; margin-top: -48px; background: url("../assets/uploads/location-appartement-vacances-martinique.webp") center/cover fixed no-repeat; }
.section-blue { padding-bottom: 44px; background: var(--blue); }
.copy-light { color: rgba(255,255,255,.94); }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }

.stay-cards { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: linear-gradient(to bottom,var(--blue) 50%,#fff 50%); }
.stay-card { min-height: 320px; display: grid; place-items: center; color: #fff; background-position: center; background-size: cover; position: relative; isolation: isolate; overflow: hidden; transition: transform .3s ease; }
.stay-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.5); transition: background .3s ease; }
.stay-card:hover { transform: scale(1.025); }
.stay-card:hover::before { background: rgba(0,0,0,.16); }
.stay-card span { color: #fff; font-family: "Dancing Script", cursive; font-size: clamp(2.7rem,5vw,4.3rem); font-weight: 700; text-shadow: 0 3px 12px rgba(0,0,0,.35); }
.stay-card.studios { background-image: url("../assets/uploads/1000031647-e1753718229732.jpg"); }
.stay-card.f2 { background-image: url("../assets/uploads/1000031633-e1753718180318.jpg"); }

.beach { overflow: hidden; }
.image-stack { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 18px; }
.image-stack img:first-child { transform: translateY(-24px); }
.image-stack img:last-child { transform: translateY(24px); }
.north { overflow: hidden; background: linear-gradient(to bottom, rgba(13,99,170,.05) 90%, #fff 90%); }
.image-stack-reverse img:first-child { transform: translateY(24px); }
.image-stack-reverse img:last-child { transform: translateY(-24px); }

.services { padding-top: 60px; background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.service-card { padding: 26px 18px; text-align: center; }
.service-card img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 16px; }
.service-card h3 { font-family: "Mulish", Arial, sans-serif; color: var(--blue); font-size: 1.05rem; font-weight: 800; line-height: 1.35; }
.service-card p { margin: 0; font-size: .9rem; }

.gallery-shell { position: relative; margin-top: 45px; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100vw - 100px) / 5); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 50px 16px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { min-width: 0; padding: 0; border: 0; background: transparent; scroll-snap-align: center; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 5px; box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.gallery-nav { position: absolute; z-index: 3; top: 50%; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--blue); background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.18); transform: translateY(-50%); font-size: 30px; line-height: 1; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.dive-cta { color: #fff; background: var(--blue); }
.dive-layout { min-height: 390px; display: flex; align-items: center; background: linear-gradient(90deg,var(--blue) 0%,rgba(13,99,170,.9) 46%,rgba(13,99,170,.25) 75%,rgba(13,99,170,0) 100%), url("../assets/uploads/IMG_9122-copie.jpg") right center/55% auto no-repeat; width: 100%; }
.dive-layout > div { width: 52%; padding: 60px 0; }
.dive-cta h2 { color: #fff; }

.reviews { background: #fff; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin: 35px 0; }
.review-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid #e5edf3; border-radius: 8px; box-shadow: 0 10px 30px rgba(26,66,99,.08); }
.review-card p { flex: 1; }
.review-card strong { color: #263b4d; }
.review-card span { font-size: .8rem; color: #89939d; }
.review-stars { color: #f4b400; letter-spacing: 2px; margin-bottom: 10px; }

.advantages { padding: 42px 0; background: var(--blue-soft); }
.advantages-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 25px; }
.advantage-card { text-align: center; padding: 15px; }
.advantage-card img { width: 74px; height: 74px; object-fit: contain; margin: 0 auto 18px; }
.advantage-card h3 { font-family: "Mulish", Arial, sans-serif; font-size: 1.05rem; font-weight: 800; line-height: 1.35; }
.advantage-card p { margin: 0; font-size: .9rem; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 60px; padding: 62px 0 45px; }
.footer-brand > img { width: 200px; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; }
.footer-grid h2 { font-family: "Mulish", Arial, sans-serif; font-size: 1.05rem; font-weight: 800; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: #566574; }
.footer-links a:hover { color: var(--blue); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 800; }
.newsletter .button { margin-top: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 26px; border-top: 1px solid var(--line); font-size: .88rem; }
.footer-bottom p { margin: 0; }

.lightbox { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox img { max-height: 88vh; width: 100%; object-fit: contain; }
.lightbox-close { position: fixed; top: 18px; right: 22px; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #111; background: #fff; font-size: 30px; line-height: 1; }

@media (max-width: 1100px) {
  .booking-grid-four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .services-grid, .advantages-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-track { grid-auto-columns: calc((100vw - 80px) / 3); }
  .image-card-offset { width: 88%; }
}

@media (max-width: 760px) {
  .container, .container-wide { width: min(100% - 30px, var(--max)); }
  .header-inner { min-height: 76px; grid-template-columns: auto 1fr auto; gap: 10px; }
  .site-logo { justify-self: center; }
  .site-logo img { width: 135px; }
  .menu-button span:last-child { display: none; }
  .header-book { font-size: .75rem; white-space: nowrap; }
  .hero-content { padding: 120px 0 60px; justify-content: flex-start; }
  .hero h1 { margin-top: 12px; }
  .hero-subtitle { margin-bottom: 20px; }
  .booking-form, .booking-card-heading { padding-left: 15px; padding-right: 15px; }
  .booking-grid, .booking-grid-four { grid-template-columns: 1fr; gap: 12px; }
  .booking-footer { align-items: stretch; flex-direction: column; }
  .booking-footer .button { width: 100%; }
  .section { padding: 62px 0; }
  .split, .two-columns { grid-template-columns: 1fr; gap: 34px; }
  .split-image-left > :first-child { order: 2; }
  .image-card-offset { width: 100%; }
  .photo-break { min-height: 280px; margin-top: 0; background-attachment: scroll; }
  .stay-cards { grid-template-columns: 1fr; }
  .stay-card { min-height: 240px; }
  .image-stack { gap: 10px; }
  .services-grid, .advantages-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .service-card, .advantage-card { padding: 18px 8px; }
  .gallery-track { grid-auto-columns: calc((100vw - 60px) / 2); gap: 12px; padding-inline: 30px; }
  .gallery-nav { display: none; }
  .dive-layout { background: linear-gradient(rgba(13,99,170,.84),rgba(13,99,170,.92)), url("../assets/uploads/IMG_9122-copie.jpg") center/cover no-repeat; }
  .dive-layout > div { width: 100%; padding: 55px 0; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 45px; }
  .footer-brand > img { margin-inline: auto; }
  .footer-brand, .footer-grid > div { text-align: center; }
  .socials { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .motif::before { width: 150px; height: 150px; opacity: .4; }
}

@media (max-width: 430px) {
  body { font-size: 15px; }
  .header-book { max-width: 105px; text-align: right; line-height: 1.2; }
  .rating-pill { font-size: .75rem; }
  .hero h1 { font-size: 3.6rem; }
  .services-grid, .advantages-grid { grid-template-columns: 1fr 1fr; }
  .service-card img, .advantage-card img { width: 58px; height: 58px; }
  .gallery-track { grid-auto-columns: 72vw; }
}
