/* =========================================================
   Villa Stella — Trets — OFS AMP
   Charte : Olive profond / Terracotta / Sable / Pierre calcaire
   ========================================================= */

:root {
  --olive: #3C4A36;
  --olive-light: #4F5E48;
  --olive-dark: #2B3527;
  --terracotta: #C46B4A;
  --terracotta-light: #E7B896;
  --sable: #EADCC8;
  --pierre: #D9C9B1;
  --cream: #F7F1E6;
  --anthracite: #3A3A3A;
  --muted: #8C8C86;
  --white: #ffffff;

  --font-title: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
  --font-script: 'Allura', cursive;

  --container: 1160px;
  --radius: 6px;
  --shadow-soft: 0 10px 40px rgba(60, 74, 54, 0.12);
  --shadow-lift: 0 20px 60px rgba(60, 74, 54, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--anthracite);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--terracotta);
}
.section-head {
  max-width: 640px;
  margin-bottom: 46px;
}
.section-head h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--olive);
  margin-top: 10px;
  line-height: 1.2;
}
.section-head p {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--anthracite);
  max-width: 560px;
}
section { position: relative; padding: 110px 0; }
.bg-cream { background: var(--cream); }
.bg-sable { background: var(--sable); }
.bg-olive { background: var(--olive); color: var(--cream); }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .1s; }
.reveal-delay-2.in-view { transition-delay: .2s; }
.reveal-delay-3.in-view { transition-delay: .3s; }
.reveal-delay-4.in-view { transition-delay: .4s; }

/* =========================== HEADER =========================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 40px;
  box-shadow: 0 4px 24px rgba(60,74,54,0.08);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { flex-shrink: 0; transition: transform .4s var(--ease); }
.brand-text { line-height: 1; }
.brand-name {
  font-family: var(--font-title); font-weight: 700; font-size: 18px;
  letter-spacing: 1.5px; color: var(--cream);
  transition: color .4s var(--ease);
}
.brand-sub {
  font-size: 9.5px; letter-spacing: 3.5px; color: var(--terracotta-light);
  font-weight: 700; margin-top: 3px; display: block;
}
.site-header.scrolled .brand-name { color: var(--olive); }

.nav-links {
  display: flex; align-items: center; gap: 34px;
}
.nav-links a {
  font-size: 13px; font-weight: 600; letter-spacing: .4px;
  color: var(--cream); position: relative; padding: 4px 0;
  transition: color .3s;
}
.site-header.scrolled .nav-links a { color: var(--anthracite); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: var(--terracotta); transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--terracotta); color: var(--cream) !important;
  padding: 11px 24px; border-radius: 30px; font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(196,107,74,0.35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(196,107,74,0.45); }

.burger {
  display: none; flex-direction: column; gap: 5px; width: 26px; z-index: 1100;
}
.burger span {
  height: 2px; background: var(--cream); border-radius: 2px; transition: all .3s var(--ease);
}
.site-header.scrolled .burger span { background: var(--olive); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================== HERO =========================== */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: flex-end; overflow: hidden;
  color: var(--cream);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-scrim-top {
  position: absolute; top: 0; left: 0; right: 0; height: 320px;
  background: linear-gradient(180deg, rgba(20,24,16,.55) 0%, rgba(20,24,16,0) 100%);
}
.hero-scrim-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(0deg, rgba(20,24,16,.82) 0%, rgba(20,24,16,0) 100%);
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  text-align: center; padding: 0 24px 90px;
}
.hero-content .script {
  font-family: var(--font-script);
  font-size: clamp(34px, 5.2vw, 54px);
  color: var(--cream);
  margin-bottom: 18px;
  opacity: 0; animation: fadeUp 1s var(--ease) .5s forwards;
}
.hero-kicker {
  opacity: 0; animation: fadeUp 1s var(--ease) .7s forwards;
  letter-spacing: 3px; color: var(--sable); font-size: 13px; font-weight: 700;
  margin-bottom: 14px;
}
.hero-rule {
  width: 64px; height: 2px; background: var(--terracotta); margin: 0 auto 22px;
  opacity: 0; animation: fadeUp 1s var(--ease) .85s forwards;
}
.hero-cta-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s var(--ease) 1s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: translateY(0);} }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 30px; font-weight: 700; font-size: 13.5px;
  letter-spacing: .4px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn-primary {
  background: var(--terracotta); color: var(--cream);
  box-shadow: 0 8px 24px rgba(196,107,74,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(196,107,74,0.5); }
.btn-ghost {
  border: 1.5px solid rgba(247,241,230,0.6); color: var(--cream);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(247,241,230,0.14); transform: translateY(-3px); }
.btn-olive { background: var(--olive); color: var(--cream); box-shadow: 0 8px 24px rgba(60,74,54,0.35); }
.btn-olive:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60,74,54,0.45); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--sable); font-size: 10px; letter-spacing: 2px; font-weight: 600;
  opacity: 0; animation: fadeUp 1s var(--ease) 1.3s forwards;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--terracotta), transparent); animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

