/* Villa Le Cartier -- hand-written CSS, no external dependency. Mobile-first. */

:root {
  --color-bg: #fdfcfa;
  --color-text: #22201b;
  --color-muted: #6b6558;
  --color-accent: #3a5a40;
  --color-accent-dark: #2c4530;
  --color-border: #e5e1d8;
  --color-error: #a3342b;
  --color-card-bg: #f5f2ec;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --radius: 6px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-accent-dark);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* ---- Header / nav ---- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: relative;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-text);
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
}

.site-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 8px 20px 16px;
}
.site-nav.open {
  display: flex;
}
.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.site-nav a:last-child { border-bottom: none; }
.site-nav a.active {
  color: var(--color-accent-dark);
  font-weight: bold;
}
.lang-switch {
  font-weight: bold;
}

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    position: static;
    border: none;
    padding: 0;
    gap: 20px;
    align-items: center;
  }
  .site-nav a {
    border-bottom: none;
    padding: 0;
  }
}

/* ---- Main / sections ---- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

section {
  margin-bottom: 2.5rem;
}

.page-header h1 {
  margin-bottom: 0.25em;
}

.note {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---- Buttons ---- */

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--color-accent);
}
.button-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.button-primary:hover {
  background: var(--color-accent-dark);
}

/* ---- Site-wide video/photo banner (every page, base.html) ---- */

.site-banner {
  position: relative;
  overflow: hidden;
  height: 46vh;
  min-height: 280px;
  max-height: 560px;
  background: #000;
}
.site-banner-media,
.site-banner-media video,
.site-banner-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.35) 100%);
}
.site-banner-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  color: #fff;
  padding: 24px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  left: 0;
  right: 0;
}
.site-banner-overlay h1 {
  color: #fff;
  margin: 0;
  font-size: 1.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.site-banner-overlay .accroche {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  max-width: 600px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.site-banner-overlay .button {
  margin-top: 12px;
}
@media (min-width: 800px) {
  .site-banner { height: 56vh; }
  .site-banner-overlay h1 { font-size: 2.25rem; }
}

/* ---- Highlight cards ---- */

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .highlights-grid { grid-template-columns: repeat(3, 1fr); }
}
.highlight-card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  padding: 16px;
}
.highlight-card h3 {
  margin-bottom: 0.3em;
}

.cta-band {
  text-align: center;
  padding: 2rem 0;
}

/* ---- Gallery ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
.gallery img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---- Video tour ---- */

.video-tour video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
}

/* ---- Villa room-by-room tour ---- */

.villa-section {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}
.villa-room {
  margin-bottom: 2rem;
}
.villa-room h3 {
  margin-bottom: 0.5em;
}
.villa-room .gallery {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .villa-room .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Dodo (sleeping) page ---- */

.sleeping-summary {
  font-weight: bold;
}
.dodo-quote {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.dodo-quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  margin: 0;
}

/* ---- Equipment / restrictions ---- */

.equipment-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) {
  .equipment-categories { grid-template-columns: repeat(2, 1fr); }
}
.equipment-category ul, .restrictions ul, .for-who ul {
  padding-left: 1.2em;
}
.domain-callout {
  background: var(--color-card-bg);
  border-left: 4px solid var(--color-accent);
  padding: 16px;
  border-radius: var(--radius);
}
.disclaimer {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---- Region table ---- */

.distances table {
  width: 100%;
  border-collapse: collapse;
}
.distances td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--color-border);
}
.distances td:last-child {
  text-align: right;
  font-weight: bold;
  white-space: nowrap;
}

/* ---- FAQ ---- */

.faq-list details {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: bold;
}
.faq-list p {
  margin-top: 0.75em;
}

/* ---- Calendar ---- */

.calendrier {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}
.calendrier-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.calendrier-nav-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
}
.calendrier-month {
  font-weight: bold;
  text-transform: capitalize;
}
.calendrier-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendrier-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--color-muted);
  padding-bottom: 4px;
}
.calendrier-day {
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  font-size: 0.8rem;
}
.calendrier-day .day-price {
  font-size: 0.65rem;
  color: var(--color-muted);
}
.calendrier-day.unavailable {
  background: var(--color-card-bg);
  color: var(--color-muted);
  cursor: not-allowed;
  text-decoration: line-through;
}
.calendrier-day.selected {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.calendrier-day.selected .day-price {
  color: #fff;
}
.calendrier-day.in-range {
  background: #e4ede4;
}
.calendrier-legend {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* ---- Selection summary / price ---- */

.selection-summary {
  margin-top: 16px;
  padding: 16px;
  background: var(--color-card-bg);
  border-radius: var(--radius);
}
.occupants-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.occupants-fields label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  gap: 4px;
}
.occupants-fields input[type="number"] {
  width: 70px;
  padding: 6px;
}
.checkbox-field {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}
.price-breakdown {
  margin: 0 0 16px;
}
.price-breakdown div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--color-border);
}
.price-breakdown .total {
  font-weight: bold;
  font-size: 1.1rem;
  border-bottom: none;
  border-top: 2px solid var(--color-accent);
  margin-top: 4px;
}
.selection-error {
  color: var(--color-error);
  font-weight: bold;
}

/* ---- Forms ---- */

form label {
  display: block;
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 0.9rem;
}
form input[type="text"],
form input[type="email"],
form input[type="tel"] {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: normal;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding: 24px 20px;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-citq {
  font-weight: bold;
  color: var(--color-text);
}
