:root {
  --bg: #100d0a;
  --bg-2: #17120e;
  --panel: #201913;
  --panel-2: #271f17;
  --border: #3a2e23;
  --text: #e8ddcf;
  --text-dim: #a08e79;
  --blood: #9c2b2b;
  --blood-bright: #c23a3a;
  --brass: #c9a35e;
  --brass-dim: #8f7440;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  animation: pageIn .5s ease both;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Grain / vignette d'ambiance */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0,0,0,.55) 100%);
}

h1, h2, h3, .brand { font-family: var(--serif); font-weight: 700; letter-spacing: .3px; }
em { color: var(--blood-bright); font-style: italic; }

a { color: inherit; text-decoration: none; }

.section { max-width: 1080px; margin: 0 auto; padding: 90px 24px; position: relative; z-index: 2; }
.section.alt { background: var(--bg-2); max-width: none; }
.section.alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; }
.section-title::after {
  content: ""; display: block; width: 60px; height: 2px;
  background: var(--brass); margin: 16px auto 0;
}
.section-sub { text-align: center; color: var(--text-dim); max-width: 620px; margin: 14px auto 48px; }

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-block; cursor: pointer;
  background: var(--blood); color: #f3e9dc;
  padding: 13px 26px; border: 1px solid var(--blood-bright);
  border-radius: 3px; font-weight: 600; font-size: .95rem;
  letter-spacing: .5px; text-transform: uppercase;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--blood-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--brass-dim); color: var(--brass); }
.btn-ghost:hover { background: rgba(201,163,94,.1); }
.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn-block { display: block; text-align: center; margin-top: auto; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(16,13,10,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.brand { font-size: 1.35rem; color: var(--text); }
.brand span { color: var(--brass); font-size: .7rem; text-transform: uppercase; letter-spacing: 2px; margin-left: 6px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-dim); font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: #f3e9dc; }
.burger { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: 82vh; display: flex; align-items: center;
  padding: 60px 24px;
  background:
    linear-gradient(rgba(16,13,10,.72), rgba(16,13,10,.92)),
    radial-gradient(80% 120% at 70% 20%, #2a1c12 0%, #100d0a 60%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.eyebrow { color: var(--brass); text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 4rem); line-height: 1.12; }
.lede { color: var(--text-dim); font-size: 1.15rem; max-width: 640px; margin: 26px auto 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- STATS ---------- */
.stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 900px; margin: -1px auto 0; padding: 34px 24px;
  background: var(--panel); border-bottom: 1px solid var(--border);
}
.stat { text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--brass); }
.stat span { font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); }

/* ---------- CARDS (offres) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 4px; padding: 30px 26px;
  display: flex; flex-direction: column;
}
.card h3 { font-size: 1.35rem; }
.card .price { font-family: var(--serif); font-size: 2rem; color: var(--brass); margin: 10px 0 16px; }
.card .price span { font-size: .95rem; color: var(--text-dim); }
.card p { color: var(--text-dim); margin-bottom: 16px; }
.card ul { list-style: none; margin-bottom: 24px; }
.card li { padding: 6px 0 6px 22px; position: relative; font-size: .92rem; }
.card li::before { content: "✦"; position: absolute; left: 0; color: var(--blood-bright); }
.card.featured { border-color: var(--brass-dim); box-shadow: 0 0 40px rgba(156,43,43,.18); position: relative; }
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blood); color: #f3e9dc; font-size: .72rem;
  text-transform: uppercase; letter-spacing: 1.5px; padding: 5px 16px; border-radius: 3px;
}

/* Paliers de prix par MMR */
.tiers { margin: 4px 0 22px; }
.tier { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--border); }
.tier:last-child { border-bottom: 1px solid var(--border); }
.tier span { color: var(--text-dim); font-size: .92rem; }
.tier span b { color: var(--brass); font-weight: 600; margin-left: 5px; }
.tier strong { font-family: var(--serif); color: var(--brass); font-size: 1.2rem; }

/* Section "formules selon le niveau" */
.formules { margin-top: 54px; }
.formules-title { text-align: center; font-size: 1.4rem; margin-bottom: 26px; }
.formule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.formule { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--brass-dim); border-radius: 4px; padding: 22px; }
.formule h4 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 10px; }
.formule h4 span { color: var(--brass); font-size: .85rem; margin-left: 6px; }
.formule p { color: var(--text-dim); font-size: .92rem; }
@media (max-width: 820px) { .formule-grid { grid-template-columns: 1fr; } }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; padding: 20px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--brass); color: var(--brass);
  font-family: var(--serif); font-size: 1.5rem; margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-dim); }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.about-media {
  aspect-ratio: 1; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-style: italic; text-align: center; padding: 20px;
}
.about-text .section-title { text-align: left; }
.about-text .section-title::after { margin-left: 0; }
.about-text p { color: var(--text-dim); margin-bottom: 18px; }