.hero-badge {
  position: absolute; top: 110px; right: 40px; z-index: 2;
  background: rgba(247,241,230,0.14); backdrop-filter: blur(6px);
  border: 1px solid rgba(247,241,230,0.35); border-radius: 100px;
  padding: 10px 20px; font-size: 11px; letter-spacing: 1.5px; font-weight: 700;
  color: var(--cream);
  opacity: 0; animation: fadeUp 1s var(--ease) 1.1s forwards;
}

/* Bandeau d'annonce — journée de commercialisation (juste sous le hero) */
.announce-bar {
  background: var(--terracotta);
  color: var(--cream);
}
.announce-bar-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px;
  text-align: center;
  font-size: 13.5px; letter-spacing: .2px;
}
.announce-bar-inner strong { font-weight: 800; }
.announce-icon { font-size: 15px; line-height: 1; }
@media (max-width: 560px) {
  .announce-bar-inner { padding: 10px 20px; font-size: 12px; gap: 8px; }
}

/* =========================== CADRE DE VIE =========================== */
.cadre-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.cadre-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.cadre-media img { transition: transform .8s var(--ease); }
.cadre-media:hover img { transform: scale(1.05); }
.cadre-text p { font-size: 15px; color: var(--anthracite); margin-bottom: 18px; }
.cadre-script {
  font-family: var(--font-script); font-size: 24px; color: var(--terracotta); margin: 18px 0 10px;
}
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px;
}
.stat-card {
  text-align: center; padding: 28px 12px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.stat-card svg { margin: 0 auto 12px; display: block; }
.stat-num {
  font-family: var(--font-title); font-weight: 700; font-size: 30px; color: var(--olive);
  display: block;
}
.stat-label {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
  font-weight: 600; margin-top: 4px; display: block;
}

/* =========================== LE BRS =========================== */
.brs-intro { font-size: 16px; max-width: 760px; margin-bottom: 50px; }
.brs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.brs-step {
  background: var(--white); border-radius: var(--radius); padding: 34px 26px;
  text-align: center; box-shadow: var(--shadow-soft); position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.brs-step:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.brs-step .num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--terracotta);
  color: var(--cream); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 16px rgba(196,107,74,0.4);
}
.brs-step svg { margin: 14px auto 16px; display: block; }
.brs-step h3 { font-family: var(--font-title); font-size: 18px; color: var(--olive); margin-bottom: 10px; }
.brs-step p { font-size: 13.5px; color: var(--anthracite); }
.brs-step .arrow {
  position: absolute; right: -34px; top: 50%; transform: translateY(-50%);
  color: var(--pierre); font-size: 22px; display: none;
}

