@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --kerzu-onyx: #0e1116;
  --kerzu-ash: #1d2430;
  --kerzu-cream: #f8f5ef;
  --kerzu-gold: #c7a16a;
  --kerzu-sand: #e3d8c3;
  --kerzu-slate: #3a4658;
  --kerzu-soft: #f2ede5;
  --kerzu-muted: #cfd6e1;
  --kerzu-radius: 20px;
  --kerzu-shadow: 0 24px 60px rgba(14, 17, 22, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--kerzu-ash);
  background: radial-gradient(circle at 20% 20%, #ffffff 0%, #f2ede5 25%, #f2ede5 60%, #e9dfcf 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1.1rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", "Times New Roman", serif;
  margin: 0 0 0.6rem;
  color: var(--kerzu-onyx);
  letter-spacing: -0.01em;
}

.kerzu-shell {
  max-width: 1200px;
  padding: 0 24px;
  margin: 0 auto;
}

.kerzu-grid {
  display: grid;
  gap: 28px;
}

.kerzu-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(199, 161, 106, 0.12);
  color: var(--kerzu-ash);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--kerzu-gold), #b88953);
  color: #0e1116;
  box-shadow: var(--kerzu-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  border: 1px solid rgba(30, 34, 40, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--kerzu-ash);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--kerzu-gold);
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(248, 245, 239, 0.8);
  border-bottom: 1px solid rgba(14, 17, 22, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--kerzu-onyx);
}

.brand .logo-dot {
  width: 12px;
  height: 12px;
  background: var(--kerzu-gold);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--kerzu-slate);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--kerzu-onyx);
  background: rgba(199, 161, 106, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero {
  padding: 80px 0 40px;
}

.hero-card {
  background: linear-gradient(140deg, rgba(14, 17, 22, 0.88), rgba(29, 36, 48, 0.82));
  color: #fff;
  padding: 38px;
  border-radius: var(--kerzu-radius);
  min-height: 420px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--kerzu-shadow);
}

.hero-card .glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 16px 18px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: #fff;
  line-height: 1.15;
}

.hero p {
  color: #e8ecf3;
  font-size: 1.05rem;
  max-width: 720px;
}

.floating-badge {
  position: absolute;
  top: 32px;
  right: 32px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card {
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  padding: 26px;
  border-radius: var(--kerzu-radius);
  border: 1px solid rgba(14, 17, 22, 0.05);
  box-shadow: var(--kerzu-shadow);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.section {
  padding: 70px 0;
}

.section-header {
  margin-bottom: 32px;
  display: grid;
  gap: 6px;
}

.section-header span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--kerzu-slate);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.feature {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(14, 17, 22, 0.05);
  background: #fff;
  box-shadow: 0 18px 36px rgba(14, 17, 22, 0.08);
}

.feature strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.photo-placeholder {
  width: 100%;
  padding-top: 62%;
  border-radius: 18px;
  background: repeating-linear-gradient(
      -45deg,
      rgba(14, 17, 22, 0.06),
      rgba(14, 17, 22, 0.06) 12px,
      rgba(14, 17, 22, 0.08) 12px,
      rgba(14, 17, 22, 0.08) 24px
    ),
    #f5f1e9;
  border: 1px dashed rgba(14, 17, 22, 0.18);
  position: relative;
}

.photo-placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--kerzu-ash);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  align-items: center;
}

.accent-panel {
  background: linear-gradient(160deg, #fff, #f6f1e8);
  border: 1px solid rgba(14, 17, 22, 0.06);
  padding: 22px;
  border-radius: 18px;
}

.two-column {
  columns: 2;
  column-gap: 18px;
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(199, 161, 106, 0.14);
  color: var(--kerzu-ash);
  font-weight: 600;
}

.info-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(199, 161, 106, 0.14);
  color: var(--kerzu-ash);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 10px;
}

.note-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(14, 17, 22, 0.08);
  background: linear-gradient(160deg, #fff, #f5f1e9);
  box-shadow: 0 20px 48px rgba(14, 17, 22, 0.06);
}

