/*!
 * Mas de la Carrade — feuille de style
 * Refonte 2026 : remplace Bootstrap/jQuery/Font Awesome par un CSS maison.
 */

/* ---------- Design tokens ---------- */
:root {
  /* Prototype (branche design-prototype-riviera) : accent unique bleu Cavalaire (plus de terracotta) */
  --color-primary: #1f5c63;
  --color-primary-dark: #163f44;
  --color-primary-light: #4d8b91;
  --color-highlight: #f1e4c9;
  --color-sand: #f7f3ea;
  --color-sand-dark: #efe6d3;
  --color-ink: #2a2620;
  --color-muted: #6b6459;
  --color-white: #ffffff;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display-alt: "Yeseva One", "Georgia", serif;
  --font-body-alt: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(42, 38, 32, 0.08);
  --shadow-md: 0 12px 32px rgba(42, 38, 32, 0.14);
  --shadow-lg: 0 24px 60px rgba(42, 38, 32, 0.22);

  --container-width: 1200px;
  --section-padding: clamp(3.5rem, 7vw, 6.5rem);
  --navbar-height: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-sand);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: inherit;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

button {
  font-family: inherit;
  cursor: pointer;
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-white);
  color: var(--color-ink);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding) 0;
}

.section--sand { background: var(--color-sand); color: var(--color-ink); }
.section--white { background: var(--color-white); color: var(--color-ink); }
.section--accent {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
}
#PLAGES .section-title { font-family: var(--font-display-alt); font-weight: 400; }

.section-header {
  max-width: 720px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}
.section--accent .kicker { color: var(--color-sand); opacity: 0.85; }

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--color-muted);
}
.section--accent .section-lead { color: rgba(247, 243, 234, 0.85); }

.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
}
.prose p + p { margin-top: 1.1em; }

.text-center { text-align: center; }

.grid {
  display: grid;
  gap: 2rem;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }

.btn--light {
  background: var(--color-white);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}
.btn--light:hover { box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn--sm { padding: 0.65rem 1.3rem; font-size: 0.92rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 500;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.navbar.is-scrolled {
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}
.navbar:not(.is-scrolled) .navbar__brand { color: var(--color-white); }

.navbar__brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-right: 0.5rem;
}

.navbar__link {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--color-ink);
  position: relative;
  padding: 0.3rem 0;
}
.navbar:not(.is-scrolled) .navbar__link { color: var(--color-white); }

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}
.navbar__link:hover::after { width: 100%; }

.navbar__actions { display: flex; align-items: center; gap: 1rem; }

.navbar__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-ink);
}
.navbar:not(.is-scrolled) .navbar__toggle { color: var(--color-white); }
.navbar__toggle svg { width: 26px; height: 26px; }
.navbar__toggle .icon-close { display: none; }
.navbar__toggle.is-active .icon-menu { display: none; }
.navbar__toggle.is-active .icon-close { display: block; }

@media (max-width: 860px) {
  .navbar__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--color-sand);
    color: var(--color-ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--navbar-height) + 1rem) 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow-lg);
  }
  .navbar__links.is-open { transform: translateX(0); }
  .navbar__link { color: var(--color-ink) !important; width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--color-sand-dark); }
  .navbar__actions .btn--nav-cta { display: none; }
  .navbar__toggle { display: inline-flex; }
}

.navbar__scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 38, 32, 0.4);
  z-index: 490;
}
.navbar__scrim.is-visible { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  background-image: url("assets/site_LCV/E01_plage_ponton.jpg");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 92, 99, 0.28) 0%, rgba(42, 38, 32, 0.4) 45%, rgba(42, 38, 32, 0.84) 100%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem clamp(3rem, 8vh, 5.5rem);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(247, 243, 234, 0.16);
  border: 1px solid rgba(247, 243, 234, 0.35);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display-alt);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  line-height: 1.08;
  max-width: 16ch;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 24px rgba(22, 20, 17, 0.35);
}

.hero__subtitle {
  font-family: var(--font-body-alt);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 52ch;
  color: rgba(247, 243, 234, 0.92);
  margin-bottom: 2rem;
}

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

.hero__scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  opacity: 0.85;
  animation: bounce 2.2s infinite;
}
.hero__scroll-cue svg { width: 28px; height: 28px; }

/* Signature prototype : ligne de côte dessinée au chargement */
.hero__coastline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(40px, 6vw, 70px);
  z-index: 1;
}
.hero__coastline path {
  fill: none;
  stroke: var(--color-sand);
  stroke-width: 2.5;
  opacity: 0.65;
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  transition: stroke-dashoffset 2.2s ease 0.3s;
}
.hero__coastline.is-drawn path { stroke-dashoffset: 0; }

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-top: calc(-1 * clamp(2.5rem, 6vw, 4rem));
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0; }

