/* ===================================================================
   Résidence Newton — site vitrine
   Palette : vert profond / crème chaleureux / or discret
   =================================================================== */

:root {
  --bg:        #f8f5f0;
  --surface:   #ffffff;
  --ink:       #1e2b25;
  --muted:     #5d6b63;
  --green:     #2e604a;
  --green-dark:#234b3a;
  --green-soft:#e8f0ec;
  --gold:      #c89b3c;
  --line:      #e7e1d6;
  --radius:    18px;
  --shadow:    0 10px 30px rgba(30, 43, 37, .08);
  --shadow-lg: 0 24px 60px rgba(30, 43, 37, .14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Typographie ---------- */

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; }

h1 { font-size: clamp(2.1rem, 5.2vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 1.2rem; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }

.overline {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .8rem;
}

.overline::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: .6rem;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .2s, box-shadow .25s;
}

.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(35, 75, 58, .3);
}

.btn--small { padding: .55rem 1.2rem; font-size: .85rem; }
.btn--full  { width: 100%; }

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn--light:hover { background: var(--bg); border-color: var(--bg); box-shadow: 0 10px 24px rgba(0,0,0,.25); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; box-shadow: none; }

/* ---------- Layout ---------- */

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.container--narrow { width: min(960px, 92%); }

.section { padding: clamp(64px, 9vw, 110px) 0; }

.section--alt  { background: #fdfcfa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section--dark {
  background: linear-gradient(160deg, var(--green-dark), #16332a 70%);
  color: #fff;
}
.section--dark .overline { color: #9fc6b3; }

/* ===================================================================
   NAVIGATION
   =================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}

.nav__inner {
  width: min(1160px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  transition: color .3s;
}

.nav__brand svg { width: 24px; height: 24px; }
.nav__brand em { font-style: normal; font-weight: 500; opacity: .65; font-size: 1rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-weight: 500;
  font-size: .92rem;
  color: #fff;
  transition: color .3s;
}

.nav__links a:not(.btn) {
  position: relative;
  padding: .2rem 0;
  opacity: .88;
  transition: opacity .2s;
}

.nav__links a:not(.btn):hover { opacity: 1; }

.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.nav__links a:not(.btn):hover::after,
.nav__links a.is-active:not(.btn)::after { transform: scaleX(1); }

/* nav après scroll */
.nav--scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); box-shadow: 0 2px 18px rgba(30,43,37,.09); }
.nav--scrolled .nav__brand,
.nav--scrolled .nav__links { color: var(--ink); }
.nav--scrolled .nav__brand svg { color: var(--green); }

/* burger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.nav__toggle span {
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  color: #fff;
}

.nav--scrolled .nav__toggle span,
.nav-open .nav__toggle span { color: var(--ink); }

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

/* ===================================================================
   HERO
   =================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  color: #fff;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(13, 25, 20, .88) 0%, rgba(13, 25, 20, .35) 45%, rgba(13, 25, 20, .25) 100%);
}

.hero__content {
  width: min(1160px, 92%);
  margin: 0 auto;
  padding: 9rem 0 7rem;
}

.hero__avail {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  font-weight: 600;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  margin-bottom: 1.4rem;
}

.hero__avail strong { color: #ffd98a; font-weight: 700; }

.hero__avail span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #7ddb9a;
  box-shadow: 0 0 0 0 rgba(125, 219, 154, .6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(125, 219, 154, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(125, 219, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 219, 154, 0); }
}

.hero__overline {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.hero h1 strong { color: #ffd98a; font-weight: 700; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 1.6rem 0 2.2rem;
}

.hero__chips li {
  font-size: .83rem;
  font-weight: 600;
  padding: .42rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
}

.hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__price {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: .65rem 1.3rem;
  line-height: 1.15;
  box-shadow: var(--shadow-lg);
}

.hero__price strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--green);
}

.hero__price strong span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.hero__price small { display: block; font-size: .73rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  animation: float 2.2s ease-in-out infinite;
}

.hero__scroll svg { width: 16px; height: 16px; }

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}

/* ===================================================================
   CHIFFRES CLÉS
   =================================================================== */

.stats { position: relative; z-index: 5; }

.stats__inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: -56px;
  width: min(1160px, 92%);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.stat {
  text-align: center;
  padding: 1.6rem .8rem;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--green);
}

.stat span { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ===================================================================
   GALERIE
   =================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 215px;
  gap: 14px;
  margin-top: 2.6rem;
}

.gallery__item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  background: var(--green-soft);
}