.callout {
  background: #0e1116;
  color: #fff;
  padding: 32px;
  border-radius: 20px;
  display: grid;
  gap: 12px;
  box-shadow: var(--kerzu-shadow);
}

.callout p {
  color: #e8ecf3;
}

.calendar-embed {
  display: grid;
  gap: 14px;
}

.reservation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.legend-low {
  background: linear-gradient(120deg, #6fbf73, #4e9e57);
}

.legend-mid {
  background: linear-gradient(120deg, #f2a65a, #d8893c);
}

.legend-high {
  background: linear-gradient(120deg, #e86f6f, #d45555);
}

.legend-locked {
  background: linear-gradient(120deg, #9aa3b8, #6f7890);
}

.booking-rules {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
  color: #525c70;
}

.booking-rules li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
}

.booking-rules li::before {
  content: "•";
  color: var(--kerzu-gold);
  font-weight: 700;
}

.media-carousel {
  background: #ffffffcc;
  border: 1px solid rgba(14, 17, 22, 0.06);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--kerzu-shadow);
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 0;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: center;
  padding: 8px;
}

.carousel-visual {
  min-height: 260px;
  border-radius: 16px;
  background: linear-gradient(140deg, #d2e7ff, #b0c4de);
  box-shadow: 0 20px 46px rgba(14, 17, 22, 0.18);
}

.carousel-visual.alt {
  background: linear-gradient(140deg, #ffe6d3, #ffcf9f);
}

.carousel-visual.third {
  background: linear-gradient(140deg, #e5def7, #c7bae6);
}

.carousel-copy h3 {
  margin-bottom: 6px;
}

.carousel-copy .tagline {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--kerzu-slate);
}

.carousel-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
}

.reviews-score {
  background: linear-gradient(150deg, #0e1116, #1e2431);
  color: #fff;
}

.reviews-score .section-header span,
.reviews-score .section-header h2,
.reviews-score p {
  color: #fff;
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.rating-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.rating-stars span {
  color: #f5d26b;
  font-size: 1.4rem;
}

.review-card {
  background: #fff;
}

.reviewer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.footer {
  padding: 60px 0 48px;
  border-top: 1px solid rgba(14, 17, 22, 0.08);
  background: rgba(14, 17, 22, 0.03);
}

.footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.footer h4 {
  margin-bottom: 10px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.meta {
  color: #556074;
  font-size: 0.95rem;
}

.cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.timeline {
  display: grid;
  gap: 18px;
  border-left: 2px solid rgba(14, 17, 22, 0.08);
  padding-left: 16px;
}

.timeline-item {
  position: relative;
  padding-left: 10px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--kerzu-gold);
  box-shadow: 0 6px 18px rgba(199, 161, 106, 0.5);
}

.collection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.collection .card {
  height: 100%;
}

.wave {
  position: relative;
  overflow: hidden;
}

.wave::after {
  content: "";
  position: absolute;
  inset: auto 0 -160px;
  height: 320px;
  background: radial-gradient(circle at 50% 0%, rgba(199, 161, 106, 0.28), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.contact-placeholder {
  border: 1px dashed rgba(14, 17, 22, 0.16);
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 10px;
  text-align: center;
}

.contact-placeholder strong {
  font-size: 1.1rem;
}

.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.rooms .tagline {
  color: var(--kerzu-slate);
  font-weight: 600;
}

.surface {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: var(--kerzu-ash);
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    background: rgba(248, 245, 239, 0.96);
    flex-direction: column;
    padding: 90px 24px 24px;
    width: 68%;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.is-open {
    transform: translateX(0);
    box-shadow: -12px 0 32px rgba(14, 17, 22, 0.12);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .hero-card {
    padding: 26px;
  }

  .two-column {
    columns: 1;
  }

  .carousel-slide {
    grid-template-columns: 1fr;
  }
}


/* Home page media blocks */
.hero-card {
  position: relative;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transform: scale(1.03);
  filter: saturate(1.05);
  z-index: 0;
}

.hero-card > *:not(.hero-media) {
  position: relative;
  z-index: 1;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.hero-meta li {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 920px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: #fff;
  border-radius: var(--kerzu-radius);
  padding: 18px 18px 20px;
  box-shadow: var(--kerzu-shadow-soft);
  border: 1px solid rgba(14, 17, 22, 0.08);
}

.feature-media {
  width: 100%;
  padding-top: 62%;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.section-alt {
  background: #f7f3ea;
}

.islands-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 920px) {
  .islands-grid {
    grid-template-columns: 1fr;
  }
}

.island {
  background: #fff;
  border-radius: var(--kerzu-radius);
  padding: 18px 18px 20px;
  box-shadow: var(--kerzu-shadow-soft);
  border: 1px solid rgba(14, 17, 22, 0.08);
}

.island-map {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(14, 17, 22, 0.10);
  background: #fff;
  padding: 10px;
  margin-bottom: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(14, 17, 22, 0.08);
  box-shadow: var(--kerzu-shadow-soft);
  background: #fff;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.gallery-grid .gallery-item:nth-child(1) { grid-column: span 6; }
.gallery-grid .gallery-item:nth-child(2) { grid-column: span 6; }
.gallery-grid .gallery-item:nth-child(3) { grid-column: span 4; }
.gallery-grid .gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-grid .gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-grid .gallery-item:nth-child(6) { grid-column: span 12; }

@media (max-width: 920px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid .gallery-item {
    grid-column: auto !important;
  }
  .gallery-item img {
    aspect-ratio: 16 / 9;
  }
}

.gallery-cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
/* --- CALENDRIER & RÉSERVATION --- */
.calendar-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}
.cal-day-name {
    font-weight: 700;
    color: var(--kerzu-slate);
    padding-bottom: 10px;
}
.cal-date {
    padding: 12px 0;
    cursor: pointer;
    border-radius: 14px;
    transition: 0.2s;
    position: relative;
    border: 1px solid rgba(14, 17, 22, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    aspect-ratio: 1 / 1;
    flex-direction: column;
}
.cal-date .cal-number { display: block; }
.cal-date .tariff-dot { display: block; width: 22px; height: 6px; border-radius: 999px; margin-top: 4px; }
.cal-date .tariff-low { background: #6fbf73; }
.cal-date .tariff-mid { background: #f2a65a; }
.cal-date .tariff-high { background: #e86f6f; }
.cal-date.season-low { background: #e9f5eb; color: #0a2f19; }
.cal-date.season-mid { background: #fff0de; color: #7a4100; }
.cal-date.season-high { background: #ffe6e6; color: #5c0b0b; }
.cal-date:hover:not(.empty):not(.is-past):not(.is-locked) { box-shadow: 0 0 0 3px rgba(182, 146, 94, 0.25); }
.cal-date.selected { background: var(--kerzu-onyx); color: #fff; border-color: var(--kerzu-onyx); }
.cal-date.in-range { box-shadow: inset 0 0 0 3px rgba(14, 17, 22, 0.08); }
.cal-date.empty { cursor: default; background: transparent; border: none; }
.cal-date.is-locked { cursor: not-allowed; opacity: 0.65; background: #d8dbe1; color: #4b5563; border-color: #c7ccd4; }
.cal-date.is-locked .tariff-dot { background: #6b7280; }
.cal-date.is-past { cursor: not-allowed; opacity: 0.35; }

.booking-summary {
    background: var(--kerzu-onyx);
    color: #fff;
    padding: 25px;
    border-radius: 16px;
    margin-top: 30px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}
.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    margin-top: 10px;
    color: var(--kerzu-gold);
}

/* --- PAGE GESTION --- */
.dashboard-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}
.tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--kerzu-slate);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.tab-btn.active {
    border-bottom-color: var(--kerzu-gold);
    color: var(--kerzu-onyx);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.resa-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.resa-table th, .resa-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.resa-table th { background: #f8f5ef; font-weight: 700; }
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-pending { background: #ffeeba; color: #856404; }
.status-confirmed { background: #d4edda; color: #155724; }