.advantages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.advantage {
  display: flex; gap: 18px; align-items: flex-start; background: var(--white);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.advantage:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.advantage .mark {
  font-family: var(--font-title); font-weight: 700; font-size: 22px; color: var(--terracotta);
  width: 40px; flex-shrink: 0;
}
.advantage strong { color: var(--olive); }
.advantage p { font-size: 13.5px; }

/* =========================== MISE EN SITUATION =========================== */
.situation-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.situation-media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.situation-table { margin-top: 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--white); }
.situation-row {
  display: flex; justify-content: space-between; padding: 16px 22px;
  border-bottom: 1px solid var(--sable); font-size: 13.5px;
}
.situation-row:last-child { border-bottom: none; }
.situation-row span:first-child { color: var(--muted); }
.situation-row span:last-child { font-weight: 700; color: var(--olive); }
.situation-note { font-size: 11.5px; color: var(--muted); font-style: italic; margin-top: 14px; }

/* =========================== LES PLANS =========================== */
.plan-tabs { display: flex; gap: 10px; margin-bottom: 30px; }
.plan-tab {
  padding: 11px 26px; border-radius: 30px; font-size: 13px; font-weight: 700;
  background: var(--white); color: var(--olive); box-shadow: var(--shadow-soft);
  transition: all .3s var(--ease);
}
.plan-tab.active { background: var(--olive); color: var(--cream); }
.plan-panels { position: relative; }
.plan-panel {
  display: none; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start;
}
.plan-panel.active { display: grid; animation: fadeUp .5s var(--ease); }
.plan-panel.single { grid-template-columns: 1fr; justify-items: center; }
.plan-panel.single > div { max-width: 460px; width: 100%; }
.plan-panel img { border-radius: var(--radius); box-shadow: var(--shadow-soft); width: 100%; }
.plan-panel .cap { font-family: var(--font-title); font-weight: 700; color: var(--olive); text-align: center; margin-top: 14px; }
.plan-panel .sub { text-align: center; font-size: 12px; color: var(--muted); margin-top: 4px; }
.plan-note { margin-top: 30px; font-size: 12px; color: var(--muted); font-style: italic; }

/* =========================== ELIGIBILITE (table + intro) =========================== */
.elig-conditions { display: grid; gap: 14px; margin-bottom: 46px; }
.elig-condition { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; }
.elig-condition .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); margin-top: 7px; flex-shrink: 0; }
.barème-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.barème-table th, .barème-table td { padding: 14px 20px; text-align: left; font-size: 13.5px; }
.barème-table th { background: var(--olive); color: var(--cream); font-weight: 700; letter-spacing: .5px; font-size: 11.5px; text-transform: uppercase; }
.barème-table td:last-child, .barème-table th:last-child { text-align: right; font-weight: 700; color: var(--olive); }
.barème-table tr:nth-child(even) td { background: var(--sable); }
.barème-source { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 10px; }

/* =========================== ELIGIBILITY TOOL =========================== */
.elig-tool {
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lift);
  padding: 48px; margin-top: 56px; position: relative; overflow: hidden;
}
.elig-tool::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--terracotta), var(--olive));
}
.elig-tool-head { text-align: center; margin-bottom: 36px; }
.elig-tool-head h3 { font-family: var(--font-title); font-size: 26px; color: var(--olive); margin-top: 8px; }
.elig-progress { display: flex; gap: 8px; max-width: 320px; margin: 26px auto 0; }
.elig-progress .step-dot { flex: 1; height: 4px; border-radius: 4px; background: var(--sable); transition: background .4s; }
.elig-progress .step-dot.done { background: var(--terracotta); }