.gallery__item--big  { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,25,20,.55), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
}

.gallery__item:hover::after { opacity: 1; }

.gallery__item span {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 2;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .35s;
}

.gallery__item:hover span { opacity: 1; transform: translateY(0); }

/* ===================================================================
   SPLIT (logement / quartier)
   =================================================================== */

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split__text p { margin-bottom: 1.1rem; color: #3c4a43; }

.split__text .callout {
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  color: var(--ink);
}

.split__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}

.split__card h3 { margin-bottom: 1.1rem; color: var(--green); }

.specs div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .58rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .93rem;
}

.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; text-align: right; }

.badge--dpe {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #c8d300;
  color: #3d4400;
  font-weight: 800;
}

/* ---------- Équipements ---------- */

.equip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.equip__col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.equip__col h4 {
  font-size: .95rem;
  margin-bottom: .8rem;
  color: var(--green);
}

.equip__col h4 small { color: var(--gold); font-weight: 600; }

.checklist { list-style: none; }

.checklist li {
  position: relative;
  padding: .3rem 0 .3rem 1.7rem;
  font-size: .9rem;
  color: #3c4a43;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem;
  width: 16px; height: 16px;
  background-color: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.checklist--neutral li::before {
  background-color: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===================================================================
   ATOUTS
   =================================================================== */

.features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
  margin-top: 2.6rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature svg {
  width: 30px; height: 30px;
  color: var(--green);
  margin-bottom: .9rem;
}

.feature h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; margin-bottom: .35rem; }
.feature p  { font-size: .85rem; color: var(--muted); line-height: 1.5; }

/* ===================================================================
   QUARTIER
   =================================================================== */

.split--map { align-items: stretch; }

.poi { list-style: none; margin-top: 1.6rem; }

.poi li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px dashed var(--line);
}

.poi li:last-child { border-bottom: 0; }

.poi svg {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  color: var(--green);
}

.poi div { flex: 1; }
.poi strong { display: block; font-size: .96rem; }
.poi span { font-size: .84rem; color: var(--muted); }

.poi em {
  font-style: normal;
  font-size: .76rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: .3rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.map {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map iframe {
  width: 100%;
  flex: 1;
  min-height: 420px;
  border: 0;
}

.map__note {
  font-size: .8rem;
  color: var(--muted);
  padding: .9rem 1.2rem;
  border-top: 1px solid var(--line);
}

/* ===================================================================
   LOYER
   =================================================================== */

.pricing {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.4rem;
  margin-top: 2.4rem;
}

.pricing__main,
.pricing__dpe {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}

.pricing__amount { margin-bottom: 1.4rem; }

.pricing__amount strong {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--green);
  line-height: 1;
}

.pricing__amount span {
  display: block;
  font-size: .92rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: .3rem;
}

.pricing__rows { list-style: none; margin-bottom: 1.2rem; }

.pricing__rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .8rem 0;
  border-top: 1px dashed var(--line);
}

.pricing__rows small { color: var(--muted); font-weight: 400; }
.pricing__rows strong { font-size: 1.1rem; }

.pricing__note {
  font-size: .83rem;
  color: var(--muted);
  background: var(--bg);
  border-radius: 10px;
  padding: .7rem 1rem;
  margin-bottom: 1.4rem;
}

.pricing__avail {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--green-soft);
  border: 1px solid #cde0d6;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: .95rem 1.15rem;
  margin-bottom: 1.6rem;
}

.pricing__avail svg {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  color: var(--green);
}

.pricing__avail strong { display: block; font-size: .95rem; color: var(--green-dark); }
.pricing__avail span { font-size: .83rem; color: var(--muted); }

.pricing__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }

.pricing__tags span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: .35rem .9rem;
}

/* ---------- DPE ---------- */

.pricing__dpe h3 { margin-bottom: 1.2rem; color: var(--green); }

.dpe { display: flex; flex-direction: column; gap: 6px; }

.dpe__row {
  display: flex;
  align-items: center;
  width: var(--w);
  background: var(--c);
  border-radius: 6px;
  padding: .28rem .6rem;
  min-width: 44px;
}

.dpe__row span {
  font-weight: 800;
  font-size: .85rem;
  color: rgba(0,0,0,.65);
}

.dpe__row--current {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  position: relative;
}

.dpe__row--current em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  margin-left: auto;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: .12rem .6rem;
  white-space: nowrap;
}

