:root {
  --red: #990000;
  --red-dark: #6b0000;
  --bg: #e3e8fc;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #d0d7e8;
  --maxw: 1100px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-title: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--red); }
a:hover { color: var(--red-dark); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 56px; width: auto; border-radius: 8px; }
.brand-name {
  font-family: var(--font-title);
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
}

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0; padding: 0;
}
.main-nav a {
  display: block;
  padding: .5rem .85rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: .95rem;
}
.main-nav a:hover { background: var(--bg); color: var(--red); }
.main-nav a.active { background: var(--red); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(20,20,40,.35), rgba(20,20,40,.55)),
              url("../img/fond-chateau.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 3.5rem 1rem;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  margin: 0 0 .5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin: 0;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* ---------- Sections ---------- */
section { padding: 2.5rem 0; }
section.alt { background: var(--bg-card); }

.section-title {
  text-align: center;
  color: var(--red);
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin: 0 0 1.5rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.intro-grid .lead { font-size: 1.1rem; }
.intro-grid .lead p { margin: 0 0 1rem; }
.intro-grid img { border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }

@media (max-width: 760px) {
  .intro-grid { grid-template-columns: 1fr; }
  .main-nav { width: 100%; }
  .main-nav ul { justify-content: flex-start; }
}

/* ---------- Highlights ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 1rem; }
.card-body h3 { margin: 0 0 .35rem; color: var(--red); font-size: 1.1rem; }
.card-body p { margin: 0; font-size: .95rem; color: var(--text-muted); }

/* ---------- Contact block ---------- */
.contact-block {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
}
.contact-block h2 { color: var(--red); margin-top: 0; }
.contact-block a.mailto { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2a2f45;
  color: #cdd3e8;
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
  font-size: .9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer a { color: #fff; }
.site-footer .legal { opacity: .7; font-size: .8rem; }

/* ---------- Button ---------- */
.button-link {
  display: inline-block;
  padding: .65rem 1.25rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  transition: background .2s;
}
.button-link:hover { background: var(--red-dark); color: #fff; }

/* ---------- Pricing table ---------- */
.pricing-table {
  max-width: 640px;
  margin: 2rem auto;
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.pricing-table th,
.pricing-table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.pricing-table thead { background: var(--red); color: #fff; }
.pricing-table td:last-child { text-align: right; }
.pricing-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--red); font-family: var(--font-title); font-size: 2.6rem; margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.gallery a {
  display: block;
  text-align: center;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  max-height: 300px;
  object-fit: contain;
}
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .85rem; color: var(--text-muted); text-align: center; margin-top: .35rem; }

/* ---------- Gallery lightbox ---------- */
.gallery a {
  display: block;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}
.gallery a:hover img { transform: scale(1.03); }
.gallery img { transition: transform .3s ease; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
  padding: 1rem;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.lightbox-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  background: rgba(0,0,0,.5);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