/* ---------- AVIS ---------- */
.quote {
  background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--blood); border-radius: 4px;
  padding: 26px; font-family: var(--serif); font-style: italic; color: var(--text);
}
.quote cite { display: block; margin-top: 16px; font-size: .85rem; font-style: normal; color: var(--brass); }

/* ---------- CONTACT / RESERVATION ---------- */
.contact { text-align: center; }
.contact-note { color: var(--text-dim); font-size: .88rem; margin-top: 22px; }
.contact-note a { color: var(--brass); text-decoration: underline; }

.reservation { max-width: 680px; margin: 0 auto; text-align: left; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.reservation label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: .78rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1px;
}
.reservation label.full { grid-column: 1 / -1; }
.reservation input, .reservation select, .reservation textarea {
  background: var(--panel); border: 1px solid var(--border); border-radius: 3px;
  padding: 12px 14px; color: var(--text);
  font-family: var(--sans); font-size: .95rem; text-transform: none; letter-spacing: normal;
}
.reservation input::placeholder, .reservation textarea::placeholder { color: #6b5d4d; }
.reservation input:focus, .reservation select:focus, .reservation textarea:focus {
  outline: none; border-color: var(--brass);
}
.reservation textarea { resize: vertical; }

/* Bloc multi-liens */
.field-block { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 9px; }
.field-label { font-size: .78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
#liens-list { display: flex; flex-direction: column; gap: 9px; }
#liens-list > input { width: 100%; }
.lien-row { display: flex; gap: 8px; }
.lien-row input { flex: 1; }
.remove-link {
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  padding: 0 14px; border-radius: 3px; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.remove-link:hover { border-color: var(--blood); color: var(--blood-bright); }
.add-link {
  align-self: flex-start; background: transparent;
  border: 1px dashed var(--brass-dim); color: var(--brass);
  padding: 8px 15px; font-size: .8rem; font-weight: 600;
  text-transform: none; letter-spacing: normal; cursor: pointer; border-radius: 3px;
}
.add-link:hover { background: rgba(201,163,94,.08); }
.field-hint { color: var(--text-dim); font-size: .78rem; font-style: italic; }
.field-hint-strong {
  font-style: normal; font-size: .86rem; color: var(--text);
  background: rgba(201, 163, 94, .1); border-left: 3px solid var(--brass);
  padding: 10px 12px; border-radius: 4px;
}
.field-hint-strong strong { color: var(--brass); }

/* Sélecteur d'étoiles MMR (1 à 6, style Hunt) */
.mmr-field { display: flex; flex-direction: column; gap: 7px; }
.star-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-start; gap: 5px; }
.star-rating input { display: none; }
.star-rating label { display: inline-block; line-height: 0; cursor: pointer; color: #5f5140; transition: color .12s; }
.star-rating .star-ico { width: 30px; height: 30px; fill: currentColor; display: block; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: var(--brass); }
.star-rating input:checked ~ label .star-ico,
.star-rating label:hover .star-ico,
.star-rating label:hover ~ label .star-ico { filter: drop-shadow(0 0 3px rgba(201, 163, 94, .5)); }

/* Message d'erreur MMR (étoiles non sélectionnées) */
.mmr-error { color: var(--danger); font-size: .78rem; }

/* Message de succès après envoi du formulaire */
.form-success { text-align: center; padding: 10px 0; }
.form-success .success-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border: 2px solid var(--brass); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--brass);
}
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--text-dim); max-width: 420px; margin: 0 auto; }