.elig-step { display: none; }
.elig-step.active { display: block; animation: fadeUp .45s var(--ease); }
.elig-field { margin-bottom: 26px; }
.elig-field label { display: block; font-size: 13px; font-weight: 700; color: var(--olive); margin-bottom: 10px; }
.elig-field select, .elig-field input[type="number"] {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--pierre); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14.5px; color: var(--anthracite); background: var(--cream);
  transition: border .3s;
}
.elig-field select:focus, .elig-field input:focus { outline: none; border-color: var(--terracotta); }
.elig-radio-group { display: flex; gap: 14px; }
.elig-radio-list { display: flex; flex-direction: column; gap: 12px; }
.elig-radio {
  border: 1.5px solid var(--pierre); border-radius: var(--radius); padding: 16px;
  text-align: center; font-size: 13.5px; font-weight: 600; color: var(--anthracite);
  transition: all .25s var(--ease); position: relative;
}
.elig-radio-group .elig-radio { flex: 1; }
.elig-radio-list .elig-radio { text-align: left; padding: 15px 18px; display: flex; align-items: center; gap: 12px; }
.elig-radio-list .elig-radio::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--pierre);
  flex-shrink: 0; transition: all .25s var(--ease); box-sizing: border-box;
}
.elig-radio-list .elig-radio.selected::before {
  border-color: var(--terracotta); border-width: 5px;
}
.elig-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.elig-radio.selected { border-color: var(--terracotta); background: rgba(196,107,74,0.08); color: var(--olive); }
.elig-nav { display: flex; justify-content: space-between; margin-top: 32px; gap: 14px; }
.elig-nav .btn-back { color: var(--muted); font-size: 13px; font-weight: 600; padding: 12px 6px; }
.elig-error { color: var(--terracotta); font-size: 12.5px; margin-top: 10px; display: none; }

.elig-result { display: none; text-align: center; padding: 20px 0; }
.elig-result.active { display: block; animation: fadeUp .5s var(--ease); }
.elig-result-icon {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.elig-result.eligible .elig-result-icon { background: rgba(60,74,54,0.1); }
.elig-result.not-eligible .elig-result-icon { background: rgba(196,107,74,0.1); }
.elig-result h3 { font-family: var(--font-title); font-size: 26px; margin-bottom: 14px; }
.elig-result.eligible h3 { color: var(--olive); }
.elig-result.not-eligible h3 { color: var(--terracotta); }
.elig-result p { max-width: 460px; margin: 0 auto 28px; font-size: 14.5px; color: var(--anthracite); }
.elig-result .figures {
  display: flex; justify-content: center; gap: 40px; margin-bottom: 30px; flex-wrap: wrap;
}
.elig-result .figures div { text-align: center; }
.elig-result .figures .num { font-family: var(--font-title); font-weight: 700; font-size: 22px; color: var(--olive); display: block; }
.elig-result .figures .lbl { font-size: 11px; color: var(--muted); letter-spacing: .5px; }

/* =========================== FOOTER =========================== */
.footer { padding: 90px 0 40px; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 50px; }
.footer-rule { width: 60px; height: 1px; background: rgba(247,241,230,0.3); margin: 40px auto; }
.footer-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 700px; margin: 0 auto 40px; text-align: left; }
.footer-role .kicker { color: var(--terracotta-light); margin-bottom: 14px; display: block; text-align: center; }
.footer-role-card {
  background: rgba(247,241,230,0.06); border: 1px solid rgba(247,241,230,0.14);
  border-radius: var(--radius); padding: 26px; text-align: center;
}
.footer-role-card img { max-height: 40px; margin: 0 auto 14px; }
.footer-role-card .name { font-family: var(--font-title); font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.footer-role-card .addr { font-size: 12px; color: var(--pierre); line-height: 1.6; }
.footer-legal { font-size: 11px; color: rgba(247,241,230,0.5); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.footer-copy { margin-top: 24px; font-size: 11px; color: rgba(247,241,230,0.4); }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 880px) {
  .cadre-grid, .situation-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .brs-steps { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
  .plan-panel { grid-template-columns: 1fr; }
  .footer-roles { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 0; background: var(--olive);
    flex-direction: column; justify-content: center; gap: 30px;
    transform: translateX(100%); transition: transform .45s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--cream) !important; font-size: 18px; }
  .burger { display: flex; }
  .site-header { padding: 18px 24px; }
  .elig-tool { padding: 30px 22px; }
  .elig-radio-group { flex-direction: column; }
  .container { padding: 0 22px; }
}