/* ---------- Feature cards (Points clés / Equipements / Commodités) ---------- */
.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.feature-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--color-ink);
}

.feature-card p {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.section--accent .feature-card p { color: var(--color-muted); }

/* Simple info cards on dark backgrounds (Transport) */
.info-card {
  background: rgba(247, 243, 234, 0.08);
  border: 1px solid rgba(247, 243, 234, 0.18);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.info-card__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  color: var(--color-sand);
}
.info-card h3 { font-size: 1.15rem; color: var(--color-white); }
.info-card p { color: rgba(247, 243, 234, 0.82); }

/* Equipment lists */
.equip-list dt {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.equip-list dd {
  margin: 0 0 1.6rem;
  color: var(--color-muted);
  line-height: 1.7;
}
.equip-list dd:last-child { margin-bottom: 0; }

/* ---------- Gallery + Lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.9rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery__item--feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover .gallery__img { transform: scale(1.06); }

.gallery__more {
  position: absolute;
  inset: 0;
  background: rgba(42, 38, 32, 0.55);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery__item--feature { grid-column: span 2; aspect-ratio: 4/3; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 15, 0.94);
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }

.lightbox__figure {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox__caption {
  color: var(--color-sand);
  text-align: center;
  font-size: 0.98rem;
}
.lightbox__counter { color: rgba(247, 243, 234, 0.6); font-size: 0.85rem; margin-top: 0.25rem; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(247, 243, 234, 0.12);
  border: 1px solid rgba(247, 243, 234, 0.3);
  color: var(--color-white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(247, 243, 234, 0.25); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }

.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox__nav--prev { left: 0.4rem; }
  .lightbox__nav--next { right: 0.4rem; }
  .lightbox__close { top: 0.8rem; right: 0.8rem; }
}

/* ---------- Content rows (Les Plages) ---------- */
.beach-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0;
}
.beach-row:not(:last-child) { border-bottom: 1px solid rgba(247, 243, 234, 0.18); }
.beach-row--reverse { grid-template-columns: 340px 1fr; }
.beach-row--reverse .beach-row__media { order: -1; }

.beach-row__media img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.beach-row h3 { font-family: var(--font-display-alt); font-weight: 400; font-size: 1.5rem; color: var(--color-white); }
.beach-row p { font-family: var(--font-body-alt); color: rgba(247, 243, 234, 0.85); }

@media (max-width: 820px) {
  .beach-row, .beach-row--reverse {
    grid-template-columns: 1fr;
  }
  .beach-row--reverse .beach-row__media { order: 0; }
  .beach-row__media img { max-width: 340px; margin: 0 auto; }
}

/* Signature prototype : rail illustré + marqueurs le long des plages (ordre géographique réel) */
.coastline-track { position: relative; }

.coastline-track__rail {
  position: absolute;
  left: -56px;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
}
.coastline-track__svg { width: 100%; height: 100%; overflow: visible; }
.coastline-track__svg path {
  fill: none;
  stroke: var(--color-sand);
  stroke-width: 2.5;
  opacity: 0.5;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 1.8s ease;
}
.coastline-track__rail.is-drawn .coastline-track__svg path { stroke-dashoffset: 0; }

.coastline-track__marker {
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(247, 243, 234, 0.45);
  transform: translate(-50%, -50%) scale(1);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.coastline-track__marker.is-active {
  background: var(--color-highlight);
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 0 5px rgba(241, 228, 201, 0.3);
}

@media (max-width: 900px) {
  .coastline-track__rail { display: none; }
}

/* ---------- Form ---------- */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 4vw, 3rem);
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.form-grid .field { margin-top: 0; }

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-muted);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-sand-dark);
  border-radius: var(--radius-sm);
  background: var(--color-sand);
  color: var(--color-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(178, 93, 61, 0.18);
}

.field-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---------- Availability / Map ---------- */
.availability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.availability__text { max-width: 480px; }
.availability img { width: 160px; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(247, 243, 234, 0.85);
  padding: var(--section-padding) 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247, 243, 234, 0.15);
}
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr; text-align: left; }
}
.footer__logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; }
.footer h3 { color: var(--color-white); font-size: 1.05rem; }
.footer__contact-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.footer__contact-line svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer a:hover { text-decoration: underline; }
.footer__bottom { text-align: center; padding-top: 1.5rem; font-size: 0.88rem; color: rgba(247, 243, 234, 0.6); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-cue { animation: none; }
}

/* ---------- Notice box ---------- */
.notice {
  display: inline-flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--color-sand-dark);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 2rem auto 0;
  text-align: left;
}
.notice svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-primary); margin-top: 2px; }
