/* ============================================
   GREEN KAZ — feuille de style partagée
   Refonte 2026-11 : jetons de marque conservés
   (vert / or / crème, Playfair Display + DM Sans).
   Le CSS propre à une page reste dans son <style>.
   ============================================ */

:root {
  --green-dark: #1a3d2e;
  --green-deep: #0f2a1f;
  --gold: #c9a961;
  --gold-soft: #d9bf85;
  --gold-ink: #7d6220;          /* or lisible sur fond clair (texte) */
  --cream: #faf6ec;
  --cream-dark: #f0e9d2;
  --white: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: rgba(26, 61, 46, 0.15);
  --line-dark: rgba(201, 169, 97, 0.25);
  --on-dark: rgba(250, 246, 236, 0.86);
  --shadow-sm: 0 2px 8px rgba(15, 42, 31, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 42, 31, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 42, 31, 0.18);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", -apple-system, system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { color: var(--ink-soft); }

.text-link {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: var(--green-dark); }

/* ============ NAVIGATION ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 236, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green-dark);
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-logo--footer { background: #fff; padding: 3px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.brand-locality {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-top: 0.2rem;
}

.footer .brand-locality { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--green-dark); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.nav-cta {
  background: var(--green-dark);
  color: var(--cream) !important;
  padding: 0.65rem 1.2rem;
  border-radius: var(--r-md);
  font-weight: 600 !important;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--green-deep); }
.nav-links a.nav-cta.active::after { display: none; }

/* Bouton hamburger (injecté par js/zone.js) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-body);
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--green-dark); color: var(--cream); }
.btn-primary:hover { background: var(--green-deep); box-shadow: var(--shadow-md); }

.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-soft); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: var(--cream); }

.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(250, 246, 236, 0.55); }
.btn-ghost:hover { background: var(--cream); color: var(--green-deep); border-color: var(--cream); }

.btn-block { width: 100%; }

.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }

.cta-note { font-size: 0.88rem; margin-top: 0.8rem; color: var(--ink-soft); }
.on-dark .cta-note { color: rgba(250, 246, 236, 0.7); }

/* ============ LAYOUT ============ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }
.section-alt { background: var(--cream-dark); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.on-dark .eyebrow { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: 2.8rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; margin-top: 0.9rem; }

.section-title { text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; max-width: 640px; margin: 0 auto 3rem; font-size: 1.08rem; }

.on-dark { color: var(--cream); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--cream); }
.on-dark p { color: var(--on-dark); }

/* ============ EN-TÊTE DE PAGE ============ */
.page-header {
  background: var(--green-deep);
  padding: 4rem 0 3.2rem;
}

.page-header h1 { max-width: 880px; }
.page-header .lede { font-size: 1.12rem; max-width: 680px; margin-top: 1rem; }
.page-header .cta-row { margin-top: 1.8rem; }

/* ============ BADGES & PRIX ============ */
.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--green-deep);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.7rem;
  line-height: 1.1;
  white-space: nowrap;
}

.price small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 0.25rem;
}

.price-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ============ CARTES MODÈLES ============ */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.model-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.model-media { position: relative; aspect-ratio: 16 / 10; background: var(--cream-dark); }
.model-media img { width: 100%; height: 100%; object-fit: cover; }
.model-media .badge { position: absolute; top: 0.8rem; left: 0.8rem; }

