/* ===== Variables & base ===== */
:root {
  --primary: #43816f;        /* vert eucalyptus — accent principal */
  --primary-dark: #346556;
  --deep: #2b4a43;           /* vert pin profond — en-têtes, blocs forts */
  --bg: #fafbf8;             /* blanc cassé froid — fond général */
  --alt: #eef1eb;            /* gris-vert très clair — sections alternées */
  --white: #ffffff;
  --ink: #25302d;            /* texte foncé */
  --muted: #5f6b66;          /* texte secondaire */
  --line: #e2e6df;           /* filets / bordures */
  --radius: 14px;
  --shadow: 0 14px 34px rgba(37, 48, 45, 0.09);
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 300;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; line-height: 1.2; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: rgba(255,255,255,0.85); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-nav { background: var(--primary); color: var(--white); padding: 9px 20px; }
.btn-nav:hover { background: var(--primary-dark); }

/* ===== En-tête ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 0.95rem; color: var(--ink); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.btn-nav { color: var(--white); }
.nav-links a.btn-nav:hover { color: var(--white); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(120deg, rgba(37,48,45,0.52), rgba(43,74,67,0.42)), url('../images/gite-emotelles/sejour-veranda.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(37, 48, 45, 0.18); }
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.8rem; margin-bottom: 18px; opacity: 0.95; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); margin-bottom: 18px; }
.hero-sub { font-size: 1.18rem; font-weight: 300; max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--alt); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 24px; }
.section-intro { color: var(--muted); max-width: 680px; margin-bottom: 36px; }
.section-intro a { color: var(--primary); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ===== Pourquoi nous choisir ===== */
.why { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.why li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 400; }
.why-ico { font-size: 1.5rem; }

/* ===== Bloc gîte ===== */
.gite { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; margin-bottom: 64px; }
.gite:last-child { margin-bottom: 0; }
.gite-reverse .gite-media { order: 2; }
.gite-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.gite-capacity { display: inline-block; background: var(--primary); color: var(--white); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }
.gite-body h3 { font-size: 1.7rem; margin-bottom: 14px; }
.gite-body p { color: var(--muted); margin-bottom: 14px; }
.gite-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 6px; }
.gite-points li { position: relative; padding-left: 22px; font-size: 0.95rem; }
.gite-points li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.descriptif { margin-top: 20px; background: var(--alt); border-radius: var(--radius); padding: 20px 22px; }
.section-alt .descriptif { background: var(--white); }
.descriptif h4 { font-size: 1.1rem; margin-bottom: 12px; color: var(--deep); }
.desc-list { list-style: none; display: grid; gap: 8px; }
.desc-list li { font-size: 0.92rem; color: var(--muted); padding-left: 16px; position: relative; }
.desc-list li::before { content: '·'; position: absolute; left: 2px; color: var(--primary); font-weight: 700; }

/* ===== Les environs ===== */
.around { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.around-item { background: var(--white); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.section-alt .around-item { background: var(--bg); }
.around-item h3 { font-size: 1.2rem; margin-bottom: 14px; color: var(--primary); }
.around-item ul { list-style: none; display: grid; gap: 8px; }
.around-item li { color: var(--muted); font-size: 0.95rem; padding-left: 18px; position: relative; }
.around-item li::before { content: '→'; position: absolute; left: 0; color: var(--primary); }
.around-note { margin-top: 28px; color: var(--muted); font-size: 0.98rem; text-align: center; }
.around-note strong { color: var(--ink); }

/* ===== Galerie ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ===== Tarifs ===== */
.tarif-grid { display: grid; gap: 28px; }
.tarif-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tarif-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 26px; background: var(--deep); color: var(--white); }
.tarif-head h3 { font-size: 1.4rem; }
.tarif-head .cap { font-size: 0.9rem; opacity: 0.9; }
.tarif-table { width: 100%; border-collapse: collapse; }
.tarif-table th, .tarif-table td { padding: 12px 16px; text-align: center; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
.tarif-table thead th { background: var(--alt); font-family: 'Inter', sans-serif; font-weight: 600; color: var(--ink); }
.tarif-table tbody th { text-align: left; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--deep); white-space: nowrap; }
.tarif-table .season { font-size: 0.78rem; color: var(--muted); font-weight: 400; display: block; }
.tarif-foot { padding: 16px 26px; font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tarif-foot span strong { color: var(--ink); }
.tarif-legend { margin-top: 24px; color: var(--muted); font-size: 0.9rem; }

/* ===== Contact ===== */
.contact-info p { color: var(--muted); margin-bottom: 18px; }
.contact-hint { background: var(--white); border-left: 3px solid var(--primary); padding: 14px 18px; border-radius: 8px; font-size: 0.92rem; }
.section-alt .contact-hint { background: var(--bg); }
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list a { color: var(--primary); }
.contact-form { display: grid; gap: 16px; background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.section-alt .contact-form { background: var(--bg); }
.contact-form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  font-family: inherit; font-size: 0.95rem; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  color: var(--ink); resize: vertical; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--primary); }
.contact-form button { margin-top: 4px; }

/* ===== Pied de page ===== */
.site-footer { background: var(--deep); color: #cfdad4; padding: 36px 0 20px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); margin-bottom: 4px; }
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: #cfdad4; font-size: 0.9rem; }
.footer-social a:hover { color: var(--white); }
.footer-top { color: #cfdad4; font-size: 0.9rem; }
.footer-copy { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.85rem; opacity: 0.75; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 460px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 24px; width: 100%; }
  .two-col, .cards, .around, .gallery, .why { grid-template-columns: 1fr; }
  .gite { grid-template-columns: 1fr; gap: 24px; }
  .gite-reverse .gite-media { order: 0; }
  .gite-points { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .tarif-table { font-size: 0.82rem; }
  .tarif-table th, .tarif-table td { padding: 10px 8px; }
}