/* ---------- AVIS ---------- */
.avis-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 30px; }
.avis-empty { grid-column: 1 / -1; text-align: center; color: var(--text-dim); }
.avis-card { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--brass); border-radius: 6px; padding: 22px; }
.avis-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.avis-pseudo { font-family: var(--serif); font-weight: 700; color: var(--text); font-size: 1.1rem; }
.avis-stars-static { display: inline-flex; gap: 2px; flex-shrink: 0; }
.avis-stars-static .mini-star { width: 18px; height: 18px; }
.avis-stars-static .mini-star.on { fill: var(--brass); }
.avis-stars-static .mini-star.off { fill: #5f5140; }
.avis-card .avis-text { font-family: var(--serif); font-style: italic; color: var(--text); margin-bottom: 12px; }
.avis-date { font-size: .78rem; color: var(--text-dim); }
.avis-cta { text-align: center; margin-bottom: 24px; }
.avis-form { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.avis-form > label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.avis-form input[type="text"], .avis-form textarea { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; color: var(--text); font-size: 1rem; font-family: inherit; }
.avis-form input[type="text"]:focus, .avis-form textarea:focus { outline: 2px solid var(--brass); border-color: transparent; }
.avis-form textarea { resize: vertical; }
.avis-note-field { display: flex; flex-direction: column; gap: 7px; }
.avis-hint { font-size: .85rem; text-align: center; margin-top: 4px; }
.avis-hint.error { color: var(--danger); }
.avis-hint.ok { color: var(--brass); }

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.footer {
  position: relative; z-index: 2;
  text-align: center; padding: 28px; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: .82rem; background: var(--bg-2);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .nav-links {
    display: none; position: absolute; top: 100%; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--panel); border: 1px solid var(--border); min-width: 200px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; width: 100%; }
  .burger { display: block; }
  .cards, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat:nth-child(2) { border-right: none; }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 260px; margin: 0 auto; }
}

/* ============ TRANSITION ENTRE PAGES ============ */
.page-transition {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.page-transition.active { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.pt-mark {
  width: 26px; height: 26px; border: 2px solid var(--brass);
  transform: rotate(45deg) scale(.4); opacity: 0;
  transition: opacity .4s ease .05s, transform .4s ease .05s;
}
.page-transition.active .pt-mark {
  opacity: 1; transform: rotate(45deg) scale(1);
  animation: ptPulse 1s ease-in-out infinite alternate;
}
@keyframes ptPulse { from { box-shadow: 0 0 0 rgba(201,163,94,0); } to { box-shadow: 0 0 18px rgba(201,163,94,.5); } }

/* Gros bouton CTA */
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ============ PAGE RÉSERVATION ============ */
.reserve-main {
  min-height: calc(100vh - 62px);
  display: flex; align-items: center; justify-content: center;
  padding: 50px 20px; position: relative; z-index: 2;
}
.reserve-card {
  width: 100%; max-width: 680px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 40px;
  animation: cardUp .55s ease both;
}
@keyframes cardUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.reserve-card h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); text-align: center; }
.reserve-sub { text-align: center; color: var(--text-dim); margin: 12px 0 30px; }
.reserve-card .contact-note { text-align: center; }
@media (max-width: 640px) { .reserve-card { padding: 26px 20px; } }

/* Offre choisie (figée) */
.offre-field { display: flex; flex-direction: column; gap: 7px; }
.offre-chosen {
  background: var(--panel-2); border: 1px solid var(--brass-dim); border-radius: 3px;
  padding: 12px 14px; color: var(--brass); font-weight: 600; font-family: var(--serif);
}

/* Total selon la formule */
.total-box {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(156, 43, 43, .12); border: 1px solid var(--blood);
  border-radius: 4px; padding: 14px 18px;
}
.total-box span { color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }
.total-box strong { font-family: var(--serif); color: var(--brass); font-size: 1.6rem; }

/* Déroulé après envoi + réassurance */
.after-submit { margin-top: 30px; border-top: 1px solid var(--border); padding-top: 26px; }
.reassure {
  background: rgba(201, 163, 94, .08); border-left: 3px solid var(--brass);
  padding: 13px 16px; border-radius: 4px; color: var(--text); font-size: .92rem; margin-bottom: 24px;
}
.reassure b { color: var(--brass); }
.after-title { font-size: 1.1rem; margin-bottom: 16px; }
.process { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 13px; margin-bottom: 24px; }
.process li { counter-increment: step; position: relative; padding-left: 42px; color: var(--text-dim); font-size: .92rem; }
.process li::before {
  content: counter(step); position: absolute; left: 0; top: -3px;
  width: 27px; height: 27px; border: 1px solid var(--brass); color: var(--brass);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: .85rem;
}
.process li b { color: var(--text); }
.trust { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-item {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; font-size: .82rem; color: var(--text-dim);
}