.model-body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.model-body h3 { font-size: 1.4rem; letter-spacing: 0.02em; }
.model-meta { color: var(--gold-ink); font-weight: 600; font-size: 0.9rem; margin: 0.2rem 0 0.7rem; }
.model-desc { font-size: 0.92rem; margin-bottom: 1rem; }
.model-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.model-links { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.model-links .btn { font-size: 0.9rem; min-height: 46px; padding: 0.6rem 1rem; }

.model-card--cta {
  background: var(--green-dark);
  border-color: var(--green-dark);
  justify-content: center;
  padding: 1.8rem 1.5rem;
}
.model-card--cta h3 { color: var(--cream); margin-bottom: 0.6rem; }
.model-card--cta p { color: var(--on-dark); font-size: 0.95rem; margin-bottom: 1.2rem; }

/* ============ LISTES ============ */
.check-list { list-style: none; display: grid; gap: 0.55rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); font-size: 0.95rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--gold-ink);
  border-bottom: 2px solid var(--gold-ink);
  transform: rotate(-45deg);
}
.on-dark .check-list li { color: var(--on-dark); }
.on-dark .check-list li::before { border-color: var(--gold); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { padding: 0.6rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; color: var(--ink-soft); }
.spec-table td:last-child { text-align: right; font-weight: 600; color: var(--green-dark); white-space: nowrap; padding-left: 1rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ============ TABLEAUX ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th {
  text-align: left;
  padding: 0.9rem 1rem;
  background: var(--green-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.data-table td { padding: 0.95rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td.num { font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.data-table td strong { color: var(--green-dark); letter-spacing: 0.02em; }
.data-table a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ============ PANNEAUX ============ */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; }
.panel h3 { margin-bottom: 0.8rem; }
.panel-dark { background: var(--green-dark); border-color: var(--green-dark); }
.panel-dark h3 { color: var(--cream); }
.panel-dark p { color: var(--on-dark); }

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

.fact h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.fact p { font-size: 0.95rem; }
.fact { padding-top: 1.1rem; border-top: 2px solid var(--gold); }

/* Échéancier */
.schedule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; list-style: none; }
.schedule li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem; }
.schedule strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--green-dark); line-height: 1.1; }
.schedule span { font-size: 0.9rem; color: var(--ink-soft); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.steps p { font-size: 0.95rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.2rem 1.1rem 0;
  font-weight: 600;
  color: var(--green-dark);
  position: relative;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.85rem; font-size: 1.5rem; font-weight: 400; color: var(--gold-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.2rem; max-width: 70ch; }

/* Bandeau CTA */
.band { background: var(--green-dark); border-radius: var(--r-lg); padding: 3.2rem 2.5rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.band h2 { margin-bottom: 0.8rem; }
.band .cta-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }

/* ============ FORMULAIRES ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; }
.field label, .field .label { font-size: 0.88rem; font-weight: 600; color: var(--green-dark); margin-bottom: 0.4rem; }
.field .required { color: var(--gold-ink); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green-dark); background: var(--white); box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.25); }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.9rem; }
.form-note a { text-decoration: underline; }

/* ============ TEXTE LÉGAL ============ */
.prose h2 { font-size: 1.6rem; margin: 2.6rem 0 0.9rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 0.7rem; }
.prose ul { padding-left: 1.3rem; }
.prose a { text-decoration: underline; color: var(--green-dark); }
.prose .todo { background: #fff3cd; color: #5c4400; padding: 0 0.35rem; border-radius: 4px; font-weight: 600; }

/* ============ FOOTER ============ */
.footer { background: var(--green-deep); color: var(--cream-dark); padding: 3.5rem 0 1.5rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer h4,
.footer .footer-title {
  color: var(--gold);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.footer a:hover { color: var(--gold); }
.footer p { color: rgba(250, 246, 236, 0.72); font-size: 0.95rem; }
.footer .referral { margin-top: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--line-dark); border-radius: var(--r-md); }
.footer .referral a { color: var(--gold); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(250, 246, 236, 0.6);
}
.footer-bottom a { text-decoration: underline; }

/* Compat. (pages historiques) */
.card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ============ BANDEAU RÉGION (js/zone.js) ============ */
.zone-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  background: var(--green-deep);
  color: var(--cream);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  text-align: center;
  border-bottom: 1px solid var(--line-dark);
}
.zone-banner strong { color: var(--gold-soft); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .model-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem 1.5rem; font-size: 1rem; }
  .nav-links a.active::after { display: none; }
  .nav-links .nav-cta { margin: 0.6rem 1.5rem 0.4rem; text-align: center; }
}

@media (max-width: 900px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .schedule { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; padding: 2.4rem 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 0; }
  .page-header { padding: 3rem 0 2.4rem; }
}

@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 1.1rem; }
  .model-grid, .grid-2, .grid-3, .grid-4, .steps, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .cta-row .btn { width: 100%; }
  .brand { font-size: 1.2rem; }
  .brand-logo { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