.dpe__note { font-size: .83rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Documents à prévoir ---------- */

.docs {
  display: grid;
  grid-template-columns: .9fr 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1.4rem;
  align-items: start;
}

.docs__intro { padding: 1rem .4rem; }

.docs__intro h3 {
  font-size: 1.35rem;
  color: var(--green);
  margin-bottom: .6rem;
}

.docs__intro p { font-size: .9rem; color: var(--muted); }

.docs__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.docs__card h4 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .98rem;
  color: var(--green-dark);
  margin-bottom: .9rem;
}

.docs__card h4 svg { width: 22px; height: 22px; color: var(--green); flex: 0 0 auto; }
.docs__card h4 small { color: var(--muted); font-weight: 500; }

.docs__card .checklist li small { color: var(--muted); }

/* ===================================================================
   CONTACT
   =================================================================== */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact__text p { color: #cfe0d6; margin-bottom: 1.6rem; }

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: .8rem 1.5rem;
  transition: background .25s, border-color .25s;
  margin-bottom: 1.8rem;
  word-break: break-all;
}

.contact__mail:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.contact__mail svg { width: 20px; height: 20px; flex: 0 0 auto; }

.contact__points { list-style: none; }

.contact__points li {
  position: relative;
  padding: .35rem 0 .35rem 1.8rem;
  color: #cfe0d6;
  font-size: .92rem;
}

.contact__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .65rem;
  width: 16px; height: 16px;
  background-color: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Formulaire ---------- */

.contact__form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.field label small { color: var(--muted); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .94rem;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46, 96, 74, .12);
}

/* ===================================================================
   FOOTER
   =================================================================== */

.footer {
  background: #122620;
  color: #9db5a9;
  padding: 1.8rem 0;
  font-size: .88rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer strong { color: #fff; }

/* ===================================================================
   LIGHTBOX
   =================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 18, 15, .95);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox figure {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #cfe0d6;
  font-size: .9rem;
  padding: .9rem .2rem 0;
}

.lightbox__count { color: #87988f; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .2s;
}

.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,.2); }

.lightbox__close {
  top: 1.2rem; right: 1.4rem;
  width: 46px; height: 46px;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
}

.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }

/* ===================================================================
   BARRE MOBILE + RETOUR HAUT
   =================================================================== */

.mobilebar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: .7rem 1.1rem calc(.7rem + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .35s;
}

.mobilebar.is-visible { transform: translateY(0); }

.mobilebar p { line-height: 1.2; }
.mobilebar strong { font-family: var(--font-display); color: var(--green); font-size: 1.05rem; display: block; }
.mobilebar span { font-size: .73rem; color: var(--muted); }

.backtotop {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 80;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}

.backtotop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.backtotop:hover { background: var(--green-dark); }
.backtotop svg { width: 19px; height: 19px; }

/* ===================================================================
   ANIMATIONS D'APPARITION
   =================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* décalage en cascade pour les grilles */
.features .feature:nth-child(2)  { transition-delay: .06s; }
.features .feature:nth-child(3)  { transition-delay: .12s; }
.features .feature:nth-child(4)  { transition-delay: .18s; }
.features .feature:nth-child(5)  { transition-delay: .24s; }
.features .feature:nth-child(7)  { transition-delay: .06s; }
.features .feature:nth-child(8)  { transition-delay: .12s; }
.features .feature:nth-child(9)  { transition-delay: .18s; }
.features .feature:nth-child(10) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .equip { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 880px) {
  .split,
  .contact,
  .pricing { grid-template-columns: 1fr; }

  .docs { grid-template-columns: 1fr; gap: 1rem; }
  .docs__intro { padding: 0; }

  .split__card { position: static; }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery__item--big { grid-column: span 2; grid-row: span 2; }

  .map iframe { min-height: 340px; }
}

@media (max-width: 768px) {
  /* menu mobile */
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    font-size: 1.15rem;
    background: rgba(255,255,255,.98);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }

  .nav-open .nav__links { opacity: 1; visibility: visible; }
  .nav-open .nav__brand { color: var(--ink); position: relative; z-index: 10; }
  .nav-open .nav__toggle { position: relative; z-index: 10; }

  .hero__content { padding-bottom: 5.5rem; }
  .hero__scroll { display: none; }

  .mobilebar { display: flex; }
  .backtotop { bottom: 5.4rem; }

  .footer { padding-bottom: 5.2rem; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 520px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .gallery { grid-auto-rows: 150px; gap: 10px; }

  .equip { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .feature { padding: 1.1rem 1rem; }

  .hero__cta .btn { width: 100%; text-align: center; }
  .hero__price { width: 100%; text-align: center; }

  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
}
